cgl.narada.wsinfra.wsr
Interface WsrElementCreation

All Known Implementing Classes:
WsrElementCreationImpl

public interface WsrElementCreation

This is a class which facilitates the creation of WSR elements that are added to SOAP Envelope


Method Summary
 PollRequestDocument newPollRequest(Hashtable groupIds)
          Creates a PollRequest Document for groups which has set of reply ranges in Hashtable(groupId and Hashtable of replyranges)
 PollRequestDocument newPollRequest(Hashtable groupIds, String replyTo)
          Creates a PollRequest Document for groups which has set of reply ranges in Hashtable(groupId and Hashtable of replyranges)
 PollRequestDocument newPollRequest(String groupId)
          Creates a PollRequest Document based on the specified parameters
 PollRequestDocument newPollRequest(String[] groupId)
          Creates a PollRequest Document based on the specified parameters
 PollRequestDocument newPollRequest(String[] groupId, String replyTo)
          Creates a PollRequest Document based on the specified parameters
 PollRequestDocument newPollRequest(String groupId, Hashtable range)
          Creates a PollRequest Document for one group which has set of reply ranges in Hashtable(from and to element pair)
 PollRequestDocument newPollRequest(String groupId, Hashtable range, String replyTo)
          Creates a PollRequest Document based on the specified parameters
 PollRequestDocument newPollRequest(String groupId, String replyTo)
          Creates a PollRequest Document based on the specified parameters
 RequestDocument newRequest(String groupId, Calendar groupExpiryTime, long sequenceNumber, boolean lastMessage, Calendar messageExpiryTime, String replyPatternName)
          Creates a Request Document based on the specified mandatory parameters with some optional parameters This creates a request for PollRequest and Response RM reply pattern
 RequestDocument newRequest(String groupId, Calendar groupExpiryTime, long sequenceNumber, boolean lastMessage, Calendar messageExpiryTime, String replyPatternName, String replyTo)
          Creates a Request Document based on the specified mandatory parameters with some optional parameters.
 RequestDocument newRequest(String groupId, GDuration groupMaxIdleDuration, long sequenceNumber, boolean lastMessage, Calendar messageExpiryTime, String replyPatternName)
          Creates a Request Document based on the specified mandatory parameters with some optional parameters This creates a request for PollRequest and Response RM reply pattern
 RequestDocument newRequest(String groupId, GDuration groupMaxIdleDuration, long sequenceNumber, boolean lastMessage, Calendar messageExpiryTime, String replyPatternName, String replyTo)
          Creates a Request Document based on the specified mandatory parameters with some optional parameters.
 RequestDocument newRequest(String groupId, long sequenceNumber, boolean lastMessage, Calendar messageExpiryTime, String replyPatternName)
          Creates a Request Document based on the specified mandatory parameters This creates a request for PollRequest and Response RM reply pattern
 RequestDocument newRequest(String groupId, long sequenceNumber, boolean lastMessage, Calendar messageExpiryTime, String replyPatternName, String replyTo)
          Creates a Request Document based on the specified mandatory parameters This creates a request for Callback RM reply pattern
 ResponseDocument newResponse()
          Creates a simple ResponseDocument with single Response element
 ResponseDocument newResponse(ResponseDocument responseDocument, String groupId, Hashtable rangesAndFaultTable)
          Adds a SequenceReply element(group with multiple messages)To given ResponseDocument.
 ResponseDocument newResponse(ResponseDocument responseDocument, String groupId, long from, long to, String fault)
          Adds a SequenceReply element(group with multiple messages)To given ResponseDocument with only one ReplyRange If fault is not present then it is acknowledgement and if it present then it is fault
 ResponseDocument newResponse(ResponseDocument responseDocument, String groupId, String fault)
          Adds a NonSequenceReply element(group with single message)To given ResponseDocument.If fault is not present then it is acknowledgement and if it present then it is fault
 

Method Detail

newRequest

RequestDocument newRequest(String groupId,
                           long sequenceNumber,
                           boolean lastMessage,
                           Calendar messageExpiryTime,
                           String replyPatternName)
Creates a Request Document based on the specified mandatory parameters This creates a request for PollRequest and Response RM reply pattern


newRequest

RequestDocument newRequest(String groupId,
                           long sequenceNumber,
                           boolean lastMessage,
                           Calendar messageExpiryTime,
                           String replyPatternName,
                           String replyTo)
Creates a Request Document based on the specified mandatory parameters This creates a request for Callback RM reply pattern


newRequest

RequestDocument newRequest(String groupId,
                           Calendar groupExpiryTime,
                           long sequenceNumber,
                           boolean lastMessage,
                           Calendar messageExpiryTime,
                           String replyPatternName)
Creates a Request Document based on the specified mandatory parameters with some optional parameters This creates a request for PollRequest and Response RM reply pattern


newRequest

RequestDocument newRequest(String groupId,
                           GDuration groupMaxIdleDuration,
                           long sequenceNumber,
                           boolean lastMessage,
                           Calendar messageExpiryTime,
                           String replyPatternName)
Creates a Request Document based on the specified mandatory parameters with some optional parameters This creates a request for PollRequest and Response RM reply pattern


newRequest

RequestDocument newRequest(String groupId,
                           Calendar groupExpiryTime,
                           long sequenceNumber,
                           boolean lastMessage,
                           Calendar messageExpiryTime,
                           String replyPatternName,
                           String replyTo)
Creates a Request Document based on the specified mandatory parameters with some optional parameters. This creates a request for callback RM reply pattern


newRequest

RequestDocument newRequest(String groupId,
                           GDuration groupMaxIdleDuration,
                           long sequenceNumber,
                           boolean lastMessage,
                           Calendar messageExpiryTime,
                           String replyPatternName,
                           String replyTo)
Creates a Request Document based on the specified mandatory parameters with some optional parameters. This creates a request for callback RM reply pattern


newPollRequest

PollRequestDocument newPollRequest(String groupId)
Creates a PollRequest Document based on the specified parameters


newPollRequest

PollRequestDocument newPollRequest(String groupId,
                                   Hashtable range)
Creates a PollRequest Document for one group which has set of reply ranges in Hashtable(from and to element pair)


newPollRequest

PollRequestDocument newPollRequest(Hashtable groupIds)
Creates a PollRequest Document for groups which has set of reply ranges in Hashtable(groupId and Hashtable of replyranges)


newPollRequest

PollRequestDocument newPollRequest(String[] groupId)
Creates a PollRequest Document based on the specified parameters


newPollRequest

PollRequestDocument newPollRequest(String groupId,
                                   String replyTo)
Creates a PollRequest Document based on the specified parameters


newPollRequest

PollRequestDocument newPollRequest(String[] groupId,
                                   String replyTo)
Creates a PollRequest Document based on the specified parameters


newPollRequest

PollRequestDocument newPollRequest(String groupId,
                                   Hashtable range,
                                   String replyTo)
Creates a PollRequest Document based on the specified parameters


newPollRequest

PollRequestDocument newPollRequest(Hashtable groupIds,
                                   String replyTo)
Creates a PollRequest Document for groups which has set of reply ranges in Hashtable(groupId and Hashtable of replyranges)


newResponse

ResponseDocument newResponse()
Creates a simple ResponseDocument with single Response element


newResponse

ResponseDocument newResponse(ResponseDocument responseDocument,
                             String groupId,
                             String fault)
Adds a NonSequenceReply element(group with single message)To given ResponseDocument.If fault is not present then it is acknowledgement and if it present then it is fault


newResponse

ResponseDocument newResponse(ResponseDocument responseDocument,
                             String groupId,
                             Hashtable rangesAndFaultTable)
Adds a SequenceReply element(group with multiple messages)To given ResponseDocument. Here Hashtable rangesAndFaultTable contains ((Hashtable of ranges(from and to)) and (fault or ack)) pair


newResponse

ResponseDocument newResponse(ResponseDocument responseDocument,
                             String groupId,
                             long from,
                             long to,
                             String fault)
Adds a SequenceReply element(group with multiple messages)To given ResponseDocument with only one ReplyRange If fault is not present then it is acknowledgement and if it present then it is fault



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