Package feign.soap
Class SOAPErrorDecoder
- java.lang.Object
-
- feign.soap.SOAPErrorDecoder
-
- All Implemented Interfaces:
feign.codec.ErrorDecoder
public class SOAPErrorDecoder extends java.lang.Object implements feign.codec.ErrorDecoder
Wraps the returnedSOAPFault
if present into aSOAPFaultException
. So you need to catchSOAPFaultException
to retrieve the reason of theSOAPFault
.If no faults is returned then the default
ErrorDecoder
is used to return exception and eventually retry the call.
-
-
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)
-
-
-
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)
-
-