org.apache.ws.eventing.pubsub
Class Subscription
java.lang.Object
org.apache.ws.eventing.AbstractSubscription
org.apache.ws.eventing.pubsub.Subscription
- All Implemented Interfaces:
- org.apache.ws.resource.Resource, Subscription
- public class Subscription
- extends AbstractSubscription
- Author:
- Stefan Lischke
Method Summary |
void |
destroy()
|
org.apache.ws.addressing.EndpointReference |
getEndpointReference()
Returns the EndpointReference associated with this Resource. |
java.util.Calendar |
getTerminationTime()
Gets the termination time for this subscription (i.e. |
void |
init()
|
void |
notify(java.lang.String xml)
|
void |
setSubscriptionManager(org.apache.ws.addressing.EndpointReference epr)
|
void |
setTerminationTime(java.util.Calendar terminationTime)
Sets the termination time for this subscription (i.e. |
void |
unsubscribe()
Cancel this subscription. |
Methods inherited from class org.apache.ws.eventing.AbstractSubscription |
addTerminationListener, getCreationTime, getFilters, getID, getNotificationConsumer, getNotificationProducer, getResourceKey, getSubscriptionEndConsumer, getUseNotify, setEpr, setID, setNotificationConsumer, setResourceHome, setResourceKey, setSubscriptionEndConsumer |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Subscription
public Subscription()
unsubscribe
public void unsubscribe()
- Description copied from interface:
Subscription
- Cancel this subscription.
setTerminationTime
public void setTerminationTime(java.util.Calendar terminationTime)
- Description copied from interface:
Subscription
- Sets the termination time for this subscription (i.e. the time at which it expires).
- Parameters:
terminationTime
- the termination time
getTerminationTime
public java.util.Calendar getTerminationTime()
- Description copied from interface:
Subscription
- Gets the termination time for this subscription (i.e. the time at which it expires).
- Specified by:
getTerminationTime
in interface Subscription
- Overrides:
getTerminationTime
in class AbstractSubscription
destroy
public void destroy()
init
public void init()
notify
public void notify(java.lang.String xml)
setSubscriptionManager
public void setSubscriptionManager(org.apache.ws.addressing.EndpointReference epr)
getEndpointReference
public org.apache.ws.addressing.EndpointReference getEndpointReference()
- Description copied from class:
AbstractSubscription
- Returns the EndpointReference associated with this Resource.
- Specified by:
getEndpointReference
in interface org.apache.ws.resource.Resource
- Overrides:
getEndpointReference
in class AbstractSubscription
- Returns:
- The Resource's EndpointReference or null if the EndpointReference has not been set.
Note: It is the responsibility of the Resource creator to set the EndpointReference (i.e. ResourceHome impl)
Copyright © 2004-2005 Apache Software Foundation. All Rights Reserved.