org.apache.ws.eventing
Class Subscription
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, Subscription
- public class Subscription
- extends AbstractSubscription
- implements org.apache.ws.resource.lifetime.ScheduledResourceTerminationResource
- Author:
- Stefan Lischke
Constructor Summary |
Subscription(Filter filter,
java.util.Calendar expires,
java.net.URI delivery)
|
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 |
Methods inherited from interface org.apache.ws.resource.lifetime.ScheduledResourceTerminationResource |
getTerminationTime |
Methods inherited from interface org.apache.ws.resource.Resource |
addTerminationListener, getID, setID |
Subscription
public Subscription(Filter filter,
java.util.Calendar expires,
java.net.URI delivery)
getFilter
public Filter getFilter()
throws java.lang.Exception
- 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:
Subscription
- Cancel this subscription.
- Specified by:
unsubscribe
in interface Subscription
destroy
public void destroy()
- Specified by:
destroy
in interface org.apache.ws.resource.Resource
init
public void init()
- Specified by:
init
in interface org.apache.ws.resource.Resource
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).
- Specified by:
setTerminationTime
in interface org.apache.ws.resource.lifetime.ScheduledResourceTerminationResource
getCurrentTime
public java.util.Calendar getCurrentTime()
- Specified by:
getCurrentTime
in interface org.apache.ws.resource.lifetime.ScheduledResourceTerminationResource
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.