org.apache.wink.webdav.server
Class WebDAVResponseBuilder

java.lang.Object
  extended by org.apache.wink.webdav.server.WebDAVResponseBuilder

public class WebDAVResponseBuilder
extends Object


Nested Class Summary
static class WebDAVResponseBuilder.CollectionPropertyHandler
          Extends the WebDAVResponseBuilder.PropertyHandler to provide additional data for the creation of multistatus responses for collections (feeds).
static class WebDAVResponseBuilder.PropertyHandler
          Used during the creation of a WebDAV multistatus response to get the properties and their values.
 
Method Summary
static WebDAVResponseBuilder create(javax.ws.rs.core.UriInfo uriInfo)
           
 javax.ws.rs.core.Response propfind(SyndEntry entry, String propfindXml)
          Process the PROPFIND request for a given entry and create a response using the default implementation of WebDAVResponseBuilder.PropertyHandler
 javax.ws.rs.core.Response propfind(SyndEntry entry, String propfindXml, WebDAVResponseBuilder.PropertyHandler handler)
          Process the PROPFIND request for given document resource and create a response.
 javax.ws.rs.core.Response propfind(SyndFeed feed, String propfindXml, String depthStr)
          Process the PROPFIND request for the given feed and create a response using the default implementation of WebDAVResponseBuilder.CollectionPropertyHandler
 javax.ws.rs.core.Response propfind(SyndFeed feed, String propfindXml, String depthStr, WebDAVResponseBuilder.CollectionPropertyHandler provider)
          Process the PROPFIND request for the given collection resource and create a response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static WebDAVResponseBuilder create(javax.ws.rs.core.UriInfo uriInfo)

propfind

public javax.ws.rs.core.Response propfind(SyndEntry entry,
                                          String propfindXml)
                                   throws IOException
Process the PROPFIND request for a given entry and create a response using the default implementation of WebDAVResponseBuilder.PropertyHandler

Parameters:
entry - the entry containing the data to use to create the propfind response
propfindXml - the propfind xml request to create the response for
Returns:
a response to the profind request
Throws:
IOException

propfind

public javax.ws.rs.core.Response propfind(SyndEntry entry,
                                          String propfindXml,
                                          WebDAVResponseBuilder.PropertyHandler handler)
                                   throws IOException
Process the PROPFIND request for given document resource and create a response.

Parameters:
entry - the entry containing the data to use to create the propfind response
propfindXml - the propfind xml request to create the response for
handler - a WebDAVResponseBuilder.PropertyHandler that will be used to retrieve the values of properties for the response
Returns:
a response to the profind request
Throws:
IOException

propfind

public javax.ws.rs.core.Response propfind(SyndFeed feed,
                                          String propfindXml,
                                          String depthStr)
                                   throws IOException
Process the PROPFIND request for the given feed and create a response using the default implementation of WebDAVResponseBuilder.CollectionPropertyHandler

Parameters:
feed - the feed containing the data to use to create the propfind response
propfindXml - the propfind xml request to create the response for
depthStr - the value of the Depth header
Returns:
a response to the profind request
Throws:
IOException

propfind

public javax.ws.rs.core.Response propfind(SyndFeed feed,
                                          String propfindXml,
                                          String depthStr,
                                          WebDAVResponseBuilder.CollectionPropertyHandler provider)
                                   throws IOException
Process the PROPFIND request for the given collection resource and create a response.

Parameters:
feed - the feed containing the data to use to create the propfind response
propfindXml - the propfind xml request to create the response for
depthStr - the value of the Depth header
provider - a CollectionPropertyProvider that will be used to retrieve the values of properties for the response
Returns:
a response to the profind request
Throws:
IOException


Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.