Class SoapFaultDefinition
java.lang.Object
org.springframework.ws.soap.server.endpoint.SoapFaultDefinition
Defines properties for a SOAP Fault. Used by the
SoapFaultDefinitionEditor
and the
SoapFaultMappingExceptionResolver
.- Since:
- 1.0.0
- Author:
- Arjen Poutsma
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final QName
ConstantQName
used to indicate that aClient
fault must be created.static final QName
ConstantQName
used to indicate that aReceiver
fault must be created.static final QName
ConstantQName
used to indicate that aSender
fault must be created.static final QName
ConstantQName
used to indicate that aServer
fault must be created. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the fault code.Returns the fault string or reason text.Gets the fault string locale.void
setFaultCode
(QName faultCode) Sets the fault code.void
setFaultStringOrReason
(String faultStringOrReason) Sets the fault string or reason text.void
Sets the fault string locale.
-
Field Details
-
CLIENT
ConstantQName
used to indicate that aClient
fault must be created. -
RECEIVER
ConstantQName
used to indicate that aReceiver
fault must be created. -
SENDER
ConstantQName
used to indicate that aSender
fault must be created. -
SERVER
ConstantQName
used to indicate that aServer
fault must be created.
-
-
Constructor Details
-
SoapFaultDefinition
public SoapFaultDefinition()
-
-
Method Details
-
getFaultCode
Returns the fault code. -
setFaultCode
Sets the fault code. -
getFaultStringOrReason
Returns the fault string or reason text. By default, it is set to the exception message. -
setFaultStringOrReason
Sets the fault string or reason text. By default, it is set to the exception message. -
getLocale
Gets the fault string locale. By default, it is English.- See Also:
-
setLocale
Sets the fault string locale. By default, it is English.- See Also:
-