cgl.narada.wsinfra.wsrm.impl
Class WsrmElementAdditionImpl

java.lang.Object
  extended by cgl.narada.wsinfra.wsrm.impl.WsrmElementAdditionImpl
All Implemented Interfaces:
WsrmElementAddition

public class WsrmElementAdditionImpl
extends Object
implements WsrmElementAddition

This is a class which facilitates the addition of WSRM elements to a SOAP enevelope. Depending on the exchange the elements are added either to the header or body of the SOAP envelope, with the Action Documents appropriately initialized.


Method Summary
 boolean addAckRequested(EnvelopeDocument envelopeDocument, AckRequestedDocument ackRequestedDocument)
          Adds an AckRequested document to the specified envelope.
 boolean addSequence(EnvelopeDocument envelopeDocument, SequenceDocument sequenceDocument)
          Adds a sequence document to the specified envelope.
 boolean addSequenceAcknowledgement(EnvelopeDocument envelopeDocument, SequenceAcknowledgementDocument seqAckDocument)
          Adds a SequenceAcknowledgement element to the specified enevelope.
 boolean addTerminateSequence(EnvelopeDocument envelopeDocument, TerminateSequenceDocument terminateSequenceDocument)
          Adds a terminate sequence to the specified envelope.
static WsrmElementAddition getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static WsrmElementAddition getInstance()

addSequence

public boolean addSequence(EnvelopeDocument envelopeDocument,
                           SequenceDocument sequenceDocument)
Adds a sequence document to the specified envelope. This method returns true if the operation succeded.

Specified by:
addSequence in interface WsrmElementAddition

addAckRequested

public boolean addAckRequested(EnvelopeDocument envelopeDocument,
                               AckRequestedDocument ackRequestedDocument)
Adds an AckRequested document to the specified envelope. This method returns true if the operation succeded.

Specified by:
addAckRequested in interface WsrmElementAddition

addSequenceAcknowledgement

public boolean addSequenceAcknowledgement(EnvelopeDocument envelopeDocument,
                                          SequenceAcknowledgementDocument seqAckDocument)
Adds a SequenceAcknowledgement element to the specified enevelope. This method returns true if the operation succeded.

Specified by:
addSequenceAcknowledgement in interface WsrmElementAddition

addTerminateSequence

public boolean addTerminateSequence(EnvelopeDocument envelopeDocument,
                                    TerminateSequenceDocument terminateSequenceDocument)
Adds a terminate sequence to the specified envelope. This method returns true if the operation succeded.

Specified by:
addTerminateSequence in interface WsrmElementAddition


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