org.apache.jackrabbit.webdav.observation
Class EventDiscovery
java.lang.Object
org.apache.jackrabbit.webdav.observation.EventDiscovery
- All Implemented Interfaces:
- ObservationConstants, XmlSerializable
- public class EventDiscovery
- extends Object
- implements ObservationConstants, XmlSerializable
EventDiscovery
represents the request body of a successfull
POLL request. It reveals all events that occured since the last POLL. The
definition what events that particular subscription is interested in was
specified with the initial SUBSCRIPTION that started the event listening.
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 |
Method Summary |
void |
addEventBundle(EventBundle eventBundle)
Add the Xml representation of an single 'eventBundle' listing the
events that resulted from a change in the server, filtered by the
restrictions present in the corresponding subscription. |
Element |
toXml(Document document)
Returns the Xml representation of this EventDiscovery as
being present in the POLL response body. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventDiscovery
public EventDiscovery()
addEventBundle
public void addEventBundle(EventBundle eventBundle)
- Add the Xml representation of an single 'eventBundle' listing the
events that resulted from a change in the server, filtered by the
restrictions present in the corresponding subscription.
- Parameters:
eventBundle
- - See Also:
Subscription
toXml
public Element toXml(Document document)
- Returns the Xml representation of this
EventDiscovery
as
being present in the POLL response body.
- Specified by:
toXml
in interface XmlSerializable
- Parameters:
document
-
- Returns:
- Xml representation
- See Also:
XmlSerializable.toXml(Document)
Copyright © 2005-2006 . All Rights Reserved.