Class UnbindInfo
- java.lang.Object
-
- org.apache.jackrabbit.webdav.bind.UnbindInfo
-
- All Implemented Interfaces:
XmlSerializable
public class UnbindInfo extends Object implements XmlSerializable
-
-
Constructor Summary
Constructors Constructor Description UnbindInfo(String segment)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UnbindInfocreateFromXml(Element root)Build anUnbindInfoobject from the root element present in the request body.StringgetSegment()ElementtoXml(Document document)Returns the xml representation of the implementing object asElement.
-
-
-
Constructor Detail
-
UnbindInfo
public UnbindInfo(String segment)
-
-
Method Detail
-
getSegment
public String getSegment()
-
createFromXml
public static UnbindInfo createFromXml(Element root) throws DavException
Build anUnbindInfoobject 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 Element toXml(Document document)
Description copied from interface:XmlSerializableReturns the xml representation of the implementing object asElement. The givenDocumentis used as factory and represents theowner documentof the returned DOM element.- Specified by:
toXmlin interfaceXmlSerializable- Parameters:
document- to be used as factory.- Returns:
- a w3c element representing this object
- See Also:
XmlSerializable.toXml(org.w3c.dom.Document)
-
-