The Wiki is pretty helpful.

This document explains how to create a WebdavResource, which represents
a folder or document in your repository:
<http://wiki.apache.org/jakarta-slide/CreateWebDavResource>

Once you have this, you can do all kinds of things. Like I said, if all
you wan to do is get the child resources, you can simply call
listWebdavResources() on this object, which internally uses a PROPFIND.

If you need to explicitly invoke a PROPFIND, for example in order to
return non-standard properties or to return resources that are more than
1 level below your folder, you can call one of the propFind() methods on
your WebdavResource.

Alternatively, you can also bypass the WebdavResource entirely and
manually create a PropFindMethod object with the appropriate properties.
In this case, your code will look similar to:

<http://wiki.apache.org/jakarta-slide/DASLSearch>

This example is for a DASL search, but the way you invoke your method
would be pretty much the same. Disregard the actual query syntax, of
course.

-Mirko


On Mon, 2004-11-15 at 11:34, Phillip Rhodes wrote:

> That solution sounds like the best way to go.  Is anyone anywhere of a 
> example program that does a PROPFIND operation?
> 
> Since I am new to this, it would be hard to pull a working program just 
> using the javadocs.
> Thanks.


Reply via email to