cgl.narada.wsinfra.wsrm
Interface WsrmExchangeInfo

All Known Implementing Classes:
WsrmExchangeInfoImpl

public interface WsrmExchangeInfo

This is a utility class which encapsulates information regarding ALL possible WSRM exchanges. This class can then be used at either the source/sink to determine if the exchange targetted to it is indeed the right one. The class contains simply boolean operations to determine the type of the WSRM exchange or if this is in fact even a WSRM exchange to begin with.


Method Summary
 AddressingHeaders getAddressingHeaders()
          Retrieve the addressing headers that were associated with this exchange
 String getProblemsWithExchange()
          If this is an invalid exchange, this method reports all the problems contained within this exchange.
 boolean hasAckRequested()
          Checks to see if the AckRequested element is available
 boolean hasSequence()
          Checks to see if the Sequence element is available
 boolean hasSequenceAcknowledgement()
          Checks to see if the SequenceAcknowledgement element is available
 boolean isCreateSequence()
          Checks to see if this is a create sequence exchange
 boolean isCreateSequenceResponse()
          Checks to see if this is a create sequence response exchange
 boolean isTerminateSequence()
          Checks to see if this is a terminate sequence exchange
 boolean isValidExchange()
          Checks to see if this is a valid exchange
 

Method Detail

hasSequence

public boolean hasSequence()
Checks to see if the Sequence element is available


hasAckRequested

public boolean hasAckRequested()
Checks to see if the AckRequested element is available


hasSequenceAcknowledgement

public boolean hasSequenceAcknowledgement()
Checks to see if the SequenceAcknowledgement element is available


isCreateSequence

public boolean isCreateSequence()
Checks to see if this is a create sequence exchange


isCreateSequenceResponse

public boolean isCreateSequenceResponse()
Checks to see if this is a create sequence response exchange


isTerminateSequence

public boolean isTerminateSequence()
Checks to see if this is a terminate sequence exchange


getAddressingHeaders

public AddressingHeaders getAddressingHeaders()
Retrieve the addressing headers that were associated with this exchange


isValidExchange

public boolean isValidExchange()
Checks to see if this is a valid exchange


getProblemsWithExchange

public String getProblemsWithExchange()
If this is an invalid exchange, this method reports all the problems contained within this exchange.