Package org.xmlsoap.schemas.ws.x2004.x09.mex

Examples of org.xmlsoap.schemas.ws.x2004.x09.mex.MetadataDocument$Metadata


        m_printerReferenceProperties = createPrinter.getPrinterReference().getReferenceProperties();
    }

    private void setPrinterURL(CreatePrinterResponseDocument.CreatePrinterResponse create)
    {
        EndpointReferenceType printerRef = (EndpointReferenceType) XmlBeanUtils.getChildElements(create, PrinterPortPropertyQNames.PRINTER_REFERENCE)[0];
        m_printerURL = printerRef.getAddress().getStringValue();
    }
View Full Code Here


    */
   private XmlObject parseMetadata( MetadataDocument.Metadata metadata )
   {
      //check for MetadataReference...if its there, we're finished.
      XmlObject             result           = null;
      EndpointReferenceType metadataReferece = metadata.getMetadataReferece(  );
      if ( metadataReferece != null )
      {
         MetadataReferenceDocument metadataReferenceDocument = MetadataReferenceDocument.Factory.newInstance(  );
         metadataReferenceDocument.setMetadataReference( metadataReferece );
         result = metadataReferenceDocument;
View Full Code Here

    */
   public EndpointReferenceType getEprForResource( ResourceKey key,
                                                   String      serviceUrl )
   {
      EndpointReferenceDocument eprDoc  = EndpointReferenceDocument.Factory.newInstance(  );
      EndpointReferenceType     epr     = eprDoc.addNewEndpointReference(  );
      AttributedURI             address = epr.addNewAddress(  );
      address.setStringValue( serviceUrl + "/" +SERVICE_NAME );
      ReferencePropertiesType refProps = epr.addNewReferenceProperties(  );

      XmlObject               xmlObject = XmlBeanUtils.addChildElement( refProps,
                                                                        key.getName(  ) );
      XmlBeanUtils.setValue( xmlObject,
                             key.getValue(  ).toString(  ) );
View Full Code Here

                                     PrinterPortResource  printerResource )
   {
      ++m_jobId;
       int jobId = (int)m_jobId;
       SimpleTypeResourceKey key = createResourceKey(jobId);
       EndpointReferenceType jobEpr = getEprForResource( key,
                                                        resourceContext.getBaseURL(  ) );
      JobPortResource       job    = new JobPortResource( jobEpr, jobId, jobName, origUserName, printerResource );
      job.init(  );
      add( key, job );     
      return job;
View Full Code Here

                                     PrinterPortResource printerResource )
   {
      ++m_jobId;
       int jobId = (int)m_jobId;
       SimpleTypeResourceKey key = createResourceKey(jobId);
       EndpointReferenceType jobEpr = getEprForResource( key,
                                                        resourceContext.getBaseURL(  ) );
      JobPortResource       job    = new JobPortResource( jobEpr, jobId, jobName, printerResource );
      job.init(  );
      add( key, job );
      return job;
View Full Code Here

    public EndpointReferenceType getEprForResource( ResourceKey key,
                                                   String      serviceUrl )
   {
      EndpointReferenceDocument eprDoc  = EndpointReferenceDocument.Factory.newInstance(  );
      EndpointReferenceType     epr     = eprDoc.addNewEndpointReference(  );
      AttributedURI             address = epr.addNewAddress(  );
      address.setStringValue( serviceUrl + "/" +SERVICE_NAME );
      ReferencePropertiesType refProps = epr.addNewReferenceProperties(  );

      XmlObject               xmlObject = XmlBeanUtils.addChildElement( refProps,
                                                                        key.getName(  ) );
      XmlBeanUtils.setValue( xmlObject,
                             key.getValue(  ).toString(  ) );
View Full Code Here

          ResourceUnknownException
   {
       ++m_printerId;
       int printerId = m_printerId;
       SimpleTypeResourceKey key = createResourceKey(printerId);
       EndpointReferenceType printerEpr = getEprForResource( key,
                                                        resourceContext.getBaseURL(  ) );
         PrinterPortResource printer = new PrinterPortResource( "Printer" + printerId,
                                              getEprForResource( key, resourceContext.getBaseURL(  ) ) );
         printer.init(  );
         add(key, printer);
View Full Code Here

    public EndpointReferenceType getEprForResource( ResourceKey key,
                                                   String      serviceUrl )
   {
      EndpointReferenceDocument eprDoc  = EndpointReferenceDocument.Factory.newInstance(  );
      EndpointReferenceType     epr     = eprDoc.addNewEndpointReference(  );
      AttributedURI             address = epr.addNewAddress(  );
      address.setStringValue( serviceUrl + "/" +SERVICE_NAME );
      ReferencePropertiesType refProps = epr.addNewReferenceProperties(  );

      XmlObject               xmlObject = XmlBeanUtils.addChildElement( refProps,
                                                                        key.getName(  ) );
      XmlBeanUtils.setValue( xmlObject,
                             key.getValue(  ).toString(  ) );
View Full Code Here

          ResourceUnknownException
   {
       ++m_printerId;
       int printerId = m_printerId;
       SimpleTypeResourceKey key = createResourceKey(printerId);
       EndpointReferenceType printerEpr = getEprForResource( key,
                                                        resourceContext.getBaseURL(  ) );
         PrinterPortResource printer = new PrinterPortResource( "Printer" + printerId,
                                              getEprForResource( key, resourceContext.getBaseURL(  ) ) );
         printer.init(  );
         add(key, printer);
View Full Code Here

            XmlBeanUtils.setValue(resourceKey, (String)m_resourceKey.getValue());
        }

        if(m_referenceParameters != null)
        {
        ReferenceParametersType referenceParametersType = endpointReferenceType.addNewReferenceParameters();
        addToProperties(referenceParametersType, m_referenceParameters);
        }
        return endpointReferenceType;
    }
View Full Code Here

TOP

Related Classes of org.xmlsoap.schemas.ws.x2004.x09.mex.MetadataDocument$Metadata

Copyright © 2018 www.massapicom. 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.