cgl.narada.wsinfra.wsr
Interface WsrAckOperations

All Known Implementing Classes:
WsrAckOperationsImpl

public interface WsrAckOperations

A utility class to deal with creation, Retrieval and processing of acknowledgements and Faults


Method Summary
 Hashtable createRanges(Hashtable seqNumsAndFaults)
          create ranges from Hashtable (sequence Number and fault or Ack) pair
 Hashtable createRanges(long[] seqNums)
          create ranges from array of sequence Numbers
 String[] getGroupIds(ResponseDocument responseDocument)
          Retrieve all groupIds from Response Document for which we receive acknowledgements and faults
 Vector getNonSequenceReplyAcknowledgement(ResponseDocument responseDocument)
          Retrieves Vector of groupIds for groups with single message those are already acknowledged from response document (Retrieves Acknowledgements for Non Sequence Reply from response document
 Hashtable getNonSequenceReplyFault(ResponseDocument responseDocument)
          Retrieves Hashtable (groupId and fault pair) for groups with single message and have faults other than Message Processing Failure Fault from response document.
 Vector getNonSequenceReplyMessageProcessingFailureFault(ResponseDocument responseDocument)
          Retrieves Vector of groupIds for groups with single message and have Message Processing Failure Fault from response document (Retrieves Message Processing Failure Faults for Non Sequence Reply from response document
 Hashtable getSequenceRepliesAcknowledgement(ResponseDocument responseDocument)
          Retrieves Hashtable (groupId and associated acknowledged sequence numbers in vector) for groups with multiple messages from response document.
 Hashtable getSequenceReplyFault(ResponseDocument responseDocument)
          Retrieves Hashtable (groupId and Hashtable(sequenceNumber and fault name)) for groups with multiple messages and have faults other than Message Processing Failure Fault from response document.The hashtable contains those groupIds which are not for retrasmission.
 Hashtable getSequenceReplyMessageProcessingFailureFault(ResponseDocument responseDocument)
          Retrieves Hashtable(groupId and vector of sequence numbers) for groups with multiple messages and have Message Processing Failure Fault from response document (Retrieves Message Processing Failure Faults for Sequence Reply from response document
 boolean isMessageProcessingFailureFault(QName fault)
          Checks the fault is Message Processing failure
 

Method Detail

getNonSequenceReplyAcknowledgement

public Vector getNonSequenceReplyAcknowledgement(ResponseDocument responseDocument)
Retrieves Vector of groupIds for groups with single message those are already acknowledged from response document (Retrieves Acknowledgements for Non Sequence Reply from response document


getNonSequenceReplyMessageProcessingFailureFault

public Vector getNonSequenceReplyMessageProcessingFailureFault(ResponseDocument responseDocument)
Retrieves Vector of groupIds for groups with single message and have Message Processing Failure Fault from response document (Retrieves Message Processing Failure Faults for Non Sequence Reply from response document


getNonSequenceReplyFault

public Hashtable getNonSequenceReplyFault(ResponseDocument responseDocument)
Retrieves Hashtable (groupId and fault pair) for groups with single message and have faults other than Message Processing Failure Fault from response document. The hashtable contains those groupIds which are not for retrasmission. In this case send fault to application along with details of failure


getSequenceRepliesAcknowledgement

public Hashtable getSequenceRepliesAcknowledgement(ResponseDocument responseDocument)
Retrieves Hashtable (groupId and associated acknowledged sequence numbers in vector) for groups with multiple messages from response document. Retrieves Sequence Replies acknowledgements


getSequenceReplyMessageProcessingFailureFault

public Hashtable getSequenceReplyMessageProcessingFailureFault(ResponseDocument responseDocument)
Retrieves Hashtable(groupId and vector of sequence numbers) for groups with multiple messages and have Message Processing Failure Fault from response document (Retrieves Message Processing Failure Faults for Sequence Reply from response document


getSequenceReplyFault

public Hashtable getSequenceReplyFault(ResponseDocument responseDocument)
Retrieves Hashtable (groupId and Hashtable(sequenceNumber and fault name)) for groups with multiple messages and have faults other than Message Processing Failure Fault from response document.The hashtable contains those groupIds which are not for retrasmission. In this case send fault to application along with details of failure


isMessageProcessingFailureFault

public boolean isMessageProcessingFailureFault(QName fault)
Checks the fault is Message Processing failure


createRanges

public Hashtable createRanges(long[] seqNums)
create ranges from array of sequence Numbers


createRanges

public Hashtable createRanges(Hashtable seqNumsAndFaults)
create ranges from Hashtable (sequence Number and fault or Ack) pair


getGroupIds

public String[] getGroupIds(ResponseDocument responseDocument)
Retrieve all groupIds from Response Document for which we receive acknowledgements and faults