Seeking java example querying slide
I want to connect to slide using a Java API and find out for a given folder, the contents within it (other folders and files). I would like to use slide as an image repository and create some a database record for each image that is found in the dav server. I was hoping someone can point me to a good example. Thanks very much. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Seeking java example querying slide
Phillip, Here is an example DASL query from the Wiki pages: http://wiki.apache.org/jakarta-slide/DASLSearch Someone else might know another way. Tim Phillip Rhodes wrote on 15/11/04 01:33 PM: I want to connect to slide using a Java API and find out for a given folder, the contents within it (other folders and files). I would like to use slide as an image repository and create some a database record for each image that is found in the dav server. I was hoping someone can point me to a good example. Thanks very much. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Seeking java example querying slide
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. Mirko Froehlich wrote: If all you want to do is enumerate the contents of a folder, a DASL search seems like overkill. A simple PROPFIND operation should suffice. If you use the Slide WebDAV client library, the easiest way to do this seems to be to call WebdavResource.listWebdavResources(), which returns an array of child resources. You can use isCollection() to distinguish between folders and documents. -Mirko On Mon, 2004-11-15 at 10:37, Tim Frank wrote: Phillip, Here is an example DASL query from the Wiki pages: http://wiki.apache.org/jakarta-slide/DASLSearch Someone else might know another way. Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Seeking java example querying slide
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.