Spring Web Services Framework

org.springframework.ws.transport
Interface FaultAwareWebServiceConnection

All Superinterfaces:
WebServiceConnection
All Known Implementing Classes:
AbstractHttpSenderConnection, CommonsHttpConnection, HttpComponentsConnection, HttpExchangeConnection, HttpServletConnection, HttpUrlConnection

public interface FaultAwareWebServiceConnection
extends WebServiceConnection

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
Author:
Arjen Poutsma

Method Summary
 boolean hasFault()
          Indicates whether this connection received a fault.
 void setFault(boolean fault)
          Sets whether this connection will send a fault.
 
Methods inherited from interface org.springframework.ws.transport.WebServiceConnection
close, getErrorMessage, getUri, hasError, receive, send
 

Method Detail

hasFault

boolean hasFault()
                 throws IOException
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

setFault

void setFault(boolean fault)
              throws IOException
Sets whether this connection will send a fault.

Typically implemented by setting an HTTP status code.

Parameters:
fault - true if this will send a fault; false otherwise.
Throws:
IOException - in case of I/O errors

Spring Web Services Framework

Copyright © 2005-2013 The Spring Web Services Framework. All Rights Reserved.