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.response
Class PropFindResponse

java.lang.Object
  extended by org.torweg.pulse.webdav.response.MultiStatusResponse
      extended by org.torweg.pulse.webdav.response.PropFindResponse

public class PropFindResponse
extends MultiStatusResponse

represents a PROPFIND response.

Version:
$Revision: 1700 $
Author:
Thomas Weber

Constructor Summary
PropFindResponse(PropFindRequest request, User usr, HttpDAVServletResponse resp)
          creates a new PropFindResponse for manual response collection.
PropFindResponse(java.net.URI resourceURI, PropFindRequest request, DAVStore store, User usr, HttpDAVServletResponse resp)
          creates a new PropFindResponse and automatically collects the response elements.
 
Method Summary
static PropFindResponseElement buildDAVResponse(PropFindRequest propFindRequest, java.lang.String displayName, java.net.URI uri)
          builds a response element in a PROPFIND request for a virtual read-only folder.
 
Methods inherited from class org.torweg.pulse.webdav.response.MultiStatusResponse
add, closeResponse, getCleanURIString, isEmpty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropFindResponse

public PropFindResponse(java.net.URI resourceURI, PropFindRequest request, DAVStore store, User usr, HttpDAVServletResponse resp)
                 throws java.io.IOException
creates a new PropFindResponse and automatically collects the response elements.

Parameters:
resourceURI - the resource
request - the PropFindRequest with the requested depth and properties
store - the DAVStore
usr - the user for whom the response is built
resp - the underlying HttpDAVServletResponse response for sending the propfind response
Throws:
java.io.IOException - on errors accessing the resource

PropFindResponse

public PropFindResponse(PropFindRequest request, User usr, HttpDAVServletResponse resp)
creates a new PropFindResponse for manual response collection.

Parameters:
request - the PropFindRequest with the requested depth and properties
usr - the user for whom the response is built
resp - the underlying HttpDAVServletResponse response for sending the propfind response
Method Detail

buildDAVResponse

public static PropFindResponseElement buildDAVResponse(PropFindRequest propFindRequest,
                                                       java.lang.String displayName,
                                                       java.net.URI uri)
builds a response element in a PROPFIND request for a virtual read-only folder.

Parameters:
propFindRequest - the PROPFIND request
displayName - the display name of the resource
uri - the URI of the resource
Returns:
the fitting StatusResponseElement