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 PropNameResponseElement

java.lang.Object
  extended by org.torweg.pulse.webdav.util.AbstractResponseElement
      extended by org.torweg.pulse.webdav.util.PropNameResponseElement
All Implemented Interfaces:
IMultiStatusElement

public class PropNameResponseElement
extends AbstractResponseElement

a response element for a propname PROPFIND request.

Version:
$Revision: 1435 $
Author:
Thomas Weber

Constructor Summary
PropNameResponseElement(java.net.URI uri, boolean isCol)
          creates a new PropFindResponseElement for the given URI.
 
Method Summary
 void addProperty(IProperty p)
          adds a property.
 java.net.URI getHref()
          returns the href the reponse element is for.
 org.jdom.Element getXML()
          returns the XML of the PropFindResponseElement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropNameResponseElement

public PropNameResponseElement(java.net.URI uri,
                               boolean isCol)
creates a new PropFindResponseElement for the given URI.

Parameters:
uri - the URI
isCol - flag, indicating whether the processed element is a collection
Method Detail

addProperty

public final void addProperty(IProperty p)
adds a property.

Parameters:
p - the property to add

getHref

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

Specified by:
getHref in interface IMultiStatusElement
Specified by:
getHref in class AbstractResponseElement
Returns:
the href

getXML

public final org.jdom.Element getXML()
returns the XML of the PropFindResponseElement.

Specified by:
getXML in interface IMultiStatusElement
Overrides:
getXML in class AbstractResponseElement
Returns:
the XML of the PropFindResponseElement
See Also:
StatusResponseElement.getXML()