Package org.springframework.ws
Interface FaultAwareWebServiceMessage
- All Superinterfaces:
WebServiceMessage
- All Known Subinterfaces:
SoapMessage
- All Known Implementing Classes:
AbstractSoapMessage
,SaajSoapMessage
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:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the fault code, if any.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 Details
-
hasFault
boolean hasFault()Does this message have a fault?- Returns:
true
if the message has a fault.- See Also:
-
getFaultCode
QName getFaultCode()Returns the fault code, if any. -
getFaultReason
String getFaultReason()Returns the fault reason message.- Returns:
- the fault reason message, if any; returns
null
when no fault is present. - See Also:
-