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
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final QNameConstantQNameused to indicate that aClientfault must be created.static final QNameConstantQNameused to indicate that aReceiverfault must be created.static final QNameConstantQNameused to indicate that aSenderfault must be created.static final QNameConstantQNameused to indicate that aServerfault must be created. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the fault code.@Nullable StringReturns the fault string or reason text.Gets the fault string locale.voidsetFaultCode(QName faultCode) Sets the fault code.voidsetFaultStringOrReason(String faultStringOrReason) Sets the fault string or reason text.voidSets the fault string locale.
-
Field Details
-
CLIENT
ConstantQNameused to indicate that aClientfault must be created.- See Also:
-
RECEIVER
ConstantQNameused to indicate that aReceiverfault must be created.- See Also:
-
SENDER
ConstantQNameused to indicate that aSenderfault must be created.- See Also:
-
SERVER
ConstantQNameused to indicate that aServerfault must be created.- See Also:
-
-
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
-
setLocale
Sets the fault string locale. By default, it is English.- See Also:
-