|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.webdav.observation.SubscriptionInfo
SubscriptionInfo
class encapsulates the subscription info
that forms the request body of a SUBSCRIBE request.
ObservationConstants.XML_SUBSCRIPTIONINFO
Field Summary |
Fields inherited from interface org.apache.jackrabbit.webdav.observation.ObservationConstants |
EVENT_NODEADDED, EVENT_NODEREMOVED, EVENT_PROPERTYADDED, EVENT_PROPERTYCHANGED, EVENT_PROPERTYREMOVED, HEADER_SUBSCRIPTIONID, NAMESPACE, SUBSCRIPTIONDISCOVERY, XML_EVENT, XML_EVENTBUNDLE, XML_EVENTDISCOVERY, XML_EVENTTYPE, XML_EVENTUSERID, XML_FILTER, XML_NODETYPE_NAME, XML_NOLOCAL, XML_SUBSCRIPTION, XML_SUBSCRIPTIONID, XML_SUBSCRIPTIONINFO, XML_UUID |
Constructor Summary | |
SubscriptionInfo(org.jdom.Element reqInfo,
long timeout,
boolean isDeep)
Create a new SubscriptionInfo |
Method Summary | |
List |
getEventTypes()
Return list of event types Xml elements present in the subscription info. |
String[] |
getFilters(String name)
Return array of filters with the specified name. |
long |
getTimeOut()
Return the timeout as retrieved from the request. |
boolean |
isDeep()
Returns true if the depths header defined a depth other than '0'. |
boolean |
isNoLocal()
Returns true if the ObservationConstants.XML_NOLOCAL element is present in this
subscription info. |
void |
setTimeOut(long timeout)
Set the timeout. |
org.jdom.Element[] |
toXml()
Xml representation of this SubscriptionInfo . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SubscriptionInfo(org.jdom.Element reqInfo, long timeout, boolean isDeep)
SubscriptionInfo
reqInfo
- Xml element present in the request body.timeout
- as defined by the timeout header
.isDeep
- as defined by the depth header
.
IllegalArgumentException
- if the reqInfo element does not contain the mandatory elements.Method Detail |
public List getEventTypes()
public String[] getFilters(String name)
name
- the filter elments must provide.
public boolean isNoLocal()
ObservationConstants.XML_NOLOCAL
element is present in this
subscription info.
ObservationConstants.XML_NOLOCAL
element is present.public boolean isDeep()
depths header
defined a depth other than '0'.
isDeep
true.public long getTimeOut()
public void setTimeOut(long timeout)
timeout
- as defined by the DavConstants.HEADER_TIMEOUT
.public org.jdom.Element[] toXml()
SubscriptionInfo
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |