public interface ObservationResource extends DavResource
ObservationResource
extends the DavResource
interface by
observation relevant METHODS.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
METHODS |
Modifier and Type | Method and Description |
---|---|
void |
init(SubscriptionManager subsMgr)
Initializes this resource.
|
EventDiscovery |
poll(java.lang.String subscriptionId,
long timeout)
Retrieve the list of events that where recorded for the event listener
with the given SubscriptionId.
|
Subscription |
subscribe(SubscriptionInfo info,
java.lang.String subscriptionId)
Subscribe this resource for event listening defined by the specified
subscription info.
|
void |
unsubscribe(java.lang.String subscriptionId)
Unsubscribe the event listener with the given SubscriptionId.
|
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
static final java.lang.String METHODS
void init(SubscriptionManager subsMgr)
subsMgr
- subscription manager objectSubscription subscribe(SubscriptionInfo info, java.lang.String subscriptionId) throws DavException
info
- SubscriptionInfo
object as defined by the
request body and headers.subscriptionId
- or null
if the
SubscriptionId
header
is missing.Subscription
object in case the subscription was
successful.DavException
void unsubscribe(java.lang.String subscriptionId) throws DavException
subscriptionId
- as present in the SubscriptionId
header.DavException
EventDiscovery poll(java.lang.String subscriptionId, long timeout) throws DavException
subscriptionId
- as present in the
SubscriptionId
header.timeout
- as present in the
ObservationConstants.HEADER_POLL_TIMEOUT
header or 0 (zero) if
none is present.EventDiscovery
objectDavException
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"