Class RebindInfo
- java.lang.Object
-
- org.apache.jackrabbit.webdav.bind.RebindInfo
-
- All Implemented Interfaces:
XmlSerializable
public class RebindInfo extends Object implements XmlSerializable
-
-
Constructor Summary
Constructors Constructor Description RebindInfo(String href, String segment)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RebindInfo
createFromXml(Element root)
Build anRebindInfo
object from the root element present in the request body.String
getHref()
String
getSegment()
Element
toXml(Document document)
Returns the xml representation of the implementing object asElement
.
-
-
-
Method Detail
-
getHref
public String getHref()
-
getSegment
public String getSegment()
-
createFromXml
public static RebindInfo createFromXml(Element root) throws DavException
Build anRebindInfo
object from the root element present in the request body.- Parameters:
root
- the root element of the request body- Returns:
- a RebindInfo object containing segment and href
- Throws:
DavException
- if the REBIND request is malformed
-
toXml
public Element toXml(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)
-
-