cgl.narada.wsinfra.wsrm.impl
Class WsrmExchangeInfoImpl

java.lang.Object
  extended by cgl.narada.wsinfra.wsrm.impl.WsrmExchangeInfoImpl
All Implemented Interfaces:
WsrmExchangeInfo

public class WsrmExchangeInfoImpl
extends Object
implements 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.


Constructor Summary
protected WsrmExchangeInfoImpl(AddressingHeaders addressingHeaders)
           
 
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
protected  void setAckRequested()
           
protected  void setCreateSequence()
           
protected  void setCreateSequenceResponse()
           
protected  void setSequence()
           
protected  void setSequenceAcknowledgement()
           
protected  void setTerminateSequence()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WsrmExchangeInfoImpl

protected WsrmExchangeInfoImpl(AddressingHeaders addressingHeaders)
Method Detail

hasSequence

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

Specified by:
hasSequence in interface WsrmExchangeInfo

setSequence

protected void setSequence()

hasAckRequested

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

Specified by:
hasAckRequested in interface WsrmExchangeInfo

setAckRequested

protected void setAckRequested()

hasSequenceAcknowledgement

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

Specified by:
hasSequenceAcknowledgement in interface WsrmExchangeInfo

setSequenceAcknowledgement

protected void setSequenceAcknowledgement()

isCreateSequence

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

Specified by:
isCreateSequence in interface WsrmExchangeInfo

setCreateSequence

protected void setCreateSequence()

isCreateSequenceResponse

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

Specified by:
isCreateSequenceResponse in interface WsrmExchangeInfo

setCreateSequenceResponse

protected void setCreateSequenceResponse()

isTerminateSequence

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

Specified by:
isTerminateSequence in interface WsrmExchangeInfo

setTerminateSequence

protected void setTerminateSequence()

getAddressingHeaders

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

Specified by:
getAddressingHeaders in interface WsrmExchangeInfo

isValidExchange

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

Specified by:
isValidExchange in interface WsrmExchangeInfo

getProblemsWithExchange

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

Specified by:
getProblemsWithExchange in interface WsrmExchangeInfo

toString

public String toString()
Overrides:
toString in class Object


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