Examples of addMetaData()


Examples of ca.uhn.hl7v2.hoh.raw.api.RawReceivable.addMetadata()

        d.readHeadersAndContentsFromInputStreamAndDecode(myInputStream);

        response = new RawReceivable(d.getMessage());
        InetSocketAddress remoteSocketAddress = (InetSocketAddress) socket.getRemoteSocketAddress();
        String hostAddress = remoteSocketAddress.getAddress() != null ? remoteSocketAddress.getAddress().getHostAddress() : null;
        response.addMetadata(MessageMetadataKeys.REMOTE_HOST_ADDRESS.name(), hostAddress);

        if (d.isConnectionCloseHeaderPresent()) {
          ourLog.debug("Found Connection=close header, closing socket");
          closeSocket(socket);
        }
View Full Code Here

Examples of ch.iterate.openstack.swift.model.ContainerMetadata.addMetaData()

                    this.getLastModified(response));

            for(Header h : response.getAllHeaders()) {
                if(h.getName().startsWith(Constants.X_CONTAINER_META)
                        || Constants.HTTP_HEADER_EDITABLE_NAMES.contains(h.getName().toLowerCase(Locale.ENGLISH))) {
                    metadata.addMetaData(h.getName(), decode(h.getValue()));
                }
            }
            return metadata;
        }
        else if(response.getStatusLine().getStatusCode() == HttpStatus.SC_NOT_FOUND) {
View Full Code Here

Examples of ch.iterate.openstack.swift.model.ObjectMetadata.addMetaData()

                    this.getLastModified(response));

            for(Header h : response.getAllHeaders()) {
                if(h.getName().startsWith(Constants.X_OBJECT_META)
                        || Constants.HTTP_HEADER_EDITABLE_NAMES.contains(h.getName().toLowerCase(Locale.ENGLISH))) {
                    metadata.addMetaData(h.getName(), decode(h.getValue()));
                }
            }
            return metadata;
        }
        else if(response.getStatusLine().getStatusCode() == HttpStatus.SC_NOT_FOUND) {
View Full Code Here

Examples of com.betfair.testing.utils.cougar.misc.AggregatedStepExpectedOutputMetaData.addMetaData()

      List<NameValuePair> nvPairs = expectedObjectMetaData.getMetaDataAtIndex(i).getNameValuePairs();
      if ((nvPairs.size() == 1) && (nvPairs.get(0).getValue().getClass() == arrayObjectClass)) {
        expectedResultsArray[i] = nvPairs.get(0).getValue();
      } else {
        AggregatedStepExpectedOutputMetaData javaBeanMetaData = new AggregatedStepExpectedOutputMetaData();
        javaBeanMetaData.addMetaData(expectedObjectMetaData.getMetaDataAtIndex(i));
        IAssertion javaBeanAssertion = AssertionProcessorFactory.getAssertionProcessor(DataTypeEnum.BEAN);
        expectedResultsArray[i] = javaBeanAssertion.preProcess(arrayClassObjectInstance, javaBeanMetaData);
      }
    }
    return expectedResultsArray;
View Full Code Here

Examples of com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadataCollection.addMetadata()

        // country calling codes instead of the region code to form the file name.
        if (regionCode.equals("001") || regionCode.isEmpty()) {
          regionCode = Integer.toString(metadata.getCountryCode());
        }
        PhoneMetadataCollection outMetadataCollection = new PhoneMetadataCollection();
        outMetadataCollection.addMetadata(metadata);
        FileOutputStream outputForRegion = new FileOutputStream(filePrefix + "_" + regionCode);
        ObjectOutputStream out = new ObjectOutputStream(outputForRegion);
        outMetadataCollection.writeExternal(out);
        out.close();
      }
View Full Code Here

Examples of com.google.ytd.model.UserSession.addMetaData()

      // Assignment id might be set in the JSON object if there wasn't an assignment associated
      // with the embedded iframe, and the assignment was chosen at run time.
      if (util.isNullOrEmpty(assignmentId)) {
        assignmentId = userSession.getMetaData("assignmentId");
      } else {
        userSession.addMetaData("assignmentId", assignmentId);
      }
     
      Assignment assignment = assignmentDao.getAssignmentById(assignmentId);
      if (assignment == null) {
        throw new IllegalArgumentException(String.format(
View Full Code Here

Examples of com.hp.hpl.jena.sparql.lib.Metadata.addMetadata()

   
    private static Metadata initMetadata()
    {
        Metadata m = new Metadata() ;
        //m.addMetadata(metadataDevLocation) ;
        m.addMetadata(metadataLocation) ;
        return m ;
    }
   
    /** The name of the Fuseki server. Set to the string <code>Fuseki</code> by default.*/
    static public final String NAME             = "Fuseki" ;
View Full Code Here

Examples of com.linkedin.databus2.core.container.ChunkedWritableByteChannel.addMetadata()

    params.setProperty(DatabusHttpHeaders.PROTOCOL_VERSION_PARAM, Integer.toString(protoVersion));
    params.setProperty(RegisterRequestProcessor.SOURCES_PARAM, Integer.toString(srcId1));

    final StringBuilder responseStr = new StringBuilder();
    ChunkedWritableByteChannel chunkedWritableByteChannel = EasyMock.createMock(ChunkedWritableByteChannel.class);
    chunkedWritableByteChannel.addMetadata(EasyMock.eq(DatabusHttpHeaders.DBUS_CLIENT_RELAY_PROTOCOL_VERSION_HDR),
                                           EasyMock.eq(protoVersion));
    chunkedWritableByteChannel.write(EasyMock.anyObject(ByteBuffer.class));
    EasyMock.expectLastCall().andAnswer(new IAnswer<Object>()
    {
      @Override
View Full Code Here

Examples of de.innovationgate.webgate.api.schemadef.WGSchemaDocumentDefinition.addMetadata()

           
            Object value = getMetaData(metaName);
          
            if (!WGUtils.isEmpty(value)) {
                WGMetaFieldDefinition metaDef = new WGMetaFieldDefinition(metaName, value);
                docDef.addMetadata(metaDef);
            }
        }
       
        return docDef;
       
View Full Code Here

Examples of edu.uga.galileo.voci.model.MetadataManager.addMetadata()

            elem
                .setContentType(ContentType.valueOf(
                    command.getModifier().toUpperCase())
                    .getValue());
            if (elem.getMetadataId() == -1) {
              manager.addMetadata(((User) request.getSession()
                  .getAttribute("user")), elem);
            } else {
              manager.updateMetadata(elem, oldContent,
                  ((User) request.getSession().getAttribute(
                      "user")));
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.