org.apache.ws.eventing
Class Subscription

java.lang.Object
  extended byorg.apache.ws.eventing.AbstractSubscription
      extended byorg.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

Field Summary
 
Fields inherited from class org.apache.ws.eventing.AbstractSubscription
consumer, endconsumer, m_creationTime, m_endpointReference, m_id, m_terminationTime, m_usenotify, rH, rK
 
Constructor Summary
Subscription(Filter filter, java.util.Calendar expires, java.net.URI delivery)
           
 
Method Summary
 void destroy()
           
 java.util.Calendar getCurrentTime()
           
 org.apache.ws.addressing.EndpointReference getEndpointReference()
          Returns the EndpointReference associated with this Resource.
 Filter getFilter()
           
 java.lang.String getQueryID()
           
 void init()
           
 void setQueryID(java.lang.String q)
           
 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, 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
 

Constructor Detail

Subscription

public Subscription(Filter filter,
                    java.util.Calendar expires,
                    java.net.URI delivery)
Method Detail

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.