Spring Web Services Framework

org.springframework.ws
Interface FaultAwareWebServiceMessage

All Superinterfaces:
WebServiceMessage
All Known Subinterfaces:
SoapMessage
All Known Implementing Classes:
AbstractSoapMessage, AxiomSoapMessage, SaajSoapMessage

public interface FaultAwareWebServiceMessage
extends WebServiceMessage

Sub-interface of WebServiceMessage that can contain special Fault messages. Fault messages (such as SoapFault SOAP Faults) often require different processing rules.

Since:
1.0.0
Author:
Arjen Poutsma
See Also:
SoapMessage

Method Summary
 String getFaultReason()
          Returns the fault reason message.
 boolean hasFault()
          Does this message have a fault?
 
Methods inherited from interface org.springframework.ws.WebServiceMessage
getPayloadResult, getPayloadSource, writeTo
 

Method Detail

hasFault

boolean hasFault()
Does this message have a fault?

Returns:
true if the message has a fault.
See Also:
getFaultReason()

getFaultReason

String getFaultReason()
Returns the fault reason message.

Returns:
the fault reason message, if any; returns null when no fault is present.
See Also:
hasFault()

Spring Web Services Framework

Copyright � 2005-2008 The Spring Web Services Framework. All Rights Reserved.