org.apache.ws.eventing.pubsub
Class Subscriber
java.lang.Object
org.apache.ws.eventing.pubsub.Subscriber
- All Implemented Interfaces:
- NotificationProducer
- public class Subscriber
- extends java.lang.Object
- implements NotificationProducer
Constructor Summary |
Subscriber(java.lang.String url,
java.lang.String configfile)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Subscriber
public Subscriber(java.lang.String url,
java.lang.String configfile)
init
public void init(java.lang.String configfile)
throws java.lang.Exception
- runs resource discovery.
- Throws:
java.lang.Exception
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 sendtf
- xf
- initialTerminationTime
- UseNotify
- the notification delivery mode, or null to use default mode
- Returns:
- the subscription
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
Copyright © 2004-2005 Apache Software Foundation. All Rights Reserved.