cgl.narada.wsinfra.wsrm.impl
Class WsrmFaultsImpl

java.lang.Object
  extended by cgl.narada.wsinfra.wsrm.impl.WsrmFaultsImpl
All Implemented Interfaces:
WsrmFaults

public class WsrmFaultsImpl
extends Object
implements WsrmFaults

This class provides a one-stop for creating all the faults that occur during WSRM processing. This eliminates the need to hard-code this in several places. Furthermore, if the spec changes the impact of this change will be felt at far fewer places.


Method Summary
 SequenceFaultDocument getCreateSequenceRefused()
          This fault is sent by an RM Destination to indicate that it cannot begin a requested Sequence.
 String getCreateSequenceRefusedReason()
          Retrieve the reason associated with the fault
static WsrmFaults getInstance()
           
 SequenceFaultDocument getInvalidAcknowledgement(SequenceAcknowledgementDocument seqAckDocument)
          This fault is sent by the RM Source in response to a that violates the cumulative acknowledgement invariant.
 String getInvalidAcknowledgementReason()
          Retrieve the reason associated with the fault
 SequenceFaultDocument getInvalidMessage()
          This is a fault send by an RM node when it encounters an invalid message.
 SequenceFaultDocument getLastMessageNumberExceeded(String identifier)
          This fault is sent by the RM Source to indicate that it has run out of message numbers for a sequence.
 String getLastMessageNumberExceededReason()
          Retrieve the reason associated with the fault
 SequenceFaultDocument getMessageNumberRollover(String identifier)
          This fault is sent by the RM Source to indicate that it has run out of message numbers for a sequence.
 String getMessageNumberRolloverReason()
          Retrieve the reason associated with the fault
 SequenceFaultDocument getSequenceRefused(String identifier)
          This fault is sent by an RM Destination to indicate that it cannot begin a requested Sequence.
 String getSequenceRefusedReason()
          Retrieve the reason associated with the fault
 SequenceFaultDocument getSequenceTerminated(String identifier)
          This fault is sent by either the RM Source or the RM Destination to indicate that the endpoint that generates the fault has either encountered an unrecoverable condition, or has detected a violation of the protocol and as a consequence, has chosen to terminate the sequence.
 String getSequenceTerminatedReason()
          Retrieve the reason associated with the fault
 QName getSoapReceiverQName()
          Retrieves the Fault:Code for the receiver
 QName getSoapSenderQName()
          Retrieves the Fault:Code for the sender
 SequenceFaultDocument getUnknownSequence(String identifier)
          This fault is sent by either the RM Source or the RM Destination in response to a message containing an unknown sequence identifier.
 String getUnknownSequenceReason()
          Retrieve the reason associated with the fault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static WsrmFaults getInstance()

getSequenceTerminated

public SequenceFaultDocument getSequenceTerminated(String identifier)
This fault is sent by either the RM Source or the RM Destination to indicate that the endpoint that generates the fault has either encountered an unrecoverable condition, or has detected a violation of the protocol and as a consequence, has chosen to terminate the sequence.
  • Code Sender.

    Specified by:
    getSequenceTerminated in interface WsrmFaults

  • getSequenceTerminatedReason

    public String getSequenceTerminatedReason()
    Retrieve the reason associated with the fault

    Specified by:
    getSequenceTerminatedReason in interface WsrmFaults

    getUnknownSequence

    public SequenceFaultDocument getUnknownSequence(String identifier)
    This fault is sent by either the RM Source or the RM Destination in response to a message containing an unknown sequence identifier.

    Specified by:
    getUnknownSequence in interface WsrmFaults

    getUnknownSequenceReason

    public String getUnknownSequenceReason()
    Retrieve the reason associated with the fault

    Specified by:
    getUnknownSequenceReason in interface WsrmFaults

    getInvalidAcknowledgement

    public SequenceFaultDocument getInvalidAcknowledgement(SequenceAcknowledgementDocument seqAckDocument)
    This fault is sent by the RM Source in response to a that violates the cumulative acknowledgement invariant. An example of such a violation would be a SequenceAcknowledgement covering messages that have not been sent.

    Specified by:
    getInvalidAcknowledgement in interface WsrmFaults

    getInvalidAcknowledgementReason

    public String getInvalidAcknowledgementReason()
    Retrieve the reason associated with the fault

    Specified by:
    getInvalidAcknowledgementReason in interface WsrmFaults

    getMessageNumberRollover

    public SequenceFaultDocument getMessageNumberRollover(String identifier)
    This fault is sent by the RM Source to indicate that it has run out of message numbers for a sequence. It is an unrecoverable error and terminates the Sequence.

    Specified by:
    getMessageNumberRollover in interface WsrmFaults

    getMessageNumberRolloverReason

    public String getMessageNumberRolloverReason()
    Retrieve the reason associated with the fault

    Specified by:
    getMessageNumberRolloverReason in interface WsrmFaults

    getLastMessageNumberExceeded

    public SequenceFaultDocument getLastMessageNumberExceeded(String identifier)
    This fault is sent by the RM Source to indicate that it has run out of message numbers for a sequence. It is an unrecoverable error and terminates the Sequence.

    Specified by:
    getLastMessageNumberExceeded in interface WsrmFaults

    getLastMessageNumberExceededReason

    public String getLastMessageNumberExceededReason()
    Retrieve the reason associated with the fault

    Specified by:
    getLastMessageNumberExceededReason in interface WsrmFaults

    getSequenceRefused

    public SequenceFaultDocument getSequenceRefused(String identifier)
    This fault is sent by an RM Destination to indicate that it cannot begin a requested Sequence.

    Specified by:
    getSequenceRefused in interface WsrmFaults

    getSequenceRefusedReason

    public String getSequenceRefusedReason()
    Retrieve the reason associated with the fault

    Specified by:
    getSequenceRefusedReason in interface WsrmFaults

    getCreateSequenceRefused

    public SequenceFaultDocument getCreateSequenceRefused()
    This fault is sent by an RM Destination to indicate that it cannot begin a requested Sequence.

    Specified by:
    getCreateSequenceRefused in interface WsrmFaults

    getInvalidMessage

    public SequenceFaultDocument getInvalidMessage()
    This is a fault send by an RM node when it encounters an invalid message.

    Specified by:
    getInvalidMessage in interface WsrmFaults

    getCreateSequenceRefusedReason

    public String getCreateSequenceRefusedReason()
    Retrieve the reason associated with the fault

    Specified by:
    getCreateSequenceRefusedReason in interface WsrmFaults

    getSoapSenderQName

    public QName getSoapSenderQName()
    Retrieves the Fault:Code for the sender

    Specified by:
    getSoapSenderQName in interface WsrmFaults

    getSoapReceiverQName

    public QName getSoapReceiverQName()
    Retrieves the Fault:Code for the receiver

    Specified by:
    getSoapReceiverQName in interface WsrmFaults


    For comments and suggestions please send e-mail to The NaradaBrokering Project