|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObservationResource
extends the DavResource
interface by
observation relevant METHODS.
Field Summary | |
static String |
COMPLIANCE_CLASS
|
static String |
METHODS
|
Method Summary | |
void |
init(SubscriptionManager subsMgr)
Initializes this resource. |
EventDiscovery |
poll(String subscriptionId)
Retrieve the list of events that where recorded for the event listener with the given SubscriptionId. |
Subscription |
subscribe(SubscriptionInfo info,
String subscriptionId)
Subscribe this resource for event listening defined by the specified subscription info. |
void |
unsubscribe(String subscriptionId)
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 |
Field Detail |
public static final String COMPLIANCE_CLASS
public static final String METHODS
Method Detail |
public void init(SubscriptionManager subsMgr)
subsMgr
- subscription manager objectpublic Subscription subscribe(SubscriptionInfo info, 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
public void unsubscribe(String subscriptionId) throws DavException
subscriptionId
- as present in the SubscriptionId
header.
DavException
public EventDiscovery poll(String subscriptionId) throws DavException
subscriptionId
- as present in the
SubscriptionId
header.
EventDiscovery
object
DavException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |