Spring Web Services Framework

org.springframework.ws.soap.server.endpoint
Class SoapFaultDefinitionEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by org.springframework.ws.soap.server.endpoint.SoapFaultDefinitionEditor
All Implemented Interfaces:
PropertyEditor

public class SoapFaultDefinitionEditor
extends PropertyEditorSupport

PropertyEditor for SoapFaultDefinition objects. Takes strings of form

 faultCode,faultString,locale
 
where faultCode is the string representation of a QName, faultStringOrReason is the optional fault string, and locale is the optional string representations for the faultStringOrReasonlanguage. 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 error
 
or
 CLIENT,Client error
 
or
 {http://springframework.org/spring-ws}spring-ws:FatalError},A fatal error has occurred
 

Since:
1.0.0
Author:
Arjen Poutsma
See Also:
QName.toString(), QNameEditor, SoapFaultDefinition.RECEIVER, SoapFaultDefinition.SERVER, SoapFaultDefinition.SENDER, SoapFaultDefinition.CLIENT, SoapFault.getFaultCode()

Constructor Summary
SoapFaultDefinitionEditor()
           
 
Method Summary
 void setAsText(String text)
           
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoapFaultDefinitionEditor

public SoapFaultDefinitionEditor()
Method Detail

setAsText

public void setAsText(String text)
               throws IllegalArgumentException
Specified by:
setAsText in interface PropertyEditor
Overrides:
setAsText in class PropertyEditorSupport
Throws:
IllegalArgumentException

Spring Web Services Framework

Copyright © 2005-2010 The Spring Web Services Framework. All Rights Reserved.