org.apache.wink.webdav.server
Class WebDAVResponseBuilder

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

public class WebDAVResponseBuilder
extends java.lang.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, java.lang.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, java.lang.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, java.lang.String propfindXml, java.lang.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, java.lang.String propfindXml, java.lang.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,
                                          java.lang.String propfindXml)
                                   throws java.io.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:
java.io.IOException

propfind

public javax.ws.rs.core.Response propfind(SyndEntry entry,
                                          java.lang.String propfindXml,
                                          WebDAVResponseBuilder.PropertyHandler handler)
                                   throws java.io.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:
java.io.IOException

propfind

public javax.ws.rs.core.Response propfind(SyndFeed feed,
                                          java.lang.String propfindXml,
                                          java.lang.String depthStr)
                                   throws java.io.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:
java.io.IOException

propfind

public javax.ws.rs.core.Response propfind(SyndFeed feed,
                                          java.lang.String propfindXml,
                                          java.lang.String depthStr,
                                          WebDAVResponseBuilder.CollectionPropertyHandler provider)
                                   throws java.io.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:
java.io.IOException


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