Package feign.soap

Class SOAPErrorDecoder

  • All Implemented Interfaces:
    feign.codec.ErrorDecoder

    public class SOAPErrorDecoder
    extends java.lang.Object
    implements feign.codec.ErrorDecoder
    Wraps the returned SOAPFault if present into a SOAPFaultException. So you need to catch SOAPFaultException to retrieve the reason of the SOAPFault.

    If no faults is returned then the default ErrorDecoder is used to return exception and eventually retry the call.

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface feign.codec.ErrorDecoder

        feign.codec.ErrorDecoder.Default, feign.codec.ErrorDecoder.RetryAfterDecoder
    • Constructor Summary

      Constructors 
      Constructor Description
      SOAPErrorDecoder()  
      SOAPErrorDecoder​(java.lang.String soapProtocol)
      SOAPErrorDecoder constructor allowing you to specify the SOAP protocol.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Exception decode​(java.lang.String methodKey, feign.Response response)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SOAPErrorDecoder

        public SOAPErrorDecoder()
      • SOAPErrorDecoder

        public SOAPErrorDecoder​(java.lang.String soapProtocol)
        SOAPErrorDecoder constructor allowing you to specify the SOAP protocol.
        Parameters:
        soapProtocol - a string constant representing the MessageFactory protocol.
        See Also:
        SOAPConstants.SOAP_1_1_PROTOCOL, SOAPConstants.SOAP_1_2_PROTOCOL, SOAPConstants.DYNAMIC_SOAP_PROTOCOL, MessageFactory.newInstance(String)
    • Method Detail

      • decode

        public java.lang.Exception decode​(java.lang.String methodKey,
                                          feign.Response response)
        Specified by:
        decode in interface feign.codec.ErrorDecoder