Examples of findValue()


Examples of nexj.core.runtime.GenericSerializablePropertyMap.findValue()

         {
            SerializablePropertyMap map = new GenericSerializablePropertyMap(GenericSerializablePropertyMap.LEAVE);

            map.deserializeValues((String)instance.getValue("serializedValues"), m_context);
            instance.setValue("values", map);
            instance.setValue("body", map.findValue("body"));
         }
      }
   }
}
View Full Code Here

Examples of nexj.core.runtime.Instance.findValue()

      // login the message sender
      context.login(new SimplePrincipal((String)msg.getValue("user")));

      // check that message has not been recovered by the dispatcher
      if (!((Boolean)msg.findValue("isProcessing", Boolean.TRUE)).booleanValue())
      {
         throw new InvalidDispatcherException(sDispatcherId);
      }

      // invoke fail method
View Full Code Here

Examples of nexj.core.runtime.SerializablePropertyMap.findValue()

         {
            SerializablePropertyMap map = new GenericSerializablePropertyMap(GenericSerializablePropertyMap.LEAVE);

            map.deserializeValues((String)instance.getValue("serializedValues"), m_context);
            instance.setValue("values", map);
            instance.setValue("body", map.findValue("body"));
         }
      }
   }
}
View Full Code Here

Examples of nexj.core.util.PropertyMap.findValue()

      {
         String sKey = (String)itr.next();
         Object value = referenceMap.findValue(sKey);

         if (value != null ||
             (itr.getValue() == null && (value = defaultsMap.findValue(sKey)) != null))
         {
            itr.setValue(value); // override default in template with custom value in schema
         }
      }
View Full Code Here

Examples of org.codehaus.jackson.node.ObjectNode.findValue()

    {
        ObjectMapper mapper = getJaxbMapper();
        JsonSchema jsonSchema = mapper.generateJsonSchema(Address.class);
        ObjectNode root = jsonSchema.getSchemaNode();
        // should find two properties ("city", "state"), not just one...
        JsonNode itemsNode = root.findValue("properties");
        assertNotNull("Missing 'state' field", itemsNode.get("state"));
        assertNotNull("Missing 'city' field", itemsNode.get("city"));
        assertEquals(2, itemsNode.size());
    }
}
View Full Code Here

Examples of org.commoncrawl.io.shared.NIOHttpHeaders.findValue()

      // retured bytes represent the header(encoded in utf-8), terminated by a \r\n\r\n. The content follows this terminator
      // we search for this specific byte pattern to locate start of content, then compare it against source ...
      Assert.assertTrue(ArcFileReaderTests.compareTo(testRecord.data,0,testRecord.data.length,value.getContent().getReadOnlyBytes(),value.getContent().getOffset(),value.getContent().getCount()) == 0);
      NIOHttpHeaders headers = ArcFileItemUtils.buildHeaderFromArcFileItemHeaders(value.getHeaderItems());
      // validate metadata
      Assert.assertEquals("text/html",headers.findValue(Constants.ARCFileHeader_ARC_MimeType));
      Assert.assertEquals(value.getArcFilePos(),testRecord.streamPos);
      Assert.assertEquals(value.getArcFileSize(),testRecord.rawSize);
      Assert.assertEquals("test-value", headers.findValue("test"));
      Assert.assertEquals(value.getArcFileName(),((FileSplit)split).getPath().getName());
     
View Full Code Here

Examples of org.exist.storage.btree.BTree.findValue()

            btree.open((short)-1);

            String prefixStr = "KEY";
            for (int i = 1; i <= count; i++) {
                Value value = new Value(prefixStr + Integer.toString(i));
                long r = btree.findValue(value);
                if (r == -1) {
                    System.out.println("Key not found: " + i);
                }
            }
        } finally {
View Full Code Here

Examples of org.exist.storage.dom.DOMFile.findValue()

                                            // look up the node id and check if the
                                            // returned storage address is correct
                                            final NativeBroker.NodeRef nodeRef = new NativeBroker.NodeRef( doc.getDocId(), nodeId );

                                            try {
                                                final long p = domDb.findValue( nodeRef );

                                                if( p != reader.getCurrentPosition() ) {
                                                    final Value v = domDb.get( p );

                                                    if( v == null ) {
View Full Code Here

Examples of sun.net.www.HeaderParser.findValue()

     * returning false means we have to go back to the user to ask for a new
     * username password.
     */
    boolean isAuthorizationStale (String header) {
        HeaderParser p = new HeaderParser (header);
        String s = p.findValue ("stale");
        if (s == null || !s.equals("true"))
            return false;
        String newNonce = p.findValue ("nonce");
        if (newNonce == null || "".equals(newNonce)) {
            return false;
View Full Code Here

Examples of sun.net.www.MessageHeader.findValue()

        /* the first header in the file should be the global one.
         * It should say "Manifest-Version: x.x"; if not add it
         */
        MessageHeader globals = (MessageHeader) entries.elementAt(0);

        if (globals.findValue("Manifest-Version") == null) {
            /* Assume this is a user-defined manifest.  If it has a Name: <..>
             * field, then it is not global, in which case we just add our own
             * global Manifest-version: <version>
             * If the first MessageHeader has no Name: <..>, we assume it
             * is a global header and so prepend Manifest to it.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.