Class UnbindInfo
- java.lang.Object
-
- org.apache.jackrabbit.webdav.bind.UnbindInfo
-
- All Implemented Interfaces:
XmlSerializable
public class UnbindInfo extends java.lang.Object implements XmlSerializable
-
-
Constructor Summary
Constructors Constructor Description UnbindInfo(java.lang.String segment)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UnbindInfo
createFromXml(org.w3c.dom.Element root)
Build anUnbindInfo
object from the root element present in the request body.java.lang.String
getSegment()
org.w3c.dom.Element
toXml(org.w3c.dom.Document document)
Returns the xml representation of the implementing object asElement
.
-
-
-
Method Detail
-
getSegment
public java.lang.String getSegment()
-
createFromXml
public static UnbindInfo createFromXml(org.w3c.dom.Element root) throws DavException
Build anUnbindInfo
object from the root element present in the request body.- Parameters:
root
- the root element of the request body- Returns:
- a UnbindInfo object containing a segment identifier
- Throws:
DavException
- if the UNBIND request is malformed
-
toXml
public org.w3c.dom.Element toXml(org.w3c.dom.Document document)
Description copied from interface:XmlSerializable
Returns the xml representation of the implementing object asElement
. The givenDocument
is used as factory and represents theowner document
of the returned DOM element.- Specified by:
toXml
in interfaceXmlSerializable
- Parameters:
document
- to be used as factory.- Returns:
- a w3c element representing this object
- See Also:
XmlSerializable.toXml(org.w3c.dom.Document)
-
-