org.abstracthorizon.danube.webdav.xml.dav
Class HRef

java.lang.Object
  extended by org.abstracthorizon.danube.webdav.xml.dav.request.AbstractSimpleXMLHandler
      extended by org.abstracthorizon.danube.webdav.xml.dav.HRef
All Implemented Interfaces:
XMLParserHandler, XMLRenderer

public class HRef
extends AbstractSimpleXMLHandler
implements XMLRenderer

This object models WebDAV's href tag

Author:
Daniel Sendula

Field Summary
protected  String path
          URL path
static String TAG_NAME
          Tag name
 
Fields inherited from class org.abstracthorizon.danube.webdav.xml.dav.request.AbstractSimpleXMLHandler
parent
 
Constructor Summary
HRef(String uri)
          Constructor
HRef(XMLParserHandler parent)
          Constructor
 
Method Summary
 Object end(Object current, String tag, String value)
          End tag handling
 void render(PrintWriter writer, NamespacesProvider provider)
          Renders the tag
 String toString()
          Returns object's string representation
 
Methods inherited from class org.abstracthorizon.danube.webdav.xml.dav.request.AbstractSimpleXMLHandler
start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TAG_NAME

public static final String TAG_NAME
Tag name

See Also:
Constant Field Values

path

protected String path
URL path

Constructor Detail

HRef

public HRef(XMLParserHandler parent)
Constructor

Parameters:
parent - parent parser handler

HRef

public HRef(String uri)
Constructor

Parameters:
uri - URL
Method Detail

end

public Object end(Object current,
                  String tag,
                  String value)
           throws SAXException
End tag handling

Specified by:
end in interface XMLParserHandler
Overrides:
end in class AbstractSimpleXMLHandler
Parameters:
current - current object
tag - tag
value - tag's value
Returns:
new object
Throws:
SAXException - sax exception

toString

public String toString()
Returns object's string representation

Overrides:
toString in class Object
Returns:
object's string representation

render

public void render(PrintWriter writer,
                   NamespacesProvider provider)
Renders the tag

Specified by:
render in interface XMLRenderer
Parameters:
writer - writer
provider - namespace provider


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.