Package org.springframework.ws.transport
Interface FaultAwareWebServiceConnection
- All Superinterfaces:
AutoCloseable
,WebServiceConnection
- All Known Implementing Classes:
AbstractHttpSenderConnection
,ClientHttpRequestConnection
,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 TypeMethodDescriptionboolean
hasFault()
Indicates whether this connection received a fault.void
setFaultCode
(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:
true
if this connection received a fault;false
otherwise.- 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, ornull
for no fault.- Throws:
IOException
- in case of I/O errors
-