org.apache.jackrabbit.webdav.version
Class OptionsInfo

java.lang.Object
  extended byorg.apache.jackrabbit.webdav.version.OptionsInfo

public class OptionsInfo
extends Object

OptionsInfo represents the Xml request body, that may be present with a OPTIONS request.
The DAV:options element is specified to have the following form.

 <!ELEMENT options ANY>
 ANY value: A sequence of elements each at most onces.
 

See Also:
DeltaVConstants.XML_VH_COLLECTION_SET, DeltaVConstants.XML_WSP_COLLECTION_SET, DeltaVConstants.XML_ACTIVITY_COLLECTION_SET

Constructor Summary
OptionsInfo(org.jdom.Element optionsElement)
          Create a new UpdateInfo object.
 
Method Summary
 boolean containsElement(String name, org.jdom.Namespace namespace)
          Returns true if a child element with the given name and namespace is present.
 List getElements()
          Returns the set of elements present in the DAV:options element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptionsInfo

public OptionsInfo(org.jdom.Element optionsElement)
Create a new UpdateInfo object.

Parameters:
optionsElement -
Throws:
IllegalArgumentException - if the updateElement is null or not a DAV:update element or if the element does not match the required structure.
Method Detail

getElements

public List getElements()
Returns the set of elements present in the DAV:options element. These elements define the information the client wishes to retrieve the OPTIONS request.

Returns:
set of child elements

containsElement

public boolean containsElement(String name,
                               org.jdom.Namespace namespace)
Returns true if a child element with the given name and namespace is present.

Parameters:
name -
namespace -
Returns:
true if such a child element exists in the options element.


Copyright © 2005 . All Rights Reserved.