|
|||||||||||
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 |
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. |
Element |
toXml(Document document)
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.Subscription
public Element toXml(Document document)
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.xml.XmlSerializable
document
-
XmlSerializable.toXml(Document)
public void onEvent(EventIterator events)
#discoverEvents()
request.
onEvent
in interface EventListener
events
- to be recorded.EventListener.onEvent(EventIterator)
,
#discoverEvents()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |