Package org.springframework.ws.soap
Interface SoapFault
- All Superinterfaces:
SoapElement
- All Known Subinterfaces:
Soap11Fault
,Soap12Fault
Represents the
Fault
element in the body of a SOAP message.
A fault consists of a fault code
, fault string/reason
, and
role
.
- Since:
- 1.0.0
- Author:
- Arjen Poutsma
-
Method Summary
Modifier and TypeMethodDescriptionCreates an optionalSoapFaultDetail
object and assigns it to this fault.Returns the fault actor or role.Returns the fault code.Returns the optional detail element for thisSoapFault
.Returns the fault string or reason.void
setFaultActorOrRole
(String faultActor) Sets the fault actor.Methods inherited from interface org.springframework.ws.soap.SoapElement
addAttribute, addNamespaceDeclaration, getAllAttributes, getAttributeValue, getName, getSource, removeAttribute
-
Method Details
-
getFaultCode
QName getFaultCode()Returns the fault code. -
getFaultStringOrReason
String getFaultStringOrReason()Returns the fault string or reason. For SOAP 1.1, this returns the fault string. For SOAP 1.2, this returns the fault reason for the default locale. -
getFaultActorOrRole
String getFaultActorOrRole()Returns the fault actor or role. For SOAP 1.1, this returns the actor. For SOAP 1.2, this returns the role. -
setFaultActorOrRole
Sets the fault actor. For SOAP 1.1, this sets the actor. For SOAP 1.2, this sets the role. -
getFaultDetail
SoapFaultDetail getFaultDetail()Returns the optional detail element for thisSoapFault
.- Returns:
- a fault detail
-
addFaultDetail
SoapFaultDetail addFaultDetail()Creates an optionalSoapFaultDetail
object and assigns it to this fault.- Returns:
- the created detail
-