Apache CXF API

org.apache.cxf.ws.rm
Class Destination

java.lang.Object
  extended by org.apache.cxf.ws.rm.AbstractEndpoint
      extended by org.apache.cxf.ws.rm.Destination

public class Destination
extends AbstractEndpoint


Field Summary
 
Fields inherited from class org.apache.cxf.ws.rm.AbstractEndpoint
completedSequenceCount, processingSequenceCount
 
Method Summary
 void acknowledge(Message message)
          Acknowledges receipt of a message.
 void addSequence(DestinationSequence seq)
           
 void addSequence(DestinationSequence seq, boolean persist)
           
 Collection<DestinationSequence> getAllSequences()
           
 DestinationSequence getSequence(Identifier id)
           
 void removeSequence(DestinationSequence seq)
           
 
Methods inherited from class org.apache.cxf.ws.rm.AbstractEndpoint
generateSequenceIdentifier, getEndpoint, getManager, getName, getReliableEndpoint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSequence

public DestinationSequence getSequence(Identifier id)

getAllSequences

public Collection<DestinationSequence> getAllSequences()

addSequence

public void addSequence(DestinationSequence seq)

addSequence

public void addSequence(DestinationSequence seq,
                        boolean persist)

removeSequence

public void removeSequence(DestinationSequence seq)

acknowledge

public void acknowledge(Message message)
                 throws SequenceFault,
                        RMException
Acknowledges receipt of a message. If the message is the last in the sequence, sends an out-of-band SequenceAcknowledgement unless there a response will be sent to the acksTo address onto which the acknowldegment can be piggybacked.

Parameters:
sequenceType - the sequenceType object that includes identifier and message number (and possibly a lastMessage element) for the message to be acknowledged)
replyToAddress - the replyTo address of the message that carried this sequence information
Throws:
SequenceFault - if the sequence specified in sequenceType does not exist
RMException

Apache CXF API

Apache CXF