You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Suresh Rao Ambarkar <sa...@boniva.com> on 2005/03/02 14:58:33 UTC

regarding WebdavResource(HttpURL,action,depth)

Hi all,

I am new to WebDAV development in the slide content management system.

we can create new webdav resource by using

WebdavResource(HttpURL httpURL, int action, int depth) constructor.

Here, what is the significance of action and depth? how can we set these
values.

Actually, I created webdav resource like this:

WebdavResource wdr = new WebdavResource(httpURL,0,1);

But here, I am trying to list the files by using

wdr.list();

Here I am not able to access the list() method.

Please solve my problem.

Thanks & Regards,
Suresh.


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: regarding WebdavResource(HttpURL,action,depth)

Posted by Da...@inventivedesigners.com.
> we can create new webdav resource by using
> WebdavResource(HttpURL httpURL, int action, int depth) constructor.
> Here, what is the significance of action and depth? how can we set these
> values.

action: the action to set properties of this resource:

WebdavResource.NOACTION: No action to find properties for this resource.
WebdavResource.NAME: The action setting only the displayname for this 
resource.
WebdavResource.BASIC: The action setting the basic properties for this 
resource.
WebdavResource.DEFAULT: The action setting the default DAV properties for 
this resource.
WebdavResource.ALL: The action setting the all properties for this 
resource.

If you specify NOACTION, the webdav resource is not consulted when you 
call the constructor. When ALL is specified, all properties are retrieved 
from the resource, so the resource is contacted (so it must exist).

depth: The depth to find properties. The values of DepthSupport.DEPTH_0, 
DepthSupport.DEPTH_1, DepthSupport.DEPTH_INFINITY is possbile for the 
depth. 
If depth is 0, only the requested properties of the resource are returned. 
When it is 1, the requested props of the resource and its direct children 
are returned. When infinite depth is requested, the requested properties 
of the resource and all its descendants are returned.

> Actually, I created webdav resource like this:
> WebdavResource wdr = new WebdavResource(httpURL,0,1);
> But here, I am trying to list the files by using
> wdr.list();
I don't know what you're trying to do, but if you want to use the 
retrieved children, you can better use the wdr.getChildResources() method.

> Here I am not able to access the list() method.
How do you mean? It's a public method...

David.


--------------------------------------------------
Inventive Designers' Email Disclaimer:

http://www.inventivedesigners.com/email-disclaimer

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org