Package org.n52.svalbard.encode
Class AbstractSoapEncoder<T,S>
java.lang.Object
org.n52.svalbard.encode.AbstractDelegatingEncoder<T,S>
org.n52.svalbard.encode.AbstractXmlEncoder<T,S>
org.n52.svalbard.encode.AbstractSoapEncoder<T,S>
- All Implemented Interfaces:
Component<EncoderKey>,Keyed<EncoderKey>,Encoder<T,,S> SchemaAwareEncoder<T,S>
- Direct Known Subclasses:
Soap11Encoder,Soap12Encoder
- Since:
- 1.0.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.xmlbeans.XmlObjectgetBodyContent(AbstractSoap<?> soap) Get the content for the SOAPBody asXmlObjectprotected StringgetExceptionActionURI(ExceptionCode exceptionCode) Get SOAP action URI depending on Exception codegetKeys()protected StringgetSoapFaultReasonText(ExceptionCode exceptionCode) Get the reason for a SOAP fault from Exception codeMethods inherited from class org.n52.svalbard.encode.AbstractXmlEncoder
encodeObjectToXml, encodeObjectToXml, encodeObjectToXmlDocument, encodeObjectToXmlDocument, encodeObjectToXmlPropertyType, encodeObjectToXmlPropertyType, encodeObjectToXmlText, encodeObjectToXmlText, getAndCheck, getDocumentEncoder, getDocumentEncoder, getDocumentEncoderKey, getDocumentEncoderKey, getEncoder, getEncoder, getEncoderKey, getEncoderKey, getPropertyTypeEncoder, getPropertyTypeEncoder, getPropertyTypeEncoderKey, getPropertyTypeEncoderKey, getXmlOptions, setXmlOptions, substituteMethods inherited from class org.n52.svalbard.encode.AbstractDelegatingEncoder
getEncoder, getEncoderRepository, setEncoderRepositoryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.n52.svalbard.encode.Encoder
encode, getSupportedTypesMethods inherited from interface org.n52.svalbard.encode.SchemaAwareEncoder
addNamespacePrefixToMap, getSchemaLocations
-
Field Details
-
DEFAULT_FAULT_REASON
- See Also:
-
MISSING_RESPONSE_DETAIL_TEXT
- See Also:
-
MISSING_EXCEPTION_DETAIL_TEXT
- See Also:
-
-
Constructor Details
-
AbstractSoapEncoder
-
-
Method Details
-
getKeys
-
getContentType
- Specified by:
getContentTypein interfaceEncoder<T,S> - Overrides:
getContentTypein classAbstractXmlEncoder<T,S>
-
encode
- Specified by:
encodein interfaceEncoder<T,S> - Overrides:
encodein classAbstractXmlEncoder<T,S> - Throws:
EncodingException
-
getBodyContent
protected org.apache.xmlbeans.XmlObject getBodyContent(AbstractSoap<?> soap) throws EncodingException Get the content for the SOAPBody asXmlObject- Parameters:
soap- SOAP response- Returns:
- SOAPBody content as
XmlObject - Throws:
EncodingException- If no encoder is available, the object to encode is not supported or an error occurs during the encoding
-
getExceptionActionURI
Get SOAP action URI depending on Exception code- Parameters:
exceptionCode- Exception code- Returns:
- SOAP action URI
-
getSoapFaultReasonText
Get the reason for a SOAP fault from Exception code- Parameters:
exceptionCode- OWS exception code to get reason for.- Returns:
- Text for SOAP fault reason
-