public class OptionsInfo extends java.lang.Object implements XmlSerializable
OptionsInfo
represents the Xml request body, that may be present
with a OPTIONS request.
<!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
.Constructor and Description |
---|
OptionsInfo(java.lang.String[] entriesLocalNames)
Create a new OptionsInfo with the specified entries.
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsElement(java.lang.String localName,
Namespace namespace)
Returns true if a child element with the given name and namespace is present.
|
static OptionsInfo |
createFromXml(org.w3c.dom.Element optionsElement)
Build an
OptionsInfo object from the root element present
in the request body. |
org.w3c.dom.Element |
toXml(org.w3c.dom.Document document)
Returns the xml representation of the implementing object as
Element . |
public OptionsInfo(java.lang.String[] entriesLocalNames)
toXml
.
As namespace DeltaVConstants.NAMESPACE
is used.entriesLocalNames
- public boolean containsElement(java.lang.String localName, Namespace namespace)
localName
- namespace
- public org.w3c.dom.Element toXml(org.w3c.dom.Document document)
XmlSerializable
Element
. The given Document
is used
as factory and represents the owner document
of the returned DOM element.toXml
in interface XmlSerializable
document
- XmlSerializable.toXml(Document)
public static OptionsInfo createFromXml(org.w3c.dom.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.Copyright © 2010 - 2020 Adobe. All Rights Reserved