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 PropFindResponseElement

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

public class PropFindResponseElement
extends AbstractResponseElement

a response element for a PROPFIND request ( Note that propname request are handled by PropNameResponseElements; Section 9.1.4 of RFC 4918 ).

See also section 9.1 of RFC 4918.

Version:
$Revision: 1435 $
Author:
Thomas Weber

Constructor Summary
PropFindResponseElement(java.net.URI uri, boolean isCol)
          creates a new PropFindResponseElement for the given URI.
 
Method Summary
 void addProperty(IProperty prop, DAVStatus stat)
          adds a property and a status to the PropFindResponseElement.
 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

PropFindResponseElement

public PropFindResponseElement(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

getHref

public 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

addProperty

public void addProperty(IProperty prop, DAVStatus stat)
adds a property and a status to the PropFindResponseElement.

Parameters:
prop - the property
stat - the status

getXML

public 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()