|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.webdav.version.OptionsInfo
public class OptionsInfo
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 once.Note, that this is a simplified implementation of the very generic definition: We assume that the DAV:options element only contains empty child elements, such as e.g.
DAV:version-history-collection-set
or DAV:workspace-collection-set.
DeltaVConstants.XML_VH_COLLECTION_SET,
DeltaVConstants.XML_WSP_COLLECTION_SET,
DeltaVConstants.XML_ACTIVITY_COLLECTION_SET| Constructor Summary | |
|---|---|
OptionsInfo(String[] entriesLocalNames)
Create a new OptionsInfo with the specified entries. |
|
| Method Summary | |
|---|---|
boolean |
containsElement(String localName,
Namespace namespace)
Returns true if a child element with the given name and namespace is present. |
static OptionsInfo |
createFromXml(Element optionsElement)
Build an OptionsInfo object from the root element present
in the request body. |
Element |
toXml(Document document)
Returns the xml representation of the implementing object as Element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OptionsInfo(String[] entriesLocalNames)
toXml.
As namespace DeltaVConstants.NAMESPACE is used.
entriesLocalNames - | Method Detail |
|---|
public boolean containsElement(String localName,
Namespace namespace)
localName - namespace -
public Element toXml(Document document)
XmlSerializableElement. The given Document is used
as factory and represents the owner document of the returned DOM element.
toXml in interface XmlSerializabledocument -
XmlSerializable.toXml(Document)
public static OptionsInfo createFromXml(Element optionsElement)
throws DavException
OptionsInfo object from the root element present
in the request body.
optionsElement -
DavException - if the optionsElement is null
or not a DAV:options element.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||