public abstract class AbstractSoapEncoder<T,S> extends AbstractXmlEncoder<T,S>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_FAULT_REASON |
static java.lang.String |
MISSING_EXCEPTION_DETAIL_TEXT |
static java.lang.String |
MISSING_RESPONSE_DETAIL_TEXT |
| Constructor and Description |
|---|
AbstractSoapEncoder(java.lang.String namespace) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
createSOAPBody(javax.xml.soap.SOAPMessage soapResponseMessage,
SoapResponse soapResponse,
java.lang.String actionURI)
Create and add the SOAPBody content
|
protected java.lang.String |
createSOAPBody(javax.xml.soap.SOAPMessage soapResponseMessage,
org.apache.xmlbeans.XmlObject sosResponse,
java.lang.String actionURI)
Creates a SOAPBody element from SOS response
|
protected void |
createSOAPFault(javax.xml.soap.SOAPFault fault,
SoapFault soapFault)
Creates a SOAPFault element from SOS internal fault
|
protected java.lang.String |
createSOAPFaultFromExceptionResponse(javax.xml.soap.SOAPFault soapFault,
OwsExceptionReport owsExceptionReport)
Creates a SOAPFault element from SOS exception
|
T |
encode(S response) |
protected org.apache.xmlbeans.XmlObject |
getBodyContent(SoapResponse response)
Get the content for the SOAPBody as
XmlObject |
MediaType |
getContentType() |
protected java.lang.String |
getExceptionActionURI(ExceptionCode exceptionCode)
Get SOAP action URI depending on Exception code
|
java.util.Set<EncoderKey> |
getKeys() |
encodeObjectToXml, encodeObjectToXml, encodeObjectToXmlDocument, encodeObjectToXmlDocument, encodeObjectToXmlPropertyType, encodeObjectToXmlPropertyType, encodeObjectToXmlText, encodeObjectToXmlText, getAndCheck, getDocumentEncoder, getDocumentEncoder, getDocumentEncoderKey, getDocumentEncoderKey, getEncoder, getEncoder, getEncoderKey, getEncoderKey, getPropertyTypeEncoder, getPropertyTypeEncoder, getPropertyTypeEncoderKey, getPropertyTypeEncoderKey, getXmlOptions, setXmlOptions, substitutegetEncoder, getEncoderRepository, setEncoderRepositoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddNamespacePrefixToMap, getSchemaLocationsencode, getSupportedTypespublic static final java.lang.String DEFAULT_FAULT_REASON
public static final java.lang.String MISSING_RESPONSE_DETAIL_TEXT
public static final java.lang.String MISSING_EXCEPTION_DETAIL_TEXT
public java.util.Set<EncoderKey> getKeys()
public MediaType getContentType()
getContentType in interface Encoder<T,S>getContentType in class AbstractXmlEncoder<T,S>public T encode(S response) throws EncodingException
encode in interface Encoder<T,S>encode in class AbstractXmlEncoder<T,S>EncodingExceptionprotected java.lang.String createSOAPBody(javax.xml.soap.SOAPMessage soapResponseMessage,
org.apache.xmlbeans.XmlObject sosResponse,
java.lang.String actionURI)
throws javax.xml.soap.SOAPException
soapResponseMessage - SOAPBody elementsosResponse - SOS responseactionURI - the action URIjavax.xml.soap.SOAPException - if an error occurs.protected java.lang.String createSOAPBody(javax.xml.soap.SOAPMessage soapResponseMessage,
SoapResponse soapResponse,
java.lang.String actionURI)
throws javax.xml.soap.SOAPException,
EncodingException
soapResponseMessage - SOAPMessage to add the bodysoapResponse - SOS internal SOAP responseactionURI - The ation URIjavax.xml.soap.SOAPException - If an error occurs when add content to SOAPMessageEncodingException - If an error occurs while encoding the body contentprotected org.apache.xmlbeans.XmlObject getBodyContent(SoapResponse response) throws EncodingException
XmlObjectresponse - SOAP responseXmlObjectEncodingException - If no encoder is available, the object to encode is not supported or an error occurs
during the encodingprotected void createSOAPFault(javax.xml.soap.SOAPFault fault,
SoapFault soapFault)
throws javax.xml.soap.SOAPException
fault - SOAPFault elementsoapFault - SOS internal faultjavax.xml.soap.SOAPException - if an error occurs.protected java.lang.String createSOAPFaultFromExceptionResponse(javax.xml.soap.SOAPFault soapFault,
OwsExceptionReport owsExceptionReport)
throws javax.xml.soap.SOAPException
soapFault - SOAPFault elementowsExceptionReport - SOS exceptionjavax.xml.soap.SOAPException - if an error occurs.protected java.lang.String getExceptionActionURI(ExceptionCode exceptionCode)
exceptionCode - Exception codeCopyright © 2015–2019 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.