Class AbstractSoapEncoder<T,S>

All Implemented Interfaces:
Component<EncoderKey>, Keyed<EncoderKey>, Encoder<T,S>, SchemaAwareEncoder<T,S>
Direct Known Subclasses:
Soap11Encoder, Soap12Encoder

public abstract class AbstractSoapEncoder<T,S> extends AbstractXmlEncoder<T,S>
Since:
1.0.0
  • Field Details

  • Constructor Details

    • AbstractSoapEncoder

      public AbstractSoapEncoder(String namespace)
  • Method Details

    • getKeys

      public Set<EncoderKey> getKeys()
    • getContentType

      public MediaType getContentType()
      Specified by:
      getContentType in interface Encoder<T,S>
      Overrides:
      getContentType in class AbstractXmlEncoder<T,S>
    • encode

      public T encode(S response) throws EncodingException
      Specified by:
      encode in interface Encoder<T,S>
      Overrides:
      encode in class AbstractXmlEncoder<T,S>
      Throws:
      EncodingException
    • getBodyContent

      protected org.apache.xmlbeans.XmlObject getBodyContent(AbstractSoap<?> soap) throws EncodingException
      Get the content for the SOAPBody as XmlObject
      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

      protected String getExceptionActionURI(ExceptionCode exceptionCode)
      Get SOAP action URI depending on Exception code
      Parameters:
      exceptionCode - Exception code
      Returns:
      SOAP action URI
    • getSoapFaultReasonText

      protected String getSoapFaultReasonText(ExceptionCode exceptionCode)
      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