org.apache.jackrabbit.webdav.observation
Interface Subscription


public interface Subscription

Subscription represents public representation of the event listener created (or modified) by a successful SUBSCRIBE request.


Method Summary
 String getSubscriptionId()
          Returns the id of this subscription, that must be used for unsubscribing as well as for event discovery later on.
 org.jdom.Element toXml()
          Return the Xml representation of this Subscription that is returned in the response to a successful SUBSCRIBE request as well as in a PROPFIND request.
 

Method Detail

getSubscriptionId

public String getSubscriptionId()
Returns the id of this subscription, that must be used for unsubscribing as well as for event discovery later on.

Returns:
subscriptionId

toXml

public org.jdom.Element toXml()
Return the Xml representation of this Subscription that is returned in the response to a successful SUBSCRIBE request as well as in a PROPFIND request. In both cases the subscription is packed into a SubscriptionDiscovery property object.

Returns:
Xml representation


Copyright © 2005 . All Rights Reserved.