org.apache.jackrabbit.webdav.bind
Class BindInfo

java.lang.Object
  extended by org.apache.jackrabbit.webdav.bind.BindInfo
All Implemented Interfaces:
XmlSerializable

public class BindInfo
extends Object
implements XmlSerializable


Constructor Summary
BindInfo(String href, String segment)
           
 
Method Summary
static BindInfo createFromXml(Element root)
          Build an BindInfo 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 as Element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BindInfo

public BindInfo(String href,
                String segment)
Method Detail

getHref

public String getHref()

getSegment

public String getSegment()

createFromXml

public static BindInfo createFromXml(Element root)
                              throws DavException
Build an BindInfo object 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 Element toXml(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-2010 The Apache Software Foundation. All Rights Reserved.