pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.webdav.util
Class AbstractResponseElement

java.lang.Object
  extended by org.torweg.pulse.webdav.util.AbstractResponseElement
All Implemented Interfaces:
IMultiStatusElement
Direct Known Subclasses:
PropFindResponseElement, PropNameResponseElement, PropPatchResponseElement, StatusResponseElement

public abstract class AbstractResponseElement
extends java.lang.Object
implements IMultiStatusElement

abstract base class for response elements, creating a very basic XML <d:response><d:href>/uri</d:href></d:response>.

Version:
$Revision: 1236 $
Author:
Thomas Weber

Constructor Summary
AbstractResponseElement()
           
 
Method Summary
abstract  java.net.URI getHref()
          returns the href the reponse element is for.
 org.jdom.Element getXML()
          returns a most basic <d:response /> element with <d:href /> set (can be used by subclasses to create an initial response element).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractResponseElement

public AbstractResponseElement()
Method Detail

getHref

public abstract java.net.URI getHref()
returns the href the reponse element is for.

Specified by:
getHref in interface IMultiStatusElement
Returns:
the href

getXML

public org.jdom.Element getXML()
returns a most basic <d:response /> element with <d:href /> set (can be used by subclasses to create an initial response element).

Specified by:
getXML in interface IMultiStatusElement
Returns:
a most basic XML representation
See Also:
IMultiStatusElement.getXML()