> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to