Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.ws.eventing
Class Subscription  view Subscription download Subscription.java

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, org.apache.ws.pubsub.Subscription

public class Subscription
extends AbstractSubscription
implements org.apache.ws.resource.lifetime.ScheduledResourceTerminationResource


Field Summary
private static org.apache.commons.logging.Log LOG
           
private  java.net.URI m_delivery
           
private  org.apache.ws.pubsub.Filter m_filter
           
private  java.lang.String QueryID
           
private static org.apache.ws.util.uuid.UuidGenerator UUID_GEN
           
 
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(org.apache.ws.pubsub.Filter filter, java.util.Calendar expires, java.net.URI delivery)
           
 
Method Summary
 void destroy()
          The WS-RF runtime system ends the lifecycle of a Resource object by invoking this method.
 java.util.Calendar getCurrentTime()
          Get the current time
 org.apache.ws.addressing.EndpointReference getEndpointReference()
          Returns the EndpointReference associated with this Resource.
 org.apache.ws.pubsub.Filter getFilter()
           
 java.lang.String getQueryID()
           
 void init()
          The WS-RF runtime system initializes a Resource object by invoking this method.
 void setQueryID(java.lang.String q)
           
 void setTerminationTime(java.util.Calendar terminationTime)
          Set the termination time
 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
 

Field Detail

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
Constructor Detail

Subscription

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

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