cgl.narada.wsinfra.wse.impl
Class WseNodeUtilsImpl

java.lang.Object
  extended by cgl.narada.wsinfra.wse.WseNodeUtils
      extended by cgl.narada.wsinfra.wse.impl.WseNodeUtilsImpl

public class WseNodeUtilsImpl
extends WseNodeUtils

A utility class which retrieves the subscription identifier associated with an exchange. The method has to throw exceptions, if either the identifier is null or is not present. Furthermore, the identifier should also be a valid subscription maintained within subscription tables.


Method Summary
 GetStatusDocument getGetStatusDocument(EnvelopeDocument envelopeDocument)
          This method retrieves the GetStatusDocument element from the BODY of the SOAP envelope.
 GetStatusResponseDocument getGetStatusResponseDocument(EnvelopeDocument envelopeDocument)
          This method retrieves the GetStatusResponseDocument element from the BODY of the SOAP envelope.
 IdentifierDocument getIdentifierDocument(EnvelopeDocument envelopeDocument)
          This method retrieves the identifier element from the HEADER of the SOAP envelope.
 IdentifierDocument getIdentifierDocumentFromBody(EnvelopeDocument envelopeDocument)
          This method retrieves the identifier element from the BODY of the SOAP envelope.
static WseNodeUtils getInstance()
           
 EndpointReferenceType getNotifyTo(SubscribeDocument subscribeDocument)
          This method tries to retrieve the notifyTo element.
 RenewDocument getRenewDocument(EnvelopeDocument envelopeDocument)
          This method retrieves the RenewDocument element from the BODY of the SOAP envelope.
 RenewResponseDocument getRenewResponseDocument(EnvelopeDocument envelopeDocument)
          This method retrieves the RenewResponseDocument element from the BODY of the SOAP envelope.
 SubscribeDocument getSubscribeDocument(EnvelopeDocument envelopeDocument)
          This method retrieves the SubscribeDocument element from the BODY of the SOAP envelope.
 SubscribeResponseDocument getSubscribeResponseDocument(EnvelopeDocument envelopeDocument)
          This method retrieves the SubscribeResponseDocument element from the BODY of the SOAP envelope.
 SubscriptionEndDocument getSubscriptionEndDocument(EnvelopeDocument envelopeDocument)
          This method retrieves the SubscriptionEndDocument element from the BODY of the SOAP envelope.
 UnsubscribeDocument getUnsubscribeDocument(EnvelopeDocument envelopeDocument)
          This method retrieves the UnsubscribeDocument element from the BODY of the SOAP envelope.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static WseNodeUtils getInstance()

getSubscribeDocument

public SubscribeDocument getSubscribeDocument(EnvelopeDocument envelopeDocument)
                                       throws WsFaultException
This method retrieves the SubscribeDocument element from the BODY of the SOAP envelope. The method has to throw exceptions, if either the element is null or is not present.

Specified by:
getSubscribeDocument in class WseNodeUtils
Throws:
WsFaultException

getSubscribeResponseDocument

public SubscribeResponseDocument getSubscribeResponseDocument(EnvelopeDocument envelopeDocument)
                                                       throws WsFaultException
This method retrieves the SubscribeResponseDocument element from the BODY of the SOAP envelope. The method has to throw exceptions, if either the element is null or is not present.

Specified by:
getSubscribeResponseDocument in class WseNodeUtils
Throws:
WsFaultException

getRenewDocument

public RenewDocument getRenewDocument(EnvelopeDocument envelopeDocument)
                               throws WsFaultException
This method retrieves the RenewDocument element from the BODY of the SOAP envelope. The method has to throw exceptions, if either the element is null or is not present.

Specified by:
getRenewDocument in class WseNodeUtils
Throws:
WsFaultException

getRenewResponseDocument

public RenewResponseDocument getRenewResponseDocument(EnvelopeDocument envelopeDocument)
                                               throws WsFaultException
This method retrieves the RenewResponseDocument element from the BODY of the SOAP envelope. The method has to throw exceptions, if either the element is null or is not present.

Specified by:
getRenewResponseDocument in class WseNodeUtils
Throws:
WsFaultException

getGetStatusDocument

public GetStatusDocument getGetStatusDocument(EnvelopeDocument envelopeDocument)
                                       throws WsFaultException
This method retrieves the GetStatusDocument element from the BODY of the SOAP envelope. The method has to throw exceptions, if either the element is null or is not present.

Specified by:
getGetStatusDocument in class WseNodeUtils
Throws:
WsFaultException

getGetStatusResponseDocument

public GetStatusResponseDocument getGetStatusResponseDocument(EnvelopeDocument envelopeDocument)
                                                       throws WsFaultException
This method retrieves the GetStatusResponseDocument element from the BODY of the SOAP envelope. The method has to throw exceptions, if either the element is null or is not present.

Specified by:
getGetStatusResponseDocument in class WseNodeUtils
Throws:
WsFaultException

getUnsubscribeDocument

public UnsubscribeDocument getUnsubscribeDocument(EnvelopeDocument envelopeDocument)
                                           throws WsFaultException
This method retrieves the UnsubscribeDocument element from the BODY of the SOAP envelope. The method has to throw exceptions, if either the element is null or is not present.

Specified by:
getUnsubscribeDocument in class WseNodeUtils
Throws:
WsFaultException

getSubscriptionEndDocument

public SubscriptionEndDocument getSubscriptionEndDocument(EnvelopeDocument envelopeDocument)
                                                   throws WsFaultException
This method retrieves the SubscriptionEndDocument element from the BODY of the SOAP envelope. The method has to throw exceptions, if either the element is null or is not present.

Specified by:
getSubscriptionEndDocument in class WseNodeUtils
Throws:
WsFaultException

getIdentifierDocument

public IdentifierDocument getIdentifierDocument(EnvelopeDocument envelopeDocument)
                                         throws WsFaultException
This method retrieves the identifier element from the HEADER of the SOAP envelope. The method has to throw exceptions, if either the element is null or is not present.

Specified by:
getIdentifierDocument in class WseNodeUtils
Throws:
WsFaultException

getIdentifierDocumentFromBody

public IdentifierDocument getIdentifierDocumentFromBody(EnvelopeDocument envelopeDocument)
                                                 throws WsFaultException
This method retrieves the identifier element from the BODY of the SOAP envelope. The method has to throw exceptions, if either the element is null or is not present.

Specified by:
getIdentifierDocumentFromBody in class WseNodeUtils
Throws:
WsFaultException

getNotifyTo

public EndpointReferenceType getNotifyTo(SubscribeDocument subscribeDocument)
                                  throws WsFaultException
This method tries to retrieve the notifyTo element. The method also issues exception in case it is unable to do so or if the retrived element is actually null

Specified by:
getNotifyTo in class WseNodeUtils
Throws:
WsFaultException


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