Package org.ggf.schemas.bes.x2006.x08.besFactory

Examples of org.ggf.schemas.bes.x2006.x08.besFactory.CreateActivityResponseDocument


    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

    */
   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

        return (CreationResponseDocument.CreationResponse) XmlBeanUtils.getChildElements(envelope.getEnvelope().getBody(), new QName(PrinterPortPropertyQNames.PRINTER_REFERENCE.getNamespaceURI(), "CreationResponse"))[0];
    }

    private void setJobURL(EnvelopeDocument envelope)
    {
        EndpointReferenceType jobRef = getJobEndpointReference(envelope);
        setJobURL(jobRef.getAddress().getStringValue());
    }
View Full Code Here

        setJobURL(jobRef.getAddress().getStringValue());
    }

    private EndpointReferenceType getJobEndpointReference(EnvelopeDocument envelope)
    {
        EndpointReferenceType jobRef = (EndpointReferenceType) XmlBeanUtils.getChildElements(getCreationResponse(envelope), JobPortPropertyQNames.JOB_REFERENCE)[0];
        return jobRef;
    }
View Full Code Here

        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

TOP

Related Classes of org.ggf.schemas.bes.x2006.x08.besFactory.CreateActivityResponseDocument

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.