SequenceFaultMsg
public abstract class WsrmFaultMsg
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
protected WsrmConstants.FaultCode |
code |
WSRM Specification: fault code, minus any SOAP prefix
|
protected java.lang.String |
reason |
WSRM Specification: The english language reason element
|
protected java.lang.String |
subCode |
WSRM Specification: fault subcode, minus any WSRM prefix
|
protected SequenceFaultMsgType |
type |
Note, subclasses will handle detail
|
Modifier | Constructor | Description |
---|---|---|
protected |
WsrmFaultMsg(WsrmConstants.RMVersion rmVersion,
WsrmConstants.FaultCode code,
java.lang.String subCode,
java.lang.String reason,
SequenceFaultMsgType type) |
Modifier and Type | Method | Description |
---|---|---|
WsrmConstants.FaultCode |
getCode() |
|
java.lang.String |
getCodeLocalName(WsrmConstants.SOAPVersion soapVersion) |
|
javax.xml.namespace.QName |
getCodeQName(WsrmConstants.SOAPVersion soapVersion) |
|
java.lang.String |
getCodeQualifiedName(WsrmConstants.SOAPVersion soapVersion) |
|
java.lang.String |
getReason() |
|
WsrmConstants.RMVersion |
getRmVersion() |
|
java.lang.String |
getSubCodeLocalName() |
|
javax.xml.namespace.QName |
getSubCodeQName() |
|
static javax.xml.namespace.QName |
getSubCodeQName(java.lang.Class clazz,
WsrmConstants.RMVersion rmVersion) |
Get the QName representing the fault with the given class, conforming
to the given WS-RM version.
|
static java.util.List<javax.xml.namespace.QName> |
getSubCodeQNames(java.lang.Class clazz) |
Get a list of QName objects representing the fault with the given class
and all possible versions of WS-RM
|
java.lang.String |
getSubCodeQualifiedName() |
|
SequenceFaultMsgType |
getType() |
|
abstract void |
read(javax.xml.soap.SOAPMessage msg) |
|
abstract void |
readDetail(org.w3c.dom.Element element) |
|
void |
setReason(java.lang.String reason) |
|
java.lang.String |
toString() |
|
abstract void |
write(javax.xml.soap.SOAPMessage msg) |
|
abstract void |
writeDetail(org.w3c.dom.Element element) |
protected WsrmConstants.FaultCode code
protected java.lang.String subCode
protected java.lang.String reason
protected SequenceFaultMsgType type
protected WsrmFaultMsg(WsrmConstants.RMVersion rmVersion, WsrmConstants.FaultCode code, java.lang.String subCode, java.lang.String reason, SequenceFaultMsgType type)
public WsrmConstants.RMVersion getRmVersion()
public WsrmConstants.FaultCode getCode()
public java.lang.String getCodeQualifiedName(WsrmConstants.SOAPVersion soapVersion)
public javax.xml.namespace.QName getCodeQName(WsrmConstants.SOAPVersion soapVersion)
public java.lang.String getCodeLocalName(WsrmConstants.SOAPVersion soapVersion)
public java.lang.String getSubCodeQualifiedName()
public javax.xml.namespace.QName getSubCodeQName()
public java.lang.String getSubCodeLocalName()
public java.lang.String getReason()
public void setReason(java.lang.String reason)
public SequenceFaultMsgType getType()
public static javax.xml.namespace.QName getSubCodeQName(java.lang.Class clazz, WsrmConstants.RMVersion rmVersion)
clazz
- WsrmFaultMsg or subclassrmVersion
- Version of WS-RM to which the header will conform.java.lang.RuntimeException
- if the given class is not a WsrmFaultMsg subclasspublic static java.util.List<javax.xml.namespace.QName> getSubCodeQNames(java.lang.Class clazz)
clazz
- WsrmFaultMsg or subclassjava.lang.RuntimeException
- if the given class is not a WsrmFaultMsg subclasspublic abstract void read(javax.xml.soap.SOAPMessage msg) throws SequenceFaultException
SequenceFaultException
public abstract void write(javax.xml.soap.SOAPMessage msg) throws SequenceFaultException
SequenceFaultException
public abstract void readDetail(org.w3c.dom.Element element) throws SequenceFaultException
SequenceFaultException
public abstract void writeDetail(org.w3c.dom.Element element) throws SequenceFaultException
SequenceFaultException
public java.lang.String toString()
toString
in class java.lang.Object