cgl.narada.wsinfra.wsrm
Interface WsrmElementCreation

All Known Implementing Classes:
WsrmElementCreationImpl

public interface WsrmElementCreation

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


Method Summary
 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[] ackArray, 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
 

Method Detail

newSequence

public cgl.narada.wsinfra.schemas.wsrm.SequenceDocument newSequence(String identifier,
                                                                    long messageNumber)
Creates a sequence document based on the specified parameters


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


newAckRequested

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


newAckRequested

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


newSequenceAcknowledgement

public cgl.narada.wsinfra.schemas.wsrm.SequenceAcknowledgementDocument newSequenceAcknowledgement(String identifier,
                                                                                                  long[] ackArray,
                                                                                                  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.


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


newTerminateSequence

public cgl.narada.wsinfra.schemas.wsrm.TerminateSequenceDocument newTerminateSequence(String identifier)
Terminates a sequence identified the specified identifier