Package feign.soap
Class SOAPErrorDecoder
- java.lang.Object
-
- feign.soap.SOAPErrorDecoder
-
- All Implemented Interfaces:
ErrorDecoder
public class SOAPErrorDecoder extends Object implements ErrorDecoder
Wraps the returnedSOAPFaultif present into aSOAPFaultException. So you need to catchSOAPFaultExceptionto retrieve the reason of theSOAPFault.If no faults is returned then the default
ErrorDecoderis used to return exception and eventually retry the call.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface feign.codec.ErrorDecoder
ErrorDecoder.Default, ErrorDecoder.RetryAfterDecoder
-
-
Constructor Summary
Constructors Constructor Description SOAPErrorDecoder()SOAPErrorDecoder(String soapProtocol)SOAPErrorDecoder constructor allowing you to specify the SOAP protocol.
-
-
-
Constructor Detail
-
SOAPErrorDecoder
public SOAPErrorDecoder()
-
SOAPErrorDecoder
public SOAPErrorDecoder(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 Exception decode(String methodKey, Response response)
- Specified by:
decodein interfaceErrorDecoder
-
-