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.Stringencode(ExceptionReport exceptionReport)Encoding the exception information object of the WPS 1.0.0 service.java.lang.Stringencode(ExecuteResponse executeResponse)Encode the object after WPS 1.0.0 Processing.java.lang.Stringencode(ProcessDescriptions processDescriptions)Encode the WPS 1.0.0 Processing description object.java.lang.Stringencode(WPSCapabilitiesType wpsCapabilitiesType)Encoding the WPS service provision capability information object.java.lang.StringgetVersion()Get the version of the current WPS object encoder, here is 1.0.0.voidsetWriter(java.io.Writer writer)Set output stream.
-
-
-
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:
getVersionin interfaceWPSXMLEncoder- Returns:
- the versionof WPS object encoder.
-
setWriter
public void setWriter(java.io.Writer writer)
Set output stream.
- Specified by:
setWriterin interfaceWPSXMLEncoder- Parameters:
outputStream- output stream object.
-
encode
public java.lang.String encode(ProcessDescriptions processDescriptions) throws java.io.IOException, javax.xml.bind.JAXBExceptionEncode the WPS 1.0.0 Processing description object.
- Specified by:
encodein interfaceWPSXMLEncoder- 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.JAXBExceptionjava.io.IOException
-
encode
public java.lang.String encode(ExecuteResponse executeResponse) throws javax.xml.bind.JAXBException, java.io.IOExceptionEncode the object after WPS 1.0.0 Processing.
- Specified by:
encodein interfaceWPSXMLEncoder- Parameters:
executeResponse- information.- Returns:
- encode response information description of WPS 1.0.0 standard.
- Throws:
java.io.IOExceptionjavax.xml.bind.JAXBException
-
encode
public java.lang.String encode(WPSCapabilitiesType wpsCapabilitiesType) throws javax.xml.bind.JAXBException, java.io.IOExceptionEncoding the WPS service provision capability information object.
- Specified by:
encodein interfaceWPSXMLEncoder- 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.IOExceptionjavax.xml.bind.JAXBException
-
encode
public java.lang.String encode(ExceptionReport exceptionReport) throws javax.xml.bind.JAXBException, java.io.IOExceptionEncoding the exception information object of the WPS 1.0.0 service.
- Specified by:
encodein interfaceWPSXMLEncoder- Parameters:
exceptions- the exception information.- Returns:
- exception information description of WPS 1.0.0 standard.
- Throws:
java.io.IOExceptionjavax.xml.bind.JAXBException
-
-