cgl.narada.wsinfra.wsrm.impl
Class WsrmElementCreationImpl

java.lang.Object
  extended by cgl.narada.wsinfra.wsrm.impl.WsrmElementCreationImpl
All Implemented Interfaces:
WsrmElementCreation

public class WsrmElementCreationImpl
extends Object
implements WsrmElementCreation

This is a class which facilitates the creation of WSRM elements that are added to exchanges.


Method Summary
static WsrmElementCreation getInstance()
           
 SequenceAcknowledgementDocument.SequenceAcknowledgement.AcknowledgementRange newAcknowledgementRange(long upperMessageNumber, long lowerMessageNumber)
          Create a new acknowledgement range based on the specified parameters
 AckRequestedDocument newAckRequested(String identifier)
          Creates an AckRequested document based on the specified parameters
 AckRequestedDocument newAckRequested(String identifier, long maxMessageNumberUsed)
          Creates an AckRequested document based on the specified parameters
 SequenceDocument newSequence(String identifier, long messageNumber)
          Creates a sequence document based on the specified parameters
 SequenceDocument newSequence(String identifier, long messageNumber, boolean lastMessage, Calendar expiresAt)
          Creates a sequence document based on the specified parameters
 SequenceAcknowledgementDocument newSequenceAcknowledgement(String identifier, long[] acknowledgementsArray, boolean positiveAcks)
          Creates a SequenceAcknowledgement element based on the specified parameters.
 TerminateSequenceDocument newTerminateSequence(String identifier)
          Terminates a sequence identified the specified identifier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static WsrmElementCreation getInstance()

newSequence

public SequenceDocument newSequence(String identifier,
                                    long messageNumber)
Creates a sequence document based on the specified parameters

Specified by:
newSequence in interface WsrmElementCreation

newSequence

public SequenceDocument newSequence(String identifier,
                                    long messageNumber,
                                    boolean lastMessage,
                                    Calendar expiresAt)
Creates a sequence document based on the specified parameters

Specified by:
newSequence in interface WsrmElementCreation

newAckRequested

public AckRequestedDocument newAckRequested(String identifier)
Creates an AckRequested document based on the specified parameters

Specified by:
newAckRequested in interface WsrmElementCreation

newAckRequested

public AckRequestedDocument newAckRequested(String identifier,
                                            long maxMessageNumberUsed)
Creates an AckRequested document based on the specified parameters

Specified by:
newAckRequested in interface WsrmElementCreation

newSequenceAcknowledgement

public SequenceAcknowledgementDocument newSequenceAcknowledgement(String identifier,
                                                                  long[] acknowledgementsArray,
                                                                  boolean positiveAcks)
Creates a SequenceAcknowledgement element based on the specified parameters. If postiveAcks is true, then the SequenceACK contains positive acknowledgements otherwise it contains negative acknowledgements. The specification forbids inclusion of both positive and negative acknowledgements.

Specified by:
newSequenceAcknowledgement in interface WsrmElementCreation

newTerminateSequence

public TerminateSequenceDocument newTerminateSequence(String identifier)
Terminates a sequence identified the specified identifier

Specified by:
newTerminateSequence in interface WsrmElementCreation

newAcknowledgementRange

public SequenceAcknowledgementDocument.SequenceAcknowledgement.AcknowledgementRange newAcknowledgementRange(long upperMessageNumber,
                                                                                                            long lowerMessageNumber)
Create a new acknowledgement range based on the specified parameters

Specified by:
newAcknowledgementRange in interface WsrmElementCreation


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