cgl.narada.wsinfra.wse
Class WseNodeUtils

java.lang.Object
  extended by cgl.narada.wsinfra.wse.WseNodeUtils
Direct Known Subclasses:
WseNodeUtilsImpl

public abstract class WseNodeUtils
extends Object

A utility class which retrieves various elements that are relevant to WS-Eventing. The method class will also throw relevant exceptions if it encounters problems in locating content.


Constructor Summary
WseNodeUtils()
           
 
Method Summary
abstract  GetStatusDocument getGetStatusDocument(EnvelopeDocument envelopeDocument)
          This method retrieves the GetStatusDocument element from the BODY of the SOAP envelope.
abstract  GetStatusResponseDocument getGetStatusResponseDocument(EnvelopeDocument envelopeDocument)
          This method retrieves the GetStatusResponseDocument element from the BODY of the SOAP envelope.
abstract  IdentifierDocument getIdentifierDocument(EnvelopeDocument envelopeDocument)
          This method retrieves the identifier element from the HEADER of the SOAP envelope.
abstract  IdentifierDocument getIdentifierDocumentFromBody(EnvelopeDocument envelopeDocument)
          This method retrieves the identifier element from the HEADER of the SOAP envelope.
static WseNodeUtils getInstance()
           
abstract  EndpointReferenceType getNotifyTo(SubscribeDocument subscribeDocument)
          This method tries to retrieve the notifyTo element.
abstract  RenewDocument getRenewDocument(EnvelopeDocument envelopeDocument)
          This method retrieves the RenewDocument element from the BODY of the SOAP envelope.
abstract  RenewResponseDocument getRenewResponseDocument(EnvelopeDocument envelopeDocument)
          This method retrieves the RenewResponseDocument element from the BODY of the SOAP envelope.
abstract  SubscribeDocument getSubscribeDocument(EnvelopeDocument envelopeDocument)
          This method retrieves the SubscribeDocument element from the BODY of the SOAP envelope.
abstract  SubscribeResponseDocument getSubscribeResponseDocument(EnvelopeDocument envelopeDocument)
          This method retrieves the SubscribeResponseDocument element from the BODY of the SOAP envelope.
abstract  SubscriptionEndDocument getSubscriptionEndDocument(EnvelopeDocument envelopeDocument)
          This method retrieves the SubscriptionEndDocument element from the BODY of the SOAP envelope.
abstract  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
 

Constructor Detail

WseNodeUtils

public WseNodeUtils()
Method Detail

getInstance

public static WseNodeUtils getInstance()

getSubscribeDocument

public abstract 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.

Throws:
WsFaultException

getSubscribeResponseDocument

public abstract 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.

Throws:
WsFaultException

getRenewDocument

public abstract 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.

Throws:
WsFaultException

getRenewResponseDocument

public abstract 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.

Throws:
WsFaultException

getGetStatusDocument

public abstract 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.

Throws:
WsFaultException

getGetStatusResponseDocument

public abstract 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.

Throws:
WsFaultException

getUnsubscribeDocument

public abstract 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.

Throws:
WsFaultException

getSubscriptionEndDocument

public abstract 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.

Throws:
WsFaultException

getIdentifierDocument

public abstract 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.

Throws:
WsFaultException

getIdentifierDocumentFromBody

public abstract IdentifierDocument getIdentifierDocumentFromBody(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.

Throws:
WsFaultException

getNotifyTo

public abstract 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

Throws:
WsFaultException


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