use of org.apache.jackrabbit.webdav.client.methods.PropFindMethod in project lobcder by skoulouzis.
the class Utils method getProperty.
public MultiStatus getProperty(String resource, DavPropertyName propertyName, boolean mustExists) throws IOException, DavException {
DavPropertyNameSet commentNameSet1 = new DavPropertyNameSet();
commentNameSet1.add(propertyName);
PropFindMethod propFind = new PropFindMethod(resource, commentNameSet1, DavConstants.DEPTH_INFINITY);
int status = client.executeMethod(propFind);
if (mustExists) {
assertEquals(HttpStatus.SC_MULTI_STATUS, status);
}
return propFind.getResponseBodyAsMultiStatus();
}
Aggregations