public abstract class AbstractSoapEncoder<T,S> extends AbstractXmlEncoder<T,S>
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_FAULT_REASON |
static String |
MISSING_EXCEPTION_DETAIL_TEXT |
static String |
MISSING_RESPONSE_DETAIL_TEXT |
| Constructor and Description |
|---|
AbstractSoapEncoder(String namespace) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
createSOAPBody(SOAPMessage soapResponseMessage,
SoapResponse soapResponse,
String actionURI)
Create and add the SOAPBody content
|
protected String |
createSOAPBody(SOAPMessage soapResponseMessage,
org.apache.xmlbeans.XmlObject sosResponse,
String actionURI)
Creates a SOAPBody element from SOS response
|
protected void |
createSOAPFault(SOAPFault fault,
SoapFault soapFault)
Creates a SOAPFault element from SOS internal fault
|
protected String |
createSOAPFaultFromExceptionResponse(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 String |
getExceptionActionURI(ExceptionCode exceptionCode)
Get SOAP action URI depending on Exception code
|
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 String DEFAULT_FAULT_REASON
public static final String MISSING_RESPONSE_DETAIL_TEXT
public static final String MISSING_EXCEPTION_DETAIL_TEXT
public AbstractSoapEncoder(String namespace)
public 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 String createSOAPBody(SOAPMessage soapResponseMessage, org.apache.xmlbeans.XmlObject sosResponse, String actionURI) throws SOAPException
soapResponseMessage - SOAPBody elementsosResponse - SOS responseactionURI - the action URISOAPException - if an error occurs.protected String createSOAPBody(SOAPMessage soapResponseMessage, SoapResponse soapResponse, String actionURI) throws SOAPException, EncodingException
soapResponseMessage - SOAPMessage to add the bodysoapResponse - SOS internal SOAP responseactionURI - The ation URISOAPException - 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(SOAPFault fault, SoapFault soapFault) throws SOAPException
fault - SOAPFault elementsoapFault - SOS internal faultSOAPException - if an error occurs.protected String createSOAPFaultFromExceptionResponse(SOAPFault soapFault, OwsExceptionReport owsExceptionReport) throws SOAPException
soapFault - SOAPFault elementowsExceptionReport - SOS exceptionSOAPException - if an error occurs.protected String getExceptionActionURI(ExceptionCode exceptionCode)
exceptionCode - Exception codeCopyright © 2015–2018 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.