Package org.springframework.ws.transport
Interface FaultAwareWebServiceConnection
- All Superinterfaces:
AutoCloseable,WebServiceConnection
- All Known Implementing Classes:
AbstractHttpSenderConnection,ClientHttpRequestConnection,CommonsHttpConnection,HttpComponents5Connection,HttpComponentsConnection,HttpExchangeConnection,HttpServletConnection,HttpUrlConnection,JdkHttpClientConnection
Sub-interface of
WebServiceConnection that is aware of any Fault messages
received. Fault messages (such as SoapFault SOAP Faults) often require
different processing rules. Typically, fault detection is done by inspecting connection
error codes, etc.- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionbooleanhasFault()Indicates whether this connection received a fault.voidsetFault(boolean fault) Deprecated.voidsetFaultCode(QName faultCode) Sets a specific fault code.Methods inherited from interface org.springframework.ws.transport.WebServiceConnection
close, getErrorMessage, getUri, hasError, receive, send
-
Method Details
-
hasFault
Indicates whether this connection received a fault.Typically implemented by looking at an HTTP status code.
- Returns:
trueif this connection received a fault;falseotherwise.- Throws:
IOException- in case of I/O errors
-
setFault
Deprecated.In favor ofsetFaultCode(QName)Sets whether this connection will send a fault.Typically implemented by setting an HTTP status code.
- Parameters:
fault-trueif this will send a fault;falseotherwise.- Throws:
IOException- in case of I/O errors
-
setFaultCode
Sets a specific fault code.Typically implemented by setting an HTTP status code.
- Parameters:
faultCode- the fault code to be set on the connection, ornullfor no fault.- Throws:
IOException- in case of I/O errors
-
setFaultCode(QName)