java.lang.Object
org.apache.ws.eventing.AbstractSubscription
org.apache.ws.eventing.Subscription
- All Implemented Interfaces:
- org.apache.ws.resource.Resource, org.apache.ws.resource.lifetime.ScheduledResourceTerminationResource, org.apache.ws.pubsub.Subscription
- public class Subscription
- extends AbstractSubscription
- implements org.apache.ws.resource.lifetime.ScheduledResourceTerminationResource
| Methods inherited from class org.apache.ws.eventing.AbstractSubscription |
addTerminationListener, getCreationTime, getFilters, getID, getNotificationConsumer, getNotificationProducer, getResourceKey, getSubscriptionEndConsumer, getTerminationTime, 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 |
LOG
private static final org.apache.commons.logging.Log LOG
UUID_GEN
private static final org.apache.ws.util.uuid.UuidGenerator UUID_GEN
QueryID
private java.lang.String QueryID
m_filter
private org.apache.ws.pubsub.Filter m_filter
m_delivery
private java.net.URI m_delivery
Subscription
public Subscription(org.apache.ws.pubsub.Filter filter,
java.util.Calendar expires,
java.net.URI delivery)
getFilter
public org.apache.ws.pubsub.Filter getFilter()
throws java.lang.Exception
getQueryID
public java.lang.String getQueryID()
setQueryID
public void setQueryID(java.lang.String q)
unsubscribe
public void unsubscribe()
- Description copied from interface:
org.apache.ws.pubsub.Subscription
- Cancel this subscription.
- Specified by:
unsubscribe in interface org.apache.ws.pubsub.Subscription
destroy
public void destroy()
- Description copied from interface:
org.apache.ws.resource.Resource
- The WS-RF runtime system ends the lifecycle of a org.apache.ws.resource.Resource
object by invoking this method.
- Specified by:
destroy in interface org.apache.ws.resource.Resource
init
public void init()
- Description copied from interface:
org.apache.ws.resource.Resource
- The WS-RF runtime system initializes a org.apache.ws.resource.Resource object by
invoking this method.
- Specified by:
init in interface org.apache.ws.resource.Resource
setTerminationTime
public void setTerminationTime(java.util.Calendar terminationTime)
- Description copied from interface:
org.apache.ws.resource.lifetime.ScheduledResourceTerminationResource
- Set the termination time
- Specified by:
setTerminationTime in interface org.apache.ws.resource.lifetime.ScheduledResourceTerminationResource
getCurrentTime
public java.util.Calendar getCurrentTime()
- Description copied from interface:
org.apache.ws.resource.lifetime.ScheduledResourceTerminationResource
- Get the current time
- Specified by:
getCurrentTime in interface org.apache.ws.resource.lifetime.ScheduledResourceTerminationResource
getEndpointReference
public org.apache.ws.addressing.EndpointReference getEndpointReference()
- Description copied from interface:
org.apache.ws.resource.Resource
- Returns the EndpointReference associated with this Resource.
- Specified by:
getEndpointReference in interface org.apache.ws.resource.Resource- Overrides:
getEndpointReference in class AbstractSubscription