|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ws.notification.base.impl.AbstractSubscription
TODO
Field Summary | |
protected org.apache.ws.addressing.EndpointReference |
m_consumerReference
|
protected java.util.Calendar |
m_creationTime
|
protected org.apache.ws.addressing.EndpointReference |
m_epr
|
protected java.lang.String |
m_id
|
protected boolean |
m_isPaused
|
protected java.lang.Object |
m_policy
|
protected org.apache.ws.resource.properties.query.QueryExpression |
m_precondition
|
protected java.lang.String |
m_producerHomeLocation
|
protected org.apache.ws.resource.ResourceKey |
m_producerKey
|
protected org.apache.ws.addressing.EndpointReference |
m_producerReference
|
protected org.apache.ws.resource.properties.ResourcePropertySet |
m_propSet
|
protected org.apache.ws.resource.properties.query.QueryExpression |
m_selector
|
protected java.util.Calendar |
m_terminationTime
|
protected TopicExpression |
m_topicExpression
|
protected boolean |
m_useNotify
|
Constructor Summary | |
AbstractSubscription()
|
|
AbstractSubscription(org.apache.ws.addressing.EndpointReference consumerReference,
org.apache.ws.addressing.EndpointReference producerReference,
org.apache.ws.resource.ResourceKey producerKey,
java.lang.String producerHomeLocation,
TopicExpression topicExpression)
Construct a new subscription resource. |
Method Summary | |
void |
addTerminationListener(org.apache.ws.resource.lifetime.ResourceTerminationListener resourceTerminationListener)
|
void |
destroy()
|
org.apache.ws.addressing.EndpointReference |
getConsumerReference()
Gets the consumer EPR associated with this subscription. |
java.util.Calendar |
getCreationTime()
Returns the time at which this subscription was created. |
java.util.Calendar |
getCurrentTime()
|
java.net.URI |
getDeliveryMode()
|
org.apache.ws.addressing.EndpointReference |
getEndpointReference()
|
Filter |
getFilters()
Returns a list of any notification filters that are associated with this subscription. |
java.lang.Object |
getID()
|
NotificationConsumer |
getNotificationConsumer()
Get the notification consumer associated with this subscription. |
NotificationProducer |
getNotificationProducer()
Get the notification producer associated with this subscription. |
java.lang.Object |
getPolicy()
|
org.apache.ws.resource.properties.query.QueryExpression |
getPrecondition()
Gets the precondition associated with this subscription. |
org.apache.ws.addressing.EndpointReference |
getProducerReference()
|
NotificationProducerResource |
getProducerResource()
Gets the producer resource associated with this subscription. |
org.apache.ws.resource.properties.ResourcePropertySet |
getResourcePropertySet()
|
org.apache.ws.resource.properties.query.QueryExpression |
getSelector()
Gets the selector associated with this subscription. |
java.util.Calendar |
getTerminationTime()
Gets the termination time for this subscription (i.e. |
TopicExpression |
getTopicExpression()
Gets the topic expression associated with this subscription. |
boolean |
getUseNotify()
Wrap notification messages in the notify element? |
boolean |
isPaused()
Returns true if this subscription is currently paused, or false otherwise. |
void |
pause()
Temporarily suspends the delivery of notification messages for this subscription. |
void |
resume()
Resumes the delivery of notification messages for this subscription. |
void |
setEndpointReference(org.apache.ws.addressing.EndpointReference epr)
|
void |
setID(java.lang.Object o)
|
void |
setNotificationConsumer(NotificationConsumer notificationConsumer)
|
void |
setNotificationProducer(NotificationProducer notificationProducer)
|
void |
setPolicy(java.lang.Object policy)
|
void |
setPrecondition(org.apache.ws.resource.properties.query.QueryExpression precondition)
|
void |
setSelector(org.apache.ws.resource.properties.query.QueryExpression selector)
|
void |
setTerminationTime(java.util.Calendar time)
Sets the termination time for this subscription (i.e. |
void |
setUseNotify(boolean useNotify)
|
void |
unsubscribe()
Cancel this subscription. |
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.PropertiesResource |
setResourcePropertySet |
Methods inherited from interface org.apache.ws.resource.Resource |
init |
Methods inherited from interface org.apache.ws.pubsub.Subscription |
getSubscriptionEndConsumer |
Field Detail |
protected org.apache.ws.addressing.EndpointReference m_consumerReference
protected org.apache.ws.addressing.EndpointReference m_producerReference
protected java.lang.Object m_policy
protected org.apache.ws.resource.properties.query.QueryExpression m_precondition
protected org.apache.ws.resource.properties.query.QueryExpression m_selector
protected org.apache.ws.resource.ResourceKey m_producerKey
protected java.lang.String m_producerHomeLocation
protected TopicExpression m_topicExpression
protected boolean m_isPaused
protected boolean m_useNotify
protected java.util.Calendar m_terminationTime
protected java.util.Calendar m_creationTime
protected java.lang.String m_id
protected org.apache.ws.addressing.EndpointReference m_epr
protected transient org.apache.ws.resource.properties.ResourcePropertySet m_propSet
Constructor Detail |
public AbstractSubscription(org.apache.ws.addressing.EndpointReference consumerReference, org.apache.ws.addressing.EndpointReference producerReference, org.apache.ws.resource.ResourceKey producerKey, java.lang.String producerHomeLocation, TopicExpression topicExpression)
consumerReference
- The WS-Addressing endpoint reference of the consumerproducerReference
- The WS-Addressing endpoint reference of the producerproducerKey
- The key of the producer resourceproducerHomeLocation
- The JNDI location of the home of the producer resourcetopicExpression
- The topic expression for this subscriptionpublic AbstractSubscription()
Method Detail |
public org.apache.ws.resource.properties.ResourcePropertySet getResourcePropertySet()
getResourcePropertySet
in interface org.apache.ws.resource.PropertiesResource
public void setTerminationTime(java.util.Calendar time)
Subscription
setTerminationTime
in interface Subscription
time
- the termination timepublic java.util.Calendar getTerminationTime()
Subscription
getTerminationTime
in interface Subscription
public java.util.Calendar getCurrentTime()
getCurrentTime
in interface org.apache.ws.resource.lifetime.ScheduledResourceTerminationResource
public java.util.Calendar getCreationTime()
Subscription
getCreationTime
in interface Subscription
public org.apache.ws.addressing.EndpointReference getConsumerReference()
Subscription
getConsumerReference
in interface Subscription
public java.lang.Object getPolicy()
public org.apache.ws.resource.properties.query.QueryExpression getPrecondition()
Subscription
getPrecondition
in interface Subscription
public org.apache.ws.addressing.EndpointReference getProducerReference()
public NotificationProducerResource getProducerResource()
Subscription
getProducerResource
in interface Subscription
public org.apache.ws.resource.properties.query.QueryExpression getSelector()
Subscription
getSelector
in interface Subscription
public TopicExpression getTopicExpression()
Subscription
getTopicExpression
in interface Subscription
public boolean isPaused()
Subscription
isPaused
in interface Subscription
public void pause() throws java.lang.Exception
Subscription
pause
in interface Subscription
java.lang.Exception
- if unable to suspend message deliverypublic void resume() throws java.lang.Exception
Subscription
resume
in interface Subscription
java.lang.Exception
- if unable to resume message deliverypublic boolean getUseNotify()
Subscription
getUseNotify
in interface Subscription
public java.lang.Object getID()
getID
in interface org.apache.ws.resource.Resource
public void setID(java.lang.Object o)
setID
in interface org.apache.ws.resource.Resource
public void destroy()
destroy
in interface org.apache.ws.resource.Resource
public void unsubscribe()
Subscription
unsubscribe
in interface Subscription
public Filter getFilters()
Subscription
getFilters
in interface Subscription
public java.net.URI getDeliveryMode()
public NotificationConsumer getNotificationConsumer()
Subscription
getNotificationConsumer
in interface Subscription
public NotificationProducer getNotificationProducer()
Subscription
getNotificationProducer
in interface Subscription
public org.apache.ws.addressing.EndpointReference getEndpointReference()
getEndpointReference
in interface org.apache.ws.resource.Resource
public void setEndpointReference(org.apache.ws.addressing.EndpointReference epr)
setEndpointReference
in interface Subscription
public void setNotificationConsumer(NotificationConsumer notificationConsumer)
setNotificationConsumer
in interface Subscription
public void setNotificationProducer(NotificationProducer notificationProducer)
setNotificationProducer
in interface Subscription
public void addTerminationListener(org.apache.ws.resource.lifetime.ResourceTerminationListener resourceTerminationListener)
addTerminationListener
in interface org.apache.ws.resource.Resource
public void setPolicy(java.lang.Object policy)
setPolicy
in interface Subscription
public void setPrecondition(org.apache.ws.resource.properties.query.QueryExpression precondition)
setPrecondition
in interface Subscription
public void setSelector(org.apache.ws.resource.properties.query.QueryExpression selector)
setSelector
in interface Subscription
public void setUseNotify(boolean useNotify)
setUseNotify
in interface Subscription
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |