Package org.apache.cxf.binding.soap
Class SoapFault
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.cxf.common.i18n.UncheckedException
-
- org.apache.cxf.interceptor.Fault
-
- org.apache.cxf.binding.soap.SoapFault
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FragmentFault,WSEventingFault,WSTransferFault
public class SoapFault extends Fault
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static QNameATTACHMENT_IO-
Fields inherited from class org.apache.cxf.interceptor.Fault
FAULT_CODE_CLIENT, FAULT_CODE_SERVER, STACKTRACE, STACKTRACE_NAMESPACE
-
Fields inherited from class org.apache.cxf.common.i18n.UncheckedException
message
-
-
Constructor Summary
Constructors Constructor Description SoapFault(String message, Throwable t, QName faultCode)SoapFault(String message, ResourceBundle bundle, Throwable t, QName faultCode)SoapFault(String message, ResourceBundle bundle, QName faultCode)SoapFault(String message, ResourceBundle bundle, QName faultCode, Object... params)SoapFault(String message, QName faultCode)SoapFault(Message message, Throwable throwable, QName faultCode)SoapFault(Message message, QName faultCode)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSubCode(QName subCode)Appends the SubCode to the SubCode list.static SoapFaultcreateFault(Fault f, SoapVersion v)StringgetCodeString(String prefix, String defaultPrefix)Map<String,String>getNamespaces()StringgetNode()StringgetReason()StringgetRole()Returns the fault actor.QNamegetSubCode()Returns the SubCode for the Fault Code.List<QName>getSubCodes()Returns the SubCode list for the Fault Code.StringgetSubCodeString(String prefix, String defaultPrefix)voidsetNamespaces(Map<String,String> namespaces)voidsetNode(String n)voidsetRole(String actor)Sets the fault actor.voidsetSubCode(QName subCode)Sets the SubCode for the Fault Code.voidsetSubCodes(List<QName> subCodes)Sets the SubCode list for the Fault Code.-
Methods inherited from class org.apache.cxf.interceptor.Fault
getDetail, getFaultCode, getLang, getMessage, getOrCreateDetail, getStatusCode, hasDetails, setDetail, setFaultCode, setLang, setMessage, setStatusCode
-
Methods inherited from class org.apache.cxf.common.i18n.UncheckedException
getCode
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
ATTACHMENT_IO
public static final QName ATTACHMENT_IO
-
-
Constructor Detail
-
SoapFault
public SoapFault(String message, ResourceBundle bundle, QName faultCode)
-
SoapFault
public SoapFault(String message, ResourceBundle bundle, Throwable t, QName faultCode)
-
SoapFault
public SoapFault(String message, ResourceBundle bundle, QName faultCode, Object... params)
-
-
Method Detail
-
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. If there are more than one Subcode entries in this fault, the first Subcode is returned.- Returns:
- The SubCode element as detailed by the SOAP 1.2 spec.
-
getSubCodes
public List<QName> getSubCodes()
Returns the SubCode list for the Fault Code.- Returns:
- The SubCode element list as detailed by the SOAP 1.2 spec.
-
setSubCode
public void setSubCode(QName subCode)
Sets the SubCode for the Fault Code. If there are more than one Subcode entries in this fault, the first Subcode is set while the other entries are removed.- Parameters:
subCode- The SubCode element as detailed by the SOAP 1.2 spec.
-
setSubCodes
public void setSubCodes(List<QName> subCodes)
Sets the SubCode list for the Fault Code.- Parameters:
subCodes- The SubCode element list as detailed by the SOAP 1.2 spec.
-
addSubCode
public void addSubCode(QName subCode)
Appends the SubCode to the SubCode list.- Parameters:
subCode- The SubCode element as detailed by the SOAP 1.2 spec.
-
createFault
public static SoapFault createFault(Fault f, SoapVersion v)
-
-