|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jackrabbit.webdav.jcr.observation.SubscriptionImpl
The Subscription class encapsulates a single subscription with
the following responsibilities:
| Field Summary |
| Fields inherited from interface org.apache.jackrabbit.webdav.observation.ObservationConstants |
EVENT_NODEADDED, EVENT_NODEREMOVED, EVENT_PROPERTYADDED, EVENT_PROPERTYCHANGED, EVENT_PROPERTYREMOVED, HEADER_SUBSCRIPTIONID, NAMESPACE, SUBSCRIPTIONDISCOVERY, XML_EVENT, XML_EVENTBUNDLE, XML_EVENTDISCOVERY, XML_EVENTTYPE, XML_EVENTUSERID, XML_FILTER, XML_NODETYPE_NAME, XML_NOLOCAL, XML_SUBSCRIPTION, XML_SUBSCRIPTIONID, XML_SUBSCRIPTIONINFO, XML_UUID |
| Constructor Summary | |
SubscriptionImpl(org.apache.jackrabbit.webdav.observation.SubscriptionInfo info,
org.apache.jackrabbit.webdav.observation.ObservationResource resource)
Create a new Subscription with the given SubscriptionInfo
and resource. |
|
| Method Summary | |
String |
getSubscriptionId()
Returns the id of this subscription. |
void |
onEvent(EventIterator events)
Records the events passed as a new event bundle in order to make them available with the next #discoverEvents() request. |
org.jdom.Element |
toXml()
Return the Xml representation of this Subscription as required
for the SubscriptionDiscovery webdav property that in included
in the response body of a sucessful SUBSCRIBE request or as part of a
PROPFIND response. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SubscriptionImpl(org.apache.jackrabbit.webdav.observation.SubscriptionInfo info,
org.apache.jackrabbit.webdav.observation.ObservationResource resource)
Subscription with the given SubscriptionInfo
and resource.
info - resource - | Method Detail |
public String getSubscriptionId()
getSubscriptionId in interface org.apache.jackrabbit.webdav.observation.Subscriptionpublic org.jdom.Element toXml()
Subscription as required
for the SubscriptionDiscovery webdav property that in included
in the response body of a sucessful SUBSCRIBE request or as part of a
PROPFIND response.
toXml in interface org.apache.jackrabbit.webdav.observation.Subscriptionpublic void onEvent(EventIterator events)
#discoverEvents() request.
onEvent in interface EventListenerevents - to be recorded.EventListener.onEvent(EventIterator),
#discoverEvents()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||