|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
SubscriptionManager
interface.
Method Summary | |
SubscriptionDiscovery |
getSubscriptionDiscovery(ObservationResource resource)
Retrieve the SubscriptionDiscovery object for the given
resource. |
EventDiscovery |
poll(String subscriptionId,
ObservationResource resource)
Retrieve the list of events that occured since the last poll. |
Subscription |
subscribe(SubscriptionInfo info,
String subscriptionId,
ObservationResource resource)
Create a new Subscription or update an existing Subscription .. |
void |
unsubscribe(String subscriptionId,
ObservationResource resource)
Unsubscribe the Subscription with the given id. |
Method Detail |
public SubscriptionDiscovery getSubscriptionDiscovery(ObservationResource resource)
SubscriptionDiscovery
object for the given
resource. Note, that the discovery object will be empty if there are
no subscriptions present.
resource
- public Subscription subscribe(SubscriptionInfo info, String subscriptionId, ObservationResource resource) throws DavException
Subscription
or update an existing Subscription
..
info
- subscriptionId
- resource
-
Subscription
that has been created or updated
DavException
- if the subscription failspublic void unsubscribe(String subscriptionId, ObservationResource resource) throws DavException
Subscription
with the given id.
subscriptionId
- resource
-
DavException
public EventDiscovery poll(String subscriptionId, ObservationResource resource) throws DavException
subscriptionId
- indentifier for the subscriptionresource
-
DavException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |