All Superinterfaces:
DavResource
public interface ObservationResource
extends DavResource
ObservationResource extends the
DavResource interface by
observation relevant METHODS.
Method Summary
All Methods Instance Methods Abstract Methods
void
Initializes this resource.
Retrieve the list of events that where recorded for the event listener
with the given SubscriptionId.
Subscribe this resource for event listening defined by the specified
subscription info.
void
Unsubscribe the event listener with the given SubscriptionId.
Methods inherited from interface org.apache.jackrabbit.webdav.DavResource
addLockManager , addMember , alterProperties , copy , exists , getCollection , getComplianceClass , getDisplayName , getFactory , getHref , getLocator , getLock , getLocks , getMembers , getModificationTime , getProperties , getProperty , getPropertyNames , getResourcePath , getSession , getSupportedMethods , hasLock , isCollection , isLockable , lock , move , refreshLock , removeMember , removeProperty , setProperty , spool , unlock
Method Details
init
Initializes this resource.
Parameters:
subsMgr - subscription manager object
subscribe
Subscribe this resource for event listening defined by the specified
subscription info. A subscriptionId may be specified in case an existing
subscription should be modified.
Parameters:
info - SubscriptionInfo object as defined by the
request body and headers.
subscriptionId - or null if the
SubscriptionId header
is missing.
Returns:
Subscription object in case the subscription was
successful.
Throws:
DavException
unsubscribe
Unsubscribe the event listener with the given SubscriptionId.
Parameters:
subscriptionId - as present in the SubscriptionId header.
Throws:
DavException
poll
Retrieve the list of events that where recorded for the event listener
with the given SubscriptionId.
Parameters:
subscriptionId - as present in the
SubscriptionId header.
timeout - as present in the
ObservationConstants.HEADER_POLL_TIMEOUT header or 0 (zero) if
none is present.
Returns:
EventDiscovery object
Throws:
DavException