can get properties like this:
~~~~~~~~~~~~~~~~~~~~~~~
Vector props = new Vector();
props.add(new PropertyName ("DAV:", "owner"));
props.add(new PropertyName ("DAV:", "resourcetype"));
props.add(new PropertyName ("DAV:", "getcontentlength"));
props.add(new PropertyName ("DAV:", "getcontenttype"));
props.add(new PropertyName ("DAV:", "displayname"));
props.add(new PropertyName ("DAV:", "creationdate"));
props.add(new PropertyName ("DAV:", "getlastmodified"));

Enumeration enum = webdavResource.propfindMethod(path, DepthSupport.DEPTH_1,
props);
while (enum.hasMoreElements()) {
    ResponseEntity re = (ResponseEntity) enum.nextElement();
    System.out.println (re.getHref());

    Enumeration names = re.getProperties();
    while (names.hasMoreElements()) {
          Property a = (Property) names.nextElement();
          System.out.println (a.getLocalName()+"
"+a.getPropertyAsString());
    }
}
~~~~~~~~~~~~~~~~~~~~~~~

but it will be better if I can query individual property value by giving the
property name from the ResponseEntity, just like getting the href. For
example I want to know if the resource is a collection or not first.

is there a way doing this ?

Reply via email to