com.supermap.services.wps.impl

Class WPSXMLEncoder100

  • java.lang.Object
    • com.supermap.services.wps.impl.WPSXMLEncoder100
  • All Implemented Interfaces:
    WPSXMLEncoder


    public class WPSXMLEncoder100
    extends java.lang.Object
    implements WPSXMLEncoder
    

    WPS 1.0.0 service object encoder.

    According to the WPS 1.0.0 standard to encode the object, convert it to a standard XML document (string).

    • Constructor Summary

      Constructors 
      Constructor and Description
      WPSXMLEncoder100()
      The Constructor.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.lang.String encode(ExceptionReport exceptionReport)
      Encoding the exception information object of the WPS 1.0.0 service.
      java.lang.String encode(ExecuteResponse executeResponse)
      Encode the object after WPS 1.0.0 Processing.
      java.lang.String encode(ProcessDescriptions processDescriptions)
      Encode the WPS 1.0.0 Processing description object.
      java.lang.String encode(WPSCapabilitiesType wpsCapabilitiesType)
      Encoding the WPS service provision capability information object.
      java.lang.String getVersion()
      Get the version of the current WPS object encoder, here is 1.0.0.
      void setWriter(java.io.Writer writer)
      Set output stream.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WPSXMLEncoder100

        public WPSXMLEncoder100()
        

        The Constructor.

    • Method Detail

      • getVersion

        public java.lang.String getVersion()
        

        Get the version of the current WPS object encoder, here is 1.0.0.

        That is, the version of the WPS service, indicating that the current WPS object encoder has the ability to encode the version of the WPS service object.

        Specified by:
        getVersion in interface WPSXMLEncoder
        Returns:
        the versionof WPS object encoder.
      • setWriter

        public void setWriter(java.io.Writer writer)
        

        Set output stream.

        Specified by:
        setWriter in interface WPSXMLEncoder
        Parameters:
        outputStream - output stream object.
      • encode

        public java.lang.String encode(ProcessDescriptions processDescriptions)
                                throws java.io.IOException,
                                       javax.xml.bind.JAXBException
        

        Encode the WPS 1.0.0 Processing description object.

        Specified by:
        encode in interface WPSXMLEncoder
        Parameters:
        processDescriptions - the Processing description object of WPS
        Returns:
        the description information of DescribeProcess response in WPS 1.0.0 standard.
        Throws:
        javax.xml.bind.JAXBException
        java.io.IOException
      • encode

        public java.lang.String encode(ExecuteResponse executeResponse)
                                throws javax.xml.bind.JAXBException,
                                       java.io.IOException
        

        Encode the object after WPS 1.0.0 Processing.

        Specified by:
        encode in interface WPSXMLEncoder
        Parameters:
        executeResponse - information.
        Returns:
        encode response information description of WPS 1.0.0 standard.
        Throws:
        java.io.IOException
        javax.xml.bind.JAXBException
      • encode

        public java.lang.String encode(WPSCapabilitiesType wpsCapabilitiesType)
                                throws javax.xml.bind.JAXBException,
                                       java.io.IOException
        

        Encoding the WPS service provision capability information object.

        Specified by:
        encode in interface WPSXMLEncoder
        Parameters:
        wpsCapabilities - WPS 1.0.0 service provision capability information object, which is the operation result of GetCapabilities.
        Returns:
        the description information of GetCapabilities response in WPS 1.0.0 standard.
        Throws:
        java.io.IOException
        javax.xml.bind.JAXBException
      • encode

        public java.lang.String encode(ExceptionReport exceptionReport)
                                throws javax.xml.bind.JAXBException,
                                       java.io.IOException
        

        Encoding the exception information object of the WPS 1.0.0 service.

        Specified by:
        encode in interface WPSXMLEncoder
        Parameters:
        exceptions - the exception information.
        Returns:
        exception information description of WPS 1.0.0 standard.
        Throws:
        java.io.IOException
        javax.xml.bind.JAXBException