cgl.narada.wsinfra.messaging.interactions
Interface SubscriberWithPublisher

All Superinterfaces:
FrameworkIndicator, SubscriberInteraction
All Known Subinterfaces:
WsnSubscriberWithPublisher
All Known Implementing Classes:
WSESubscriberWithPublisher

public interface SubscriberWithPublisher
extends SubscriberInteraction


Method Summary
 EnvelopeDocument createSubscribe(EndpointReferenceType sourceEPR, String filterConstraint, Calendar expiresAt)
          Create a subscribe request based on the specified parameters.
 EnvelopeDocument createSubscribe(EndpointReferenceType sourceEPR, String filterDialect, String filterConstraint, Calendar expiresAt)
          Create a subscribe request based on the specified parameters.
 void subscribe(EndpointReferenceType sourceEPR, String filterConstraint, Calendar expiresAt)
          Issue a subscribe request based on the specified arguments.
 void subscribe(EndpointReferenceType sourceEPR, String filterDialect, String filterConstraint, Calendar expiresAt)
          Issue a subscribe request based on the specified arguments.
 
Methods inherited from interface cgl.narada.wsinfra.messaging.interactions.SubscriberInteraction
issueExchange
 
Methods inherited from interface cgl.narada.wsinfra.messaging.FrameworkIndicator
getProvider, getSpecVersion, isEventing, isNotification
 

Method Detail

subscribe

void subscribe(EndpointReferenceType sourceEPR,
               String filterDialect,
               String filterConstraint,
               Calendar expiresAt)
               throws ProcessingException,
                      MessageFlowException
Issue a subscribe request based on the specified arguments.

Parameters:
sourceEPR - The EPR of the publisher in question
filterDialect - The filter dialect associated with the subscription
filterConstraint - The filter constraint associated with the subscription
expiresAt - The time at which this subscription has been scheduled to expire.
Throws:
ProcessingException - This exception is thrown if there are problems with the arguments or in the creation of the subscription message.
MessageFlowException - this exception is thrown if there are problems in routing the message.

subscribe

void subscribe(EndpointReferenceType sourceEPR,
               String filterConstraint,
               Calendar expiresAt)
               throws ProcessingException,
                      MessageFlowException
Issue a subscribe request based on the specified arguments. The default filter dialect is associated with this subscription request.

Parameters:
sourceEPR - The EPR of the publisher in question
filterConstraint - The filter constraint associated with the subscription
expiresAt - The time at which this subscription has been scheduled to expire.
Throws:
ProcessingException - This exception is thrown if there are problems with the arguments or in the creation of the subscription message.
MessageFlowException

createSubscribe

EnvelopeDocument createSubscribe(EndpointReferenceType sourceEPR,
                                 String filterDialect,
                                 String filterConstraint,
                                 Calendar expiresAt)
                                 throws ProcessingException
Create a subscribe request based on the specified parameters.

Parameters:
sourceEPR - The EPR of the publisher in question
filterDialect - The filter dialect associated with the subscription
filterConstraint - The filter constraint associated with the subscription
expiresAt - The time at which this subscription has been scheduled to expire.
Returns:
The EnvelopeDocument containing this subscription request
Throws:
ProcessingException - This exception is thrown if there are problems with the arguments or in the creation of the subscription message.

createSubscribe

EnvelopeDocument createSubscribe(EndpointReferenceType sourceEPR,
                                 String filterConstraint,
                                 Calendar expiresAt)
                                 throws ProcessingException
Create a subscribe request based on the specified parameters. The default filter dialect is associated with this subscription request.

Parameters:
sourceEPR - The EPR of the publisher in question
filterConstraint - The filter constraint associated with the subscription
expiresAt - The time at which this subscription has been scheduled to expire.
Returns:
The EnvelopeDocument containing this subscription request
Throws:
ProcessingException - This exception is thrown if there are problems with the arguments or in the creation of the subscription message.


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