public interface FaultAwareWebServiceConnection extends WebServiceConnection
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.Modifier and Type | Method and Description |
---|---|
boolean |
hasFault()
Indicates whether this connection received a fault.
|
void |
setFault(boolean fault)
Deprecated.
In favor of
setFaultCode(QName) |
void |
setFaultCode(QName faultCode)
Sets a specific fault code.
|
close, getErrorMessage, getUri, hasError, receive, send
boolean hasFault() throws IOException
Typically implemented by looking at an HTTP status code.
true
if this connection received a fault; false
otherwise.IOException
- in case of I/O errors@Deprecated void setFault(boolean fault) throws IOException
setFaultCode(QName)
Typically implemented by setting an HTTP status code.
fault
- true
if this will send a fault; false
otherwise.IOException
- in case of I/O errorsvoid setFaultCode(QName faultCode) throws IOException
Typically implemented by setting an HTTP status code.
faultCode
- the fault code to be set on the connection, or null
for no fault.IOException
- in case of I/O errorsCopyright © 2020 Pivotal Software. All rights reserved.