Ingo,Warwick
This works better, using the depth argument. I now get back a Vector of 12
ResponseEntity objects, but none of them is a Checked-out etc property. I
had prior to checking the properties successfully set the resource to
version controlled, and then did a checkout method. The properties I get
back are:
D:displayname, D:source, D:getlastmodified, D:getcontentlength,
D:resourcetype, D:getcontenttype, D:getcontentlanguage, D:creationdate,
D:lockdiscovery, D:supportedlock, D:modificationdate, D:getetag.
Perhaps I am querying the wrong method ? Code below:
WebdavResource wdr = this.getWDResource(remoteObject, "root", "root");
Enumeration props = wdr.propfindMethod(DepthSupport.DEPTH_INFINITY );
while (props.hasMoreElements())
{
ResponseEntity it = (ResponseEntity)props.nextElement();
Enumeration itemprops = it.getProperties();
while (itemprops != null && itemprops.hasMoreElements())
{
BaseProperty next = (BaseProperty) itemprops.nextElement();
String propName = next.getName();
}
}
Nick
-----Original Message-----
From: Ingo Brunberg [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 07, 2004 8:52 AM
To: [EMAIL PROTECTED]
Subject: Re: Using PropFind (Webdav) returns long empty string of blanks...
I would recommend to use the propfindMethod that takes an additional
depth argument. That won't return a Vector of Strings but a Vector of
Response elements. You can then examine these to see if they contain
the property you asked for.
Ingo
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]