cgl.narada.wsinfra.wsrm.storage.impl
Class WsrmExchangeImpl

java.lang.Object
  extended by cgl.narada.wsinfra.wsrm.storage.impl.WsrmExchangeImpl
All Implemented Interfaces:
WsrmExchange

public class WsrmExchangeImpl
extends Object
implements WsrmExchange

This is the base class for the various exchanges that take place between communicating entities, besides sending application messages, in WSRM. All exchanges, whether it is related to creation of sequences, requests for acknowledgemements will extend this interface.


Field Summary
 
Fields inherited from interface cgl.narada.wsinfra.wsrm.storage.WsrmExchange
CREATE_SEQUENCE, CREATE_SEQUENCE_RESPONSE, SEQUENCE_ACKNOWLEDGEMENT, TERMINATE_SEQUENCE, WSRM_MESSAGE
 
Constructor Summary
WsrmExchangeImpl(byte[] marshalledBytes)
           
WsrmExchangeImpl(int exchangeType, String sequenceIdentifier, EnvelopeDocument envelopeDocument)
           
 
Method Summary
 byte[] getBytes()
          Get a byte representation of the WsrmExchange
 EnvelopeDocument getEnvelope()
          Retrieve the original exchange
 int getExchangeType()
          Retrieve the exchange type
 String getSequenceIdentifier()
          Retrieve the sequence identifier of the sequence in question
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsrmExchangeImpl

public WsrmExchangeImpl(int exchangeType,
                        String sequenceIdentifier,
                        EnvelopeDocument envelopeDocument)

WsrmExchangeImpl

public WsrmExchangeImpl(byte[] marshalledBytes)
Method Detail

getExchangeType

public int getExchangeType()
Retrieve the exchange type

Specified by:
getExchangeType in interface WsrmExchange

getSequenceIdentifier

public String getSequenceIdentifier()
Retrieve the sequence identifier of the sequence in question

Specified by:
getSequenceIdentifier in interface WsrmExchange

getEnvelope

public EnvelopeDocument getEnvelope()
Retrieve the original exchange

Specified by:
getEnvelope in interface WsrmExchange

getBytes

public byte[] getBytes()
Get a byte representation of the WsrmExchange

Specified by:
getBytes in interface WsrmExchange


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