int depth)
throws HttpException, IOException {
setClient();
// Default depth=0, type=by_name
ReportMethod method = new ReportMethod(httpURL.getEscapedPath(), depth,
properties.elements());
client.executeMethod(method);
/*first draft, does work anyhow
Enumeration results = method.getAllResponseURLs();
return results;*/
/* Enumeration responses = method.getResponses();
ResponseEntity response = (ResponseEntity) responses.nextElement();
String href = (String) response.getHref();
Enumeration results = method.getResponseProperties(href);
return results;*/
Vector results = new Vector();
Enumeration responses = method.getResponses();
while (responses.hasMoreElements()) {
ResponseEntity response = (ResponseEntity) responses.nextElement();
String href = response.getHref();
String sResult = href;
// Set status code for this resource.
if ((thisResource == true) && (response.getStatusCode() > 0))
setStatusCode(response.getStatusCode());
thisResource = false;
Enumeration responseProperties = method.getResponseProperties(href);
while (responseProperties.hasMoreElements()) {
Property property = (Property) responseProperties.nextElement();
sResult += "\n" + property.getName() + ":\t" +
DOMUtils.getTextValue(property.getElement());
// results.addElement(DOMUtils.getTextValue(property.getElement()));