public class SoapFaultDefinitionEditor extends PropertyEditorSupport
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
QName.toString()
,
QNameEditor
,
SoapFaultDefinition.RECEIVER
,
SoapFaultDefinition.SERVER
,
SoapFaultDefinition.SENDER
,
SoapFaultDefinition.CLIENT
,
SoapFault.getFaultCode()
Constructor and Description |
---|
SoapFaultDefinitionEditor() |
Modifier and Type | Method and Description |
---|---|
void |
setAsText(String text) |
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
public void setAsText(String text) throws IllegalArgumentException
setAsText
in interface PropertyEditor
setAsText
in class PropertyEditorSupport
IllegalArgumentException
Copyright © 2018 Pivotal Software. All rights reserved.