Apache CXF API

org.apache.cxf.binding.soap
Class SoapFault

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.cxf.common.i18n.UncheckedException
                  extended by org.apache.cxf.interceptor.Fault
                      extended by org.apache.cxf.binding.soap.SoapFault
All Implemented Interfaces:
Serializable

public class SoapFault
extends Fault

See Also:
Serialized Form

Field Summary
static QName ATTACHMENT_IO
           
 
Fields inherited from class org.apache.cxf.interceptor.Fault
FAULT_CODE_CLIENT, FAULT_CODE_SERVER, STACKTRACE, STACKTRACE_NAMESPACE
 
Constructor Summary
SoapFault(Message message, QName faultCode)
           
SoapFault(Message message, Throwable throwable, QName faultCode)
           
SoapFault(String message, QName faultCode)
           
SoapFault(String message, Throwable t, QName faultCode)
           
 
Method Summary
static SoapFault createFault(Fault f, SoapVersion v)
           
 String getCodeString(String prefix, String defaultPrefix)
           
 Map<String,String> getNamespaces()
           
 String getNode()
           
 String getReason()
           
 String getRole()
          Returns the fault actor.
 QName getSubCode()
          Returns the SubCode for the Fault Code.
 String getSubCodeString(String prefix, String defaultPrefix)
           
 void setNamespaces(Map<String,String> namespaces)
           
 void setNode(String n)
           
 void setRole(String actor)
          Sets the fault actor.
 void setSubCode(QName subCode)
          Sets the SubCode for the Fault Code.
 
Methods inherited from class org.apache.cxf.interceptor.Fault
getDetail, getFaultCode, getMessage, getOrCreateDetail, getStatusCode, hasDetails, setDetail, setFaultCode, setMessage, setStatusCode
 
Methods inherited from class org.apache.cxf.common.i18n.UncheckedException
getCode
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ATTACHMENT_IO

public static final QName ATTACHMENT_IO
Constructor Detail

SoapFault

public SoapFault(Message message,
                 Throwable throwable,
                 QName faultCode)

SoapFault

public SoapFault(Message message,
                 QName faultCode)

SoapFault

public SoapFault(String message,
                 QName faultCode)

SoapFault

public SoapFault(String message,
                 Throwable t,
                 QName faultCode)
Method Detail

getCodeString

public String getCodeString(String prefix,
                            String defaultPrefix)

getSubCodeString

public String getSubCodeString(String prefix,
                               String defaultPrefix)

getReason

public String getReason()

getRole

public String getRole()
Returns the fault actor.

Returns:
the fault actor.

setRole

public void setRole(String actor)
Sets the fault actor.

Parameters:
actor - the actor.

getNode

public String getNode()

setNode

public void setNode(String n)

getSubCode

public QName getSubCode()
Returns the SubCode for the Fault Code.

Returns:
The SubCode element as detailed by the SOAP 1.2 spec.

setSubCode

public void setSubCode(QName subCode)
Sets the SubCode for the Fault Code.

Parameters:
subCode - The SubCode element as detailed by the SOAP 1.2 spec.

getNamespaces

public Map<String,String> getNamespaces()

setNamespaces

public void setNamespaces(Map<String,String> namespaces)

createFault

public static SoapFault createFault(Fault f,
                                    SoapVersion v)

Apache CXF API

Apache CXF