cgl.narada.wsinfra.wsr.impl
Class WsrExchangeInfoImpl

java.lang.Object
  extended by cgl.narada.wsinfra.wsr.impl.WsrExchangeInfoImpl
All Implemented Interfaces:
WsrExchangeInfo

public class WsrExchangeInfoImpl
extends Object
implements WsrExchangeInfo

This is a utility class which encapsulates information regarding ALL possible WSR 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 WSR exchange or if this is in fact even a WSR exchange to begin with.


Constructor Summary
protected WsrExchangeInfoImpl(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 hasPollRequest()
          Checks to see if the PollRequest element is available
 boolean hasRequest()
          Checks to see if the Request Element is available
 boolean hasResponse()
          Checks to see if the Response Element is available
 boolean isProcessPollRequest()
          Checks to see if this is a Process PollRequest exchange
 boolean isProcessRequest()
          Checks to see if this is a Process Request exchange
 boolean isProcessResponse()
          Checks to see if this is a Process Response exchange
 boolean isValidExchange()
          Checks to see if this is a valid exchange
protected  void setPollRequest()
           
protected  void setProcessPollRequest()
           
protected  void setProcessRequest()
           
protected  void setProcessResponse()
           
 void setRequest()
           
protected  void setResponse()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WsrExchangeInfoImpl

protected WsrExchangeInfoImpl(AddressingHeaders addressingHeaders)
Method Detail

hasRequest

public boolean hasRequest()
Checks to see if the Request Element is available

Specified by:
hasRequest in interface WsrExchangeInfo

setRequest

public void setRequest()

hasPollRequest

public boolean hasPollRequest()
Checks to see if the PollRequest element is available

Specified by:
hasPollRequest in interface WsrExchangeInfo

setPollRequest

protected void setPollRequest()

hasResponse

public boolean hasResponse()
Checks to see if the Response Element is available

Specified by:
hasResponse in interface WsrExchangeInfo

setResponse

protected void setResponse()

isProcessRequest

public boolean isProcessRequest()
Checks to see if this is a Process Request exchange

Specified by:
isProcessRequest in interface WsrExchangeInfo

setProcessRequest

protected void setProcessRequest()

isProcessPollRequest

public boolean isProcessPollRequest()
Checks to see if this is a Process PollRequest exchange

Specified by:
isProcessPollRequest in interface WsrExchangeInfo

setProcessPollRequest

protected void setProcessPollRequest()

isProcessResponse

public boolean isProcessResponse()
Checks to see if this is a Process Response exchange

Specified by:
isProcessResponse in interface WsrExchangeInfo

setProcessResponse

protected void setProcessResponse()

getAddressingHeaders

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

Specified by:
getAddressingHeaders in interface WsrExchangeInfo

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 WsrExchangeInfo

isValidExchange

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

Specified by:
isValidExchange in interface WsrExchangeInfo

toString

public String toString()
Overrides:
toString in class Object


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