cgl.narada.wsinfra.wsrm
Interface WsrmSequencePolicyFactory

All Known Implementing Classes:
WsrmSequencePolicyFactoryImpl

public interface WsrmSequencePolicyFactory

This is a utility class which facilitates the creation of WsrmSequence Policies, and also the addition of policy elements besides the serialization/de-serialization of the policies.


Method Summary
 WsrmSequencePolicies createWsrmSequencePolicies(XmlObject xmlObject)
          Construct a sequence policies instance using the XmlCursor instance that has been provided.
 WsrmSequencePolicies getDefaultWsrmSequencePolicies()
          Get a default wsrm sequence policies element
 cgl.narada.wsinfra.schemas.wsrm.SequenceRefDocument getSequenceRefDocument(cgl.narada.wsinfra.schemas.soap.EnvelopeDocument envelopeDocument)
          Get the sequenceRef document.
 WsrmSequencePolicies getWsrmSequencePolicies(byte[] marshalledBytes)
          Create a sequence policies instance based on its marshalled representation.
 void updateExpiry(WsrmSequencePolicies wsrmSequencePolicies, Calendar expiresAt)
          Update the expiry associated with a sequence.
 

Method Detail

createWsrmSequencePolicies

public WsrmSequencePolicies createWsrmSequencePolicies(XmlObject xmlObject)
Construct a sequence policies instance using the XmlCursor instance that has been provided.


getDefaultWsrmSequencePolicies

public WsrmSequencePolicies getDefaultWsrmSequencePolicies()
Get a default wsrm sequence policies element


updateExpiry

public void updateExpiry(WsrmSequencePolicies wsrmSequencePolicies,
                         Calendar expiresAt)
Update the expiry associated with a sequence. This can happen due to a new expiry value being specified within a Sequence element.


getWsrmSequencePolicies

public WsrmSequencePolicies getWsrmSequencePolicies(byte[] marshalledBytes)
Create a sequence policies instance based on its marshalled representation.


getSequenceRefDocument

public cgl.narada.wsinfra.schemas.wsrm.SequenceRefDocument getSequenceRefDocument(cgl.narada.wsinfra.schemas.soap.EnvelopeDocument envelopeDocument)
Get the sequenceRef document. The way this method works is as follows. SequenceRef elements should be contained within the wsp:AppliesTo element which in turn must be encapsulated within a PolicyAttachment element. If any of the predecessors are missing, this method will return a NULL.