public class SoapFault extends Fault
Modifier and Type | Field and Description |
---|---|
static QName |
ATTACHMENT_IO |
FAULT_CODE_CLIENT, FAULT_CODE_SERVER, STACKTRACE, STACKTRACE_NAMESPACE
message
Constructor and Description |
---|
SoapFault(Message message,
QName faultCode) |
SoapFault(Message message,
Throwable throwable,
QName faultCode) |
SoapFault(String message,
QName faultCode) |
SoapFault(String message,
ResourceBundle bundle,
QName faultCode) |
SoapFault(String message,
ResourceBundle bundle,
QName faultCode,
Object... params) |
SoapFault(String message,
ResourceBundle bundle,
Throwable t,
QName faultCode) |
SoapFault(String message,
Throwable t,
QName faultCode) |
Modifier and Type | Method and Description |
---|---|
void |
addSubCode(QName subCode)
Appends the SubCode to the SubCode list.
|
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.
|
List<QName> |
getSubCodes()
Returns the SubCode list 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.
|
void |
setSubCodes(List<QName> subCodes)
Sets the SubCode list for the Fault Code.
|
getDetail, getFaultCode, getLang, getMessage, getOrCreateDetail, getStatusCode, hasDetails, setDetail, setFaultCode, setLang, setMessage, setStatusCode
getCode
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final QName ATTACHMENT_IO
public SoapFault(String message, ResourceBundle bundle, QName faultCode)
public SoapFault(String message, ResourceBundle bundle, Throwable t, QName faultCode)
public SoapFault(String message, ResourceBundle bundle, QName faultCode, Object... params)
public String getReason()
public String getRole()
public void setRole(String actor)
actor
- the actor.public String getNode()
public void setNode(String n)
public QName getSubCode()
public List<QName> getSubCodes()
public void setSubCode(QName subCode)
subCode
- The SubCode element as detailed by the SOAP 1.2 spec.public void setSubCodes(List<QName> subCodes)
subCode
- The SubCode element list as detailed by the SOAP 1.2 spec.public void addSubCode(QName subCode)
subCode
- The SubCode element as detailed by the SOAP 1.2 spec.public static SoapFault createFault(Fault f, SoapVersion v)
Apache CXF