public class FaultMessage extends Message
| Modifier and Type | Field and Description |
|---|---|
static int |
AUTHORIZATION_FAILED
Own faults
|
static int |
FAULT_FILTER_ACTION_NOT_SUPPORTED
DPWS faults
|
static int |
GENERIC_FAULT |
static int |
UNKNOWN_FAULT |
static int |
WSA_FAULT_ACTION_NOT_SUPPORTED
WSA faults
|
static int |
WSA_FAULT_DESTINATION_UNREACHABLE |
static int |
WSA_FAULT_ENDPOINT_UNAVAILABLE |
static int |
WSA_FAULT_INVALID_ADDRESSING_HEADER |
static int |
WSA_FAULT_MESSAGE_ADDRESSING_HEADER_REQUIRED |
static int |
WSE_FAULT_DELIVERY_MODE_REQUESTED_UNAVAILABLE |
static int |
WSE_FAULT_EVENT_SOURCE_UNABLE_TO_PROCESS |
static int |
WSE_FAULT_FILTERING_NOT_SUPPORTED
WSE faults
|
static int |
WSE_FAULT_FILTERING_REQUESTED_UNAVAILABLE |
static int |
WSE_FAULT_INVALID_EXPIRATION_TIME |
static int |
WSE_FAULT_INVALID_MESSAGE |
static int |
WSE_FAULT_UNABLE_TO_RENEW |
static int |
WSE_FAULT_UNSUPPORTED_EXPIRATION_TYPE |
header, inbound, MULTICAST_ROUTING_SCHEME, UNICAST_ROUTING_SCHEME, UNKNOWN_ROUTING_SCHEMEunknownAttributes, unknownElements_QN_2_List| Constructor and Description |
|---|
FaultMessage(AttributedURI faultName,
int faultType)
Crates a new fault message with the given
faultName and faultType. |
FaultMessage(SOAPHeader header,
AttributedURI faultName,
int faultType) |
FaultMessage(SOAPHeader header,
AttributedURI faultName,
QName code,
QName subcode,
int faultType) |
| Modifier and Type | Method and Description |
|---|---|
void |
addReason(LocalizedString reason) |
QName |
getCode()
Returns the SOAP fault code.
|
ParameterValue |
getDetail()
Returns the SOAP fault detail.
|
AttributedURI |
getFaultName()
Returns the fault name.
|
int |
getFaultType() |
DataStructure |
getReason()
Returns the list of reasons.
|
QName |
getSubcode()
Returns the SOAP fault subcode.
|
QName |
getSubsubcode()
Returns the SOAP fault subsubcode.
|
int |
getType()
Type of message.
|
void |
setCode(QName code) |
void |
setDetail(ParameterValue detail) |
void |
setFaultName(AttributedURI invokeOrFaultActionName)
Set the fault name.
|
void |
setFaultType(int faultType) |
void |
setReason(DataStructure reason) |
void |
setResponseTo(Message msg)
Sets the
[relationship], [to] and [parameters]
properties of this message to the values of the [message ID] and [reply to] properties of the passed in message. |
void |
setSubcode(QName subcode) |
void |
setSubsubcode(QName subsubcode) |
java.lang.String |
toString()
(non-Javadoc)
|
getAppSequence, getHeader, getMessageId, getRelatesTo, getReplyTo, getRoutingScheme, getTo, isInbound, setInbound, setResponseTo, setRoutingScheme, setSOAPHeaderaddUnknownAttribute, addUnknownElement, getUnknownAttribute, getUnknownAttributes, getUnknownElement, getUnknownElements, getUnknownElements, setUnknownAttributes, setUnknownElementspublic static final int WSA_FAULT_ACTION_NOT_SUPPORTED
public static final int WSA_FAULT_ENDPOINT_UNAVAILABLE
public static final int WSA_FAULT_MESSAGE_ADDRESSING_HEADER_REQUIRED
public static final int WSA_FAULT_DESTINATION_UNREACHABLE
public static final int WSA_FAULT_INVALID_ADDRESSING_HEADER
public static final int WSE_FAULT_FILTERING_NOT_SUPPORTED
public static final int WSE_FAULT_FILTERING_REQUESTED_UNAVAILABLE
public static final int WSE_FAULT_UNSUPPORTED_EXPIRATION_TYPE
public static final int WSE_FAULT_DELIVERY_MODE_REQUESTED_UNAVAILABLE
public static final int WSE_FAULT_INVALID_EXPIRATION_TIME
public static final int WSE_FAULT_INVALID_MESSAGE
public static final int WSE_FAULT_EVENT_SOURCE_UNABLE_TO_PROCESS
public static final int WSE_FAULT_UNABLE_TO_RENEW
public static final int FAULT_FILTER_ACTION_NOT_SUPPORTED
public static final int AUTHORIZATION_FAILED
public static final int GENERIC_FAULT
public static final int UNKNOWN_FAULT
public FaultMessage(AttributedURI faultName, int faultType)
faultName and faultType.faultName - the name of the fault message.faultType - the type of the fault message.public FaultMessage(SOAPHeader header, AttributedURI faultName, int faultType)
header - public FaultMessage(SOAPHeader header, AttributedURI faultName, QName code, QName subcode, int faultType)
header - code - subcode - public java.lang.String toString()
Messagepublic int getType()
Messagepublic AttributedURI getFaultName()
public void setFaultName(AttributedURI invokeOrFaultActionName)
public QName getCode()
public void setCode(QName code)
code - the code to setpublic QName getSubcode()
public void setSubcode(QName subcode)
subcode - the subcode to setpublic QName getSubsubcode()
public void setSubsubcode(QName subsubcode)
subsubcode - the subsubcode to setpublic DataStructure getReason()
public void setReason(DataStructure reason)
reason - the reason to setpublic ParameterValue getDetail()
public void setDetail(ParameterValue detail)
detail - the detail to setpublic void setResponseTo(Message msg)
Message[relationship], [to] and [parameters]
properties of this message to the values of the [message ID] and [reply to] properties of the passed in message.setResponseTo in class Messagemsg - the message from which to extract the source propertiespublic int getFaultType()
public void setFaultType(int faultType)
public void addReason(LocalizedString reason)