cgl.narada.wsinfra.wsr.impl
Class WsrNodeUtilsImpl

java.lang.Object
  extended by cgl.narada.wsinfra.wsr.impl.WsrNodeUtilsImpl
All Implemented Interfaces:
WsrNodeUtils

public class WsrNodeUtilsImpl
extends Object
implements WsrNodeUtils

This is a utility class which faciliates the retrieval of elements pertaining to WSRM that reside in the SOAP enevelope.


Method Summary
 String getGroupExpiryTime(EnvelopeDocument envelopeDocument)
          Retrieves Group Expiry Time element from the Header of the SOAP Message
 String getGroupId(EnvelopeDocument envelopeDocument)
          Retrieves GroupId Element from the Header of the SOAP message
 String getGroupMaxIdleDuration(EnvelopeDocument envelopeDocument)
          Retrieves Group Max Idle Duration element from the Header of the SOAP Message
static WsrNodeUtils getInstance()
           
 String getLastMessage(EnvelopeDocument envelopeDocument)
          Retrieves last Message element from the Header of the SOAP Message
 String getMessageExchangePattern(EnvelopeDocument envelopeDocument)
          Retrieves Message Exchange Pattern from the Header of the SOAP Message
 String getMExpiryTime(EnvelopeDocument envelopeDocument)
          Retrieves Message Expiry Time element from the Header of the SOAP Message
 PollRequestDocument getPollRequestDocument(EnvelopeDocument envelopeDocument)
          Retrieves PollRequest Element from the Header of the SOAP message.
 String getReplyTo(EnvelopeDocument envelopeDocument)
          Retrieves replyTo element from the Header of the SOAP Message
 RequestDocument getRequestDocument(EnvelopeDocument envelopeDocument)
          Retrieves Request Element from the Header of the SOAP message
 ResponseDocument getResponseDocument(EnvelopeDocument envelopeDocument)
          Retrieves Response Element from the Header of the SOAP message.
 String getRPattern(EnvelopeDocument envelopeDocument)
          Retrieves Reply Pattern element from the Header of the Soap Message
 boolean hasGroupId(RequestDocument requestDocument)
          Checks whether GroupId Attribure to MessageId Element exists or not
 boolean hasMessageExpiryTimeElement(RequestDocument requestDocument)
          Checks whether ExpiryTime element exists or not
 boolean hasMessageIDElement(RequestDocument requestDocument)
          Checks whether MessageID element exists or not
 boolean hasRefToMessageIdsElement(PollRequestDocument pollRequestDocument)
          Checks whether RefToMessageIds element exists or not
 boolean hasReplyPatternElement(RequestDocument requestDocument)
          Checks whether ReplyPattern element exists or not
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static WsrNodeUtils getInstance()

getRequestDocument

public RequestDocument getRequestDocument(EnvelopeDocument envelopeDocument)
                                   throws WsFaultException
Retrieves Request Element from the Header of the SOAP message

Specified by:
getRequestDocument in interface WsrNodeUtils
Throws:
WsFaultException

getPollRequestDocument

public PollRequestDocument getPollRequestDocument(EnvelopeDocument envelopeDocument)
                                           throws WsFaultException
Retrieves PollRequest Element from the Header of the SOAP message.

Specified by:
getPollRequestDocument in interface WsrNodeUtils
Throws:
WsFaultException

getResponseDocument

public ResponseDocument getResponseDocument(EnvelopeDocument envelopeDocument)
                                     throws WsFaultException
Retrieves Response Element from the Header of the SOAP message.

Specified by:
getResponseDocument in interface WsrNodeUtils
Throws:
WsFaultException

getGroupId

public String getGroupId(EnvelopeDocument envelopeDocument)
                  throws WsFaultException
Retrieves GroupId Element from the Header of the SOAP message

Specified by:
getGroupId in interface WsrNodeUtils
Throws:
WsFaultException

getGroupExpiryTime

public String getGroupExpiryTime(EnvelopeDocument envelopeDocument)
                          throws WsFaultException
Retrieves Group Expiry Time element from the Header of the SOAP Message

Specified by:
getGroupExpiryTime in interface WsrNodeUtils
Throws:
WsFaultException

getGroupMaxIdleDuration

public String getGroupMaxIdleDuration(EnvelopeDocument envelopeDocument)
                               throws WsFaultException
Retrieves Group Max Idle Duration element from the Header of the SOAP Message

Specified by:
getGroupMaxIdleDuration in interface WsrNodeUtils
Throws:
WsFaultException

getMExpiryTime

public String getMExpiryTime(EnvelopeDocument envelopeDocument)
                      throws WsFaultException
Retrieves Message Expiry Time element from the Header of the SOAP Message

Specified by:
getMExpiryTime in interface WsrNodeUtils
Throws:
WsFaultException

getRPattern

public String getRPattern(EnvelopeDocument envelopeDocument)
                   throws WsFaultException
Retrieves Reply Pattern element from the Header of the Soap Message

Specified by:
getRPattern in interface WsrNodeUtils
Throws:
WsFaultException

getLastMessage

public String getLastMessage(EnvelopeDocument envelopeDocument)
                      throws WsFaultException
Retrieves last Message element from the Header of the SOAP Message

Specified by:
getLastMessage in interface WsrNodeUtils
Throws:
WsFaultException

getReplyTo

public String getReplyTo(EnvelopeDocument envelopeDocument)
                  throws WsFaultException
Retrieves replyTo element from the Header of the SOAP Message

Specified by:
getReplyTo in interface WsrNodeUtils
Throws:
WsFaultException

getMessageExchangePattern

public String getMessageExchangePattern(EnvelopeDocument envelopeDocument)
                                 throws WsFaultException
Retrieves Message Exchange Pattern from the Header of the SOAP Message

Specified by:
getMessageExchangePattern in interface WsrNodeUtils
Throws:
WsFaultException

hasMessageIDElement

public boolean hasMessageIDElement(RequestDocument requestDocument)
Checks whether MessageID element exists or not

Specified by:
hasMessageIDElement in interface WsrNodeUtils

hasGroupId

public boolean hasGroupId(RequestDocument requestDocument)
Checks whether GroupId Attribure to MessageId Element exists or not

Specified by:
hasGroupId in interface WsrNodeUtils

hasMessageExpiryTimeElement

public boolean hasMessageExpiryTimeElement(RequestDocument requestDocument)
Checks whether ExpiryTime element exists or not

Specified by:
hasMessageExpiryTimeElement in interface WsrNodeUtils

hasReplyPatternElement

public boolean hasReplyPatternElement(RequestDocument requestDocument)
Checks whether ReplyPattern element exists or not

Specified by:
hasReplyPatternElement in interface WsrNodeUtils

hasRefToMessageIdsElement

public boolean hasRefToMessageIdsElement(PollRequestDocument pollRequestDocument)
Checks whether RefToMessageIds element exists or not

Specified by:
hasRefToMessageIdsElement in interface WsrNodeUtils


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