cgl.narada.wsinfra.wse.impl
Class WseElementCreationImpl

java.lang.Object
  extended by cgl.narada.wsinfra.wse.impl.WseElementCreationImpl
All Implemented Interfaces:
WseElementCreation

public class WseElementCreationImpl
extends Object
implements WseElementCreation

This is a utility class which is responsible for the creation of elements that are used within WS-Eventing.


Method Summary
static WseElementCreation getInstance()
           
 GetStatusDocument newGetStatusDocument()
          This method creates a getStatus request document based on the newly created subscription entry
 GetStatusResponseDocument newGetStatusResponseDocument(SubscriptionEntry subscriptionEntry)
          This method creates a getStatus response document based on the specified subscription entry
 RenewDocument newRenewDocument(Calendar expiresAt)
          This method creates a renew request document based on the newly created subscription entry
 RenewResponseDocument newRenewResponseDocument(SubscriptionEntry subscriptionEntry)
          This method creates a renew response document based on the newly created subscription entry
 SubscribeDocument newSubscribeDocument(String deliveryMode, EndpointReferenceType endTo, String filterDialect, String filterConstraint, Calendar expiresAt, EndpointReferenceType notifyTo)
          This method creates a subscribe request document based on the specified arguments.
 SubscribeDocument newSubscribeDocument(String filterDialect, String filterConstraint, Calendar expiresAt, EndpointReferenceType notifyTo)
          This method creates a subscribe request document based on the specified arguments.
 SubscribeResponseDocument newSubscribeResponseDocument(SubscriptionEntry subscriptionEntry)
          This method creates a subscribe response document based on the newly created subscription entry
 SubscriptionEndDocument newSubscriptionEndDocument(SubscriptionEntry subscriptionEntry, String status, String reason)
          This method create a SubscriptionEnd document based on the specified subscription entry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static WseElementCreation getInstance()

newSubscribeDocument

public SubscribeDocument newSubscribeDocument(String deliveryMode,
                                              EndpointReferenceType endTo,
                                              String filterDialect,
                                              String filterConstraint,
                                              Calendar expiresAt,
                                              EndpointReferenceType notifyTo)
                                       throws ProcessingException
This method creates a subscribe request document based on the specified arguments.

Specified by:
newSubscribeDocument in interface WseElementCreation
Throws:
ProcessingException

newSubscribeDocument

public SubscribeDocument newSubscribeDocument(String filterDialect,
                                              String filterConstraint,
                                              Calendar expiresAt,
                                              EndpointReferenceType notifyTo)
                                       throws ProcessingException
This method creates a subscribe request document based on the specified arguments.

Specified by:
newSubscribeDocument in interface WseElementCreation
Throws:
ProcessingException

newRenewDocument

public RenewDocument newRenewDocument(Calendar expiresAt)
                               throws ProcessingException
This method creates a renew request document based on the newly created subscription entry

Specified by:
newRenewDocument in interface WseElementCreation
Throws:
ProcessingException

newGetStatusDocument

public GetStatusDocument newGetStatusDocument()
This method creates a getStatus request document based on the newly created subscription entry

Specified by:
newGetStatusDocument in interface WseElementCreation

newSubscribeResponseDocument

public SubscribeResponseDocument newSubscribeResponseDocument(SubscriptionEntry subscriptionEntry)
                                                       throws ProcessingException
This method creates a subscribe response document based on the newly created subscription entry

Specified by:
newSubscribeResponseDocument in interface WseElementCreation
Throws:
ProcessingException

newRenewResponseDocument

public RenewResponseDocument newRenewResponseDocument(SubscriptionEntry subscriptionEntry)
                                               throws ProcessingException
This method creates a renew response document based on the newly created subscription entry

Specified by:
newRenewResponseDocument in interface WseElementCreation
Throws:
ProcessingException

newGetStatusResponseDocument

public GetStatusResponseDocument newGetStatusResponseDocument(SubscriptionEntry subscriptionEntry)
                                                       throws ProcessingException
This method creates a getStatus response document based on the specified subscription entry

Specified by:
newGetStatusResponseDocument in interface WseElementCreation
Throws:
ProcessingException

newSubscriptionEndDocument

public SubscriptionEndDocument newSubscriptionEndDocument(SubscriptionEntry subscriptionEntry,
                                                          String status,
                                                          String reason)
                                                   throws ProcessingException
This method create a SubscriptionEnd document based on the specified subscription entry

Specified by:
newSubscriptionEndDocument in interface WseElementCreation
Throws:
ProcessingException


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