Class SoapFaultDefinitionEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.springframework.ws.soap.server.endpoint.SoapFaultDefinitionEditor
- All Implemented Interfaces:
PropertyEditor
PropertyEditor for
SoapFaultDefinition
objects. Takes strings of form
faultCode,faultString,localewhere
faultCode
is the string representation of a QName
, faultStringOrReason
is the optional
fault string, and locale
is the optional string representations for the faultStringOrReason
language.
By default, the language is set to English, and the fault string set to the exception message.
Instead of supplying a custom fault code, you can use the constants SERVER
or RECEIVER
indicate a
Server
/Receiver
fault, or CLIENT
or SENDER
toClient
/Sender
fault
respectively.
For example:
RECEIVER,Server erroror
CLIENT,Client erroror
{http://springframework.org/spring-ws}spring-ws:FatalError},A fatal error has occurred
- Since:
- 1.0.0
- Author:
- Arjen Poutsma
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
-
Constructor Details
-
SoapFaultDefinitionEditor
public SoapFaultDefinitionEditor()
-
-
Method Details
-
setAsText
- Specified by:
setAsText
in interfacePropertyEditor
- Overrides:
setAsText
in classPropertyEditorSupport
- Throws:
IllegalArgumentException
-