You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by ms...@apache.org on 2002/09/02 09:58:31 UTC
cvs commit: jakarta-slide/src/webdav/client/src/org/apache/webdav/lib WebdavResource.java
msmith 2002/09/02 00:58:31
Modified: src/webdav/client/src/org/apache/webdav/lib
WebdavResource.java
Log:
Bugfixes for reportMethod() (was using the wrong request-uri, so catalina
was giving various errors)
Revision Changes Path
1.47 +20 -7 jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/WebdavResource.java
Index: WebdavResource.java
===================================================================
RCS file: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/WebdavResource.java,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -r1.46 -r1.47
--- WebdavResource.java 30 Aug 2002 04:19:15 -0000 1.46
+++ WebdavResource.java 2 Sep 2002 07:58:31 -0000 1.47
@@ -2610,7 +2610,7 @@
setClient();
// Default depth=0, type=by_name
ReportMethod method =
- new ReportMethod(httpURL.toString(), depth);
+ new ReportMethod(httpURL.getPath(), depth);
method.setDebug(debug);
client.executeMethod(method);
@@ -2640,6 +2640,19 @@
return results.elements();
}
+ public Enumeration reportMethod(HttpURL httpURL, Vector properties)
+
+ throws HttpException, IOException {
+ setClient();
+ // Default depth=0, type=by_name
+ ReportMethod method =
+ new ReportMethod(httpURL.getPath(), DepthSupport.DEPTH_0,
+ properties.elements());
+ method.setDebug(debug);
+ client.executeMethod(method);
+
+ return method.getResponses();
+ }
public Enumeration reportMethod(HttpURL httpURL, Vector properties,
int depth)
@@ -2648,7 +2661,7 @@
setClient();
// Default depth=0, type=by_name
ReportMethod method =
- new ReportMethod(httpURL.toString(), depth, properties.elements());
+ new ReportMethod(httpURL.getPath(), depth, properties.elements());
method.setDebug(debug);
client.executeMethod(method);
@@ -2698,7 +2711,7 @@
setClient();
// Default depth=0, type=by_name
ReportMethod method =
- new ReportMethod(httpURL.toString(), depth, properties.elements(),
+ new ReportMethod(httpURL.getPath(), depth, properties.elements(),
histUri.elements());
method.setDebug(debug);
client.executeMethod(method);
@@ -2734,7 +2747,7 @@
setClient();
// Default depth=0, type=by_name
ReportMethod method =
- new ReportMethod(httpURL.toString(), depth, sQuery);
+ new ReportMethod(httpURL.getPath(), depth, sQuery);
method.setDebug(debug);
client.executeMethod(method);
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>