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 SummaryModifier and TypeMethodDescriptionCreates an optionalSoapFaultDetailobject 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.voidsetFaultActorOrRole(String faultActor) Sets the fault actor.Methods inherited from interface org.springframework.ws.soap.SoapElementaddAttribute, addNamespaceDeclaration, getAllAttributes, getAttributeValue, getName, getSource, removeAttribute
- 
Method Details- 
getFaultCodeQName getFaultCode()Returns the fault code.
- 
getFaultStringOrReasonString 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.
- 
getFaultActorOrRoleString getFaultActorOrRole()Returns the fault actor or role. For SOAP 1.1, this returns the actor. For SOAP 1.2, this returns the role.
- 
setFaultActorOrRoleSets the fault actor. For SOAP 1.1, this sets the actor. For SOAP 1.2, this sets the role.
- 
getFaultDetailSoapFaultDetail getFaultDetail()Returns the optional detail element for thisSoapFault.- Returns:
- a fault detail
 
- 
addFaultDetailSoapFaultDetail addFaultDetail()Creates an optionalSoapFaultDetailobject and assigns it to this fault.- Returns:
- the created detail
 
 
-