cgl.narada.wsinfra.wsrm.impl
Class WsrmElementCreationImpl

java.lang.Object
  extended bycgl.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()
           
 cgl.narada.wsinfra.schemas.wsrm.SequenceAcknowledgementDocument.SequenceAcknowledgement.AcknowledgementRange newAcknowledgementRange(long upperMessageNumber, long lowerMessageNumber)
          Create a new acknowledgement range based on the specified parameters
 cgl.narada.wsinfra.schemas.wsrm.AckRequestedDocument newAckRequested(String identifier)
          Creates an AckRequested document based on the specified parameters
 cgl.narada.wsinfra.schemas.wsrm.AckRequestedDocument newAckRequested(String identifier, long maxMessageNumberUsed)
          Creates an AckRequested document based on the specified parameters
 cgl.narada.wsinfra.schemas.wsrm.SequenceDocument newSequence(String identifier, long messageNumber)
          Creates a sequence document based on the specified parameters
 cgl.narada.wsinfra.schemas.wsrm.SequenceDocument newSequence(String identifier, long messageNumber, boolean lastMessage, Calendar expiresAt)
          Creates a sequence document based on the specified parameters
 cgl.narada.wsinfra.schemas.wsrm.SequenceAcknowledgementDocument newSequenceAcknowledgement(String identifier, long[] acknowledgementsArray, boolean positiveAcks)
          Creates a SequenceAcknowledgement element based on the specified parameters.
 cgl.narada.wsinfra.schemas.wsrm.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 cgl.narada.wsinfra.schemas.wsrm.SequenceDocument newSequence(String identifier,
                                                                    long messageNumber)
Creates a sequence document based on the specified parameters

Specified by:
newSequence in interface WsrmElementCreation

newSequence

public cgl.narada.wsinfra.schemas.wsrm.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 cgl.narada.wsinfra.schemas.wsrm.AckRequestedDocument newAckRequested(String identifier)
Creates an AckRequested document based on the specified parameters

Specified by:
newAckRequested in interface WsrmElementCreation

newAckRequested

public cgl.narada.wsinfra.schemas.wsrm.AckRequestedDocument newAckRequested(String identifier,
                                                                            long maxMessageNumberUsed)
Creates an AckRequested document based on the specified parameters

Specified by:
newAckRequested in interface WsrmElementCreation

newSequenceAcknowledgement

public cgl.narada.wsinfra.schemas.wsrm.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 cgl.narada.wsinfra.schemas.wsrm.TerminateSequenceDocument newTerminateSequence(String identifier)
Terminates a sequence identified the specified identifier

Specified by:
newTerminateSequence in interface WsrmElementCreation

newAcknowledgementRange

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

Specified by:
newAcknowledgementRange in interface WsrmElementCreation