Package org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03Wsdl

Examples of org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03Wsdl.AbstractPrinterFactoryService


    *
    * @return DOCUMENT_ME
    */
   public org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.CreationResponseDocument Send_Document( org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.SendDocumentRequestDocument requestDoc )
   {
      CreationResponseDocument                        responseDoc         = createResponseDocument(  );
      CreationResponseDocument.CreationResponse       creationResponse    = responseDoc.getCreationResponse(  );
      SendDocumentRequestDocument.SendDocumentRequest sendDocumentRequest = requestDoc.getSendDocumentRequest(  );
      //DocumentContentType                             documentContent     =
         //sendDocumentRequest.getDocumentContent(  );
      String                                          documentFormat      =
         sendDocumentRequest.getDocumentFormat(  );
View Full Code Here


      return docTypeSupported;
   }

   private CreationResponseDocument createResponseDocument(  )
   {
      CreationResponseDocument creationResponseDocument = CreationResponseDocument.Factory.newInstance(  );
      creationResponseDocument.addNewCreationResponse(  );
      return creationResponseDocument;
   }
View Full Code Here

            //check if valid format type
            MimeMediaTypeType.Enum documentFormat = printJobRequest.getDocumentFormat(  );

            if ( isDocTypeSupported( documentFormat ) )
            {
               DocumentContentType documentContent = printJobRequest.getDocumentContent(  );
               byte[]              base64Data = documentContent.getBase64Data(  );
               jobResource =
                  (JobPortResource) home.createJob(
                                                    jobName,
                                                    "",
                                                    documentFormat,
View Full Code Here

        operationsSupported.add(Operations.SEND_DOCUMENT); //refer to doc...
        operationsSupportedDocument.setOperationsSupported(operationsSupported);
        resourceProperty.add(operationsSupportedDocument);

        resourceProperty = m_propSet.get(PrinterPortPropertyQNames.DOCUMENT_FORMAT_SUPPORTED);
        DocumentFormatSupportedDocument documentFormatSupportedDocument =
                DocumentFormatSupportedDocument.Factory.newInstance();
        MimeMediaTypes mimeMediaTypes =
                documentFormatSupportedDocument.addNewDocumentFormatSupported();
        mimeMediaTypes.addMimeMediaType(MimeMediaTypeType.TEXT_PLAIN);
        resourceProperty.add(documentFormatSupportedDocument);
    }
View Full Code Here

        operationsSupported.add(Operations.SEND_DOCUMENT); //refer to doc...
        operationsSupportedDocument.setOperationsSupported(operationsSupported);
        resourceProperty.add(operationsSupportedDocument);

        resourceProperty = m_propSet.get(PrinterPortPropertyQNames.DOCUMENT_FORMAT_SUPPORTED);
        DocumentFormatSupportedDocument documentFormatSupportedDocument =
                DocumentFormatSupportedDocument.Factory.newInstance();
        MimeMediaTypes mimeMediaTypes =
                documentFormatSupportedDocument.addNewDocumentFormatSupported();
        mimeMediaTypes.addMimeMediaType(MimeMediaTypeType.TEXT_PLAIN);
        resourceProperty.add(documentFormatSupportedDocument);
    }
View Full Code Here

        operationsSupported.add(Operations.SEND_DOCUMENT); //refer to doc...
        operationsSupportedDocument.setOperationsSupported(operationsSupported);
        resourceProperty.add(operationsSupportedDocument);

        resourceProperty = m_propSet.get(PrinterPortPropertyQNames.DOCUMENT_FORMAT_SUPPORTED);
        DocumentFormatSupportedDocument documentFormatSupportedDocument =
                DocumentFormatSupportedDocument.Factory.newInstance();
        MimeMediaTypes mimeMediaTypes =
                documentFormatSupportedDocument.addNewDocumentFormatSupported();
        mimeMediaTypes.addMimeMediaType(MimeMediaTypeType.TEXT_PLAIN);
        resourceProperty.add(documentFormatSupportedDocument);
    }
View Full Code Here

   /**
    * DOCUMENT_ME
    */
   public void destroy(  )
   {
      JobPropertiesDocument jobPropDoc           = (JobPropertiesDocument) ((XmlBeansResourcePropertySet)getResourcePropertySet()).toXmlObject();
       org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.JobPropertiesDocument.JobProperties jobProperties = jobPropDoc.getJobProperties();
       java.math.BigInteger jobId = jobProperties.getJobId();

       PrinterPortResource   printerResource      = getPrinterResource();
      ResourceProperty      printerJobProperties =
         printerResource.getResourcePropertySet(  ).get( PrinterPortPropertyQNames.JOB_PROPERTIES );
View Full Code Here

   private void addJobPropsToPrinterProps( JobPortResource instance )
   throws
          ResourceException
   {
      JobPropertiesDocument jobPropDoc           = getJobPropDoc( instance );
      PrinterPortResource   printerResource      = (PrinterPortResource) getResourceContext(  ).getResource(  );
      ResourceProperty      printerJobProperties =
         printerResource.getResourcePropertySet(  ).get( PrinterPortPropertyQNames.JOB_PROPERTIES );
      printerJobProperties.add( jobPropDoc );
   }
View Full Code Here

   /**
    * DOCUMENT_ME
    */
   public void destroy(  )
   {
      JobPropertiesDocument jobPropDoc           = (JobPropertiesDocument) ((XmlBeansResourcePropertySet)getResourcePropertySet()).toXmlObject();
       org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.JobPropertiesDocument.JobProperties jobProperties = jobPropDoc.getJobProperties();
       java.math.BigInteger jobId = jobProperties.getJobId();

       PrinterPortResource   printerResource      = getPrinterResource();
      ResourceProperty      printerJobProperties =
         printerResource.getResourcePropertySet(  ).get( PrinterPortPropertyQNames.JOB_PROPERTIES );
View Full Code Here

      org.apache.ws.resource.properties.ResourcePropertySet resourcePropertySet =
         instance.getResourcePropertySet(  );
      creationResponse.setJobReference( (EndpointReferenceType) ( (XmlBeansResourceProperty) resourcePropertySet
                                                                  .get( JobPortPropertyQNames.JOB_REFERENCE ) )
                                                                .toXmlObjects(  )[0] );
      JobStateType jobState =
         (JobStateType) ( (XmlBeansResourceProperty) resourcePropertySet.get( JobPortPropertyQNames.JOB_STATE ) )
                        .toXmlObjects(  )[0];
      creationResponse.xsetJobState( jobState ); //only way I could get to compile
      creationResponse.setSuccessStatusCode( "successful-ok" );
   }
View Full Code Here

TOP

Related Classes of org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03Wsdl.AbstractPrinterFactoryService

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.