Interface ObservationResource

  • All Superinterfaces:
    DavResource

    public interface ObservationResource
    extends DavResource
    ObservationResource extends the DavResource interface by observation relevant METHODS.
    • Method Detail

      • init

        void init​(SubscriptionManager subsMgr)
        Initializes this resource.
        Parameters:
        subsMgr - subscription manager object
      • subscribe

        Subscription subscribe​(SubscriptionInfo info,
                               java.lang.String subscriptionId)
                        throws DavException
        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

        void unsubscribe​(java.lang.String subscriptionId)
                  throws DavException
        Unsubscribe the event listener with the given SubscriptionId.
        Parameters:
        subscriptionId - as present in the SubscriptionId header.
        Throws:
        DavException