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