org.ws4d.java.message
Class FaultMessage

java.lang.Object
  extended by org.ws4d.java.types.UnknownDataContainer
      extended by org.ws4d.java.message.Message
          extended by org.ws4d.java.message.FaultMessage
All Implemented Interfaces:
DPWSMessageConstants

public class FaultMessage
extends Message


Field Summary
static java.lang.String ACTION_ADDRESSING
           
static java.lang.String ACTION_SOAP
           
static java.lang.String ACTION_WSD
           
 
Fields inherited from class org.ws4d.java.message.Message
MULTICAST_ROUTING_SCHEME, UNICAST_ROUTING_SCHEME, UNKNOWN_ROUTING_SCHEME
 
Fields inherited from interface org.ws4d.java.constants.DPWSMessageConstants
BYE_MESSAGE, FAULT_MESSAGE, GET_MESSAGE, GET_METADATA_MESSAGE, GET_METADATA_RESPONSE_MESSAGE, GET_RESPONSE_MESSAGE, GET_STATUS_MESSAGE, GET_STATUS_RESPONSE_MESSAGE, HELLO_MESSAGE, INVOKE_MESSAGE, MESSAGE_PROPERTY_DATA, PROBE_MATCHES_MESSAGE, PROBE_MESSAGE, RENEW_MESSAGE, RENEW_RESPONSE_MESSAGE, RESOLVE_MATCHES_MESSAGE, RESOLVE_MESSAGE, SUBSCRIBE_MESSAGE, SUBSCRIBE_RESPONSE_MESSAGE, SUBSCRIPTION_END_MESSAGE, UNKNOWN_MESSAGE, UNSUBSCRIBE_MESSAGE, UNSUBSCRIBE_RESPONSE_MESSAGE
 
Constructor Summary
FaultMessage(SOAPHeader header)
           
FaultMessage(SOAPHeader header, QName code, QName subcode)
           
FaultMessage(java.lang.String action, java.lang.String communicationManagerId)
          Crates a new fault message with the given action, which is expected to be a valid absolute URI.
 
Method Summary
 void addReason(LocalizedString reason)
           
static FaultMessage createActionNotSupportedFault(Message request)
           
static FaultMessage createAuthenticationFault(Message message)
           
static FaultMessage createEndpointUnavailableFault(Message message)
           
static FaultMessage createMessageAddressingHeaderRequired(java.lang.String communicationManagerId)
           
 QName getCode()
          Returns the SOAP fault code.
 ParameterValue getDetail()
          Returns the SOAP fault detail.
 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 setReason(DataStructure reason)
           
 void setSubcode(QName subcode)
           
 void setSubsubcode(QName subsubcode)
           
 java.lang.String toString()
           
 
Methods inherited from class org.ws4d.java.message.Message
getAction, getAppSequence, getCertificate, getHeader, getMessageId, getPrivateKey, getProtocolInfo, getRelatesTo, getReplyTo, getRoutingScheme, getTargetAddress, getTargetXAddressInfo, getTo, isInbound, isSecure, setCertificate, setInbound, setPrivateKey, setProtocolInfo, setResponseTo, setResponseTo, setRoutingScheme, setSecure, setTargetXAddressInfo
 
Methods inherited from class org.ws4d.java.types.UnknownDataContainer
addUnknownAttribute, addUnknownElement, getUnknownAttribute, getUnknownAttributes, getUnknownElement, getUnknownElements, getUnknownElements, setUnknownAttributes, setUnknownElements
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ACTION_ADDRESSING

public static final java.lang.String ACTION_ADDRESSING
See Also:
Constant Field Values

ACTION_SOAP

public static final java.lang.String ACTION_SOAP
See Also:
Constant Field Values

ACTION_WSD

public static final java.lang.String ACTION_WSD
See Also:
Constant Field Values
Constructor Detail

FaultMessage

public FaultMessage(java.lang.String action,
                    java.lang.String communicationManagerId)
Crates a new fault message with the given action, which is expected to be a valid absolute URI.

Parameters:
action - the action URI of the fault message

FaultMessage

public FaultMessage(SOAPHeader header)
Parameters:
header -

FaultMessage

public FaultMessage(SOAPHeader header,
                    QName code,
                    QName subcode)
Parameters:
header -
code -
subcode -
Method Detail

createActionNotSupportedFault

public static FaultMessage createActionNotSupportedFault(Message request)

createEndpointUnavailableFault

public static FaultMessage createEndpointUnavailableFault(Message message)

createMessageAddressingHeaderRequired

public static FaultMessage createMessageAddressingHeaderRequired(java.lang.String communicationManagerId)

createAuthenticationFault

public static FaultMessage createAuthenticationFault(Message message)

toString

public java.lang.String toString()
Overrides:
toString in class Message

getType

public int getType()
Description copied from class: Message
Type of message.

Specified by:
getType in class Message
Returns:
type.

getCode

public QName getCode()
Returns the SOAP fault code.

Returns:
the SOAP fault code

getSubcode

public QName getSubcode()
Returns the SOAP fault subcode.

Returns:
the SOAP fault subcode

getSubsubcode

public QName getSubsubcode()
Returns the SOAP fault subsubcode.

Returns:
the SOAP fault subsubcode

getReason

public DataStructure getReason()
Returns the list of reasons.

Returns:
the list of reasons

getDetail

public ParameterValue getDetail()
Returns the SOAP fault detail.

Returns:
the SOAP fault detail

setCode

public void setCode(QName code)
Parameters:
code - the code to set

setSubcode

public void setSubcode(QName subcode)
Parameters:
subcode - the subcode to set

setSubsubcode

public void setSubsubcode(QName subsubcode)
Parameters:
subsubcode - the subsubcode to set

setReason

public void setReason(DataStructure reason)
Parameters:
reason - the reason to set

setDetail

public void setDetail(ParameterValue detail)
Parameters:
detail - the detail to set

addReason

public void addReason(LocalizedString reason)