org.apache.ws.notification.pubsub
Class Subscriber

java.lang.Object
  extended byorg.apache.ws.notification.pubsub.Subscriber
All Implemented Interfaces:
NotificationProducer

public class Subscriber
extends java.lang.Object
implements NotificationProducer

Author:
Stefan Lischke

Constructor Summary
Subscriber(java.lang.String url, java.lang.String configfile)
          Creates a new instance of Subscriber
 
Method Summary
 java.lang.Object getCurrentMessage(Filter[] filters)
           
 org.apache.ws.addressing.EndpointReference getEPR()
          Returns this producer's endpoint reference.
 void init(java.lang.String configfile)
          runs resource discovery.
 Subscription subscribe(NotificationConsumer notificationConsumer, SubscriptionEndConsumer subscriptionEndConsumer, TopicFilter tf, XPathFilter xf, java.util.Calendar initialTerminationTime, boolean UseNotify)
          Subscribe to notifications from this producer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Subscriber

public Subscriber(java.lang.String url,
                  java.lang.String configfile)
Creates a new instance of Subscriber

Method Detail

getCurrentMessage

public java.lang.Object getCurrentMessage(Filter[] filters)

getEPR

public org.apache.ws.addressing.EndpointReference getEPR()
Description copied from interface: NotificationProducer
Returns this producer's endpoint reference.

Specified by:
getEPR in interface NotificationProducer
Returns:
this producer's endpoint reference

subscribe

public Subscription subscribe(NotificationConsumer notificationConsumer,
                              SubscriptionEndConsumer subscriptionEndConsumer,
                              TopicFilter tf,
                              XPathFilter xf,
                              java.util.Calendar initialTerminationTime,
                              boolean UseNotify)
Description copied from interface: NotificationProducer
Subscribe to notifications from this producer.

Specified by:
subscribe in interface NotificationProducer
Parameters:
notificationConsumer -
subscriptionEndConsumer - the callback Interface for SubscriptionEnd Notifications, or null if no SubscriptionEnd should be send
tf -
xf -
initialTerminationTime -
UseNotify - the notification delivery mode, or null to use default mode
Returns:
the subscription

init

public void init(java.lang.String configfile)
          throws java.lang.Exception
runs resource discovery.

Throws:
java.lang.Exception


Copyright © 2004-2005 Apache Software Foundation. All Rights Reserved.