Davide Rossi wrote:

> Believe it or not: getting the handle to slide is quite complex...
>
> I have to create a XML tree for a collection so that under a root node all
> the properties of the resources in the collection are collected.

Do you want to retrieve that XML using a http get on the collection?

> All in all is just matter of iterating throu the resources of the collection
> and getting the properties.
> Suppose that I want to do that directly in the service method of the
> WebdavServlet which is, in your opinion, the best way to go?

Let's assume a get method.
Take a look at my mail "Re: Webdav Servlet programming." from 10 aug.
That SimpleServlet is an example of how to extend the default WebDavServlet.

You want to change that displayDirectoryBrowsing method to generate xml.
Make the loop over the children recursive (Enumeration resources =
object.enumerateChildren(); )
and get the properties from the descriptor
(currentDescriptor.getProperties())
a NodeProperty has a name, namespace and value.

That's it...

> Ciao,
>     Davide.
> PS: the "How does the Slide servlet process an incoming WebDAV client
> request?" FAQ is a great resource. Some more detail here and there would be
> nice.

If you have a question, just ask...


Dirk


Reply via email to