org.apache.jackrabbit.webdav.bind
Class RebindInfo
java.lang.Object
org.apache.jackrabbit.webdav.bind.RebindInfo
- All Implemented Interfaces:
- XmlSerializable
public class RebindInfo
- extends java.lang.Object
- implements XmlSerializable
|
Constructor Summary |
RebindInfo(java.lang.String href,
java.lang.String segment)
|
|
Method Summary |
static RebindInfo |
createFromXml(org.w3c.dom.Element root)
Build an RebindInfo object from the root element present
in the request body. |
java.lang.String |
getHref()
|
java.lang.String |
getSegment()
|
org.w3c.dom.Element |
toXml(org.w3c.dom.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 |
RebindInfo
public RebindInfo(java.lang.String href,
java.lang.String segment)
getHref
public java.lang.String getHref()
getSegment
public java.lang.String getSegment()
createFromXml
public static RebindInfo createFromXml(org.w3c.dom.Element root)
throws DavException
- Build an
RebindInfo 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 org.w3c.dom.Element toXml(org.w3c.dom.Document document)
- Description copied from interface:
XmlSerializable
- Returns the xml representation of the implementing object as
Element. The given Document is used
as factory and represents the owner document of the returned DOM element.
- Specified by:
toXml in interface XmlSerializable
- Parameters:
document - to be used as factory.
- Returns:
- a w3c element representing this object
- See Also:
XmlSerializable.toXml(org.w3c.dom.Document)
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.