jericho 01/04/07 14:09:55
Modified: src/webdav/client/src/org/apache/webdav/util
WebdavResource.java
Log:
- To be parsed and transmitted the XML documents improved.
Some time soon, TODO commented will be added.
Revision Changes Path
1.31 +11 -10
jakarta-slide/src/webdav/client/src/org/apache/webdav/util/WebdavResource.java
Index: WebdavResource.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/util/WebdavResource.java,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- WebdavResource.java 2001/04/07 19:53:03 1.30
+++ WebdavResource.java 2001/04/07 21:09:54 1.31
@@ -1,7 +1,7 @@
/*
- * $Header:
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/util/WebdavResource.java,v
1.30 2001/04/07 19:53:03 jericho Exp $
- * $Revision: 1.30 $
- * $Date: 2001/04/07 19:53:03 $
+ * $Header:
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/util/WebdavResource.java,v
1.31 2001/04/07 21:09:54 jericho Exp $
+ * $Revision: 1.31 $
+ * $Date: 2001/04/07 21:09:54 $
*
* ====================================================================
*
@@ -387,10 +387,11 @@
* This method is fundamental for getting information of a collection.
*
* @param httpURL the parent http URL to get properties.
+ * @param depth The depth.
* @exception WebdavException
* @exception IOException The socket error with a server.
*/
- private void setAllProp(HttpURL httpURL)
+ private void setAllProp(HttpURL httpURL, int depth)
throws WebdavException, IOException {
// Basically, get resources with depth 1.
@@ -554,7 +555,7 @@
// make its existence false
setExistence(false);
if (action)
- setAllProp(httpURL);
+ setAllProp(httpURL, DepthSupport.DEPTH_0);
}
@@ -579,7 +580,7 @@
// make its existence false
setExistence(false);
if (action)
- setAllProp(this.httpURL);
+ setAllProp(this.httpURL, DepthSupport.DEPTH_0);
}
@@ -1157,8 +1158,8 @@
public String[] list()
throws WebdavException, IOException {
- // Make sure the refresh DAV properties.
- setHttpURL(httpURL);
+ // TODO: required to add the new method for XML reponse's load.
+ setAllProp(httpURL, DepthSupport.DEPTH_1);
Enumeration hrefs = children.getResourceNames();
// To be atomic.
@@ -1193,8 +1194,8 @@
public Vector listInDetail()
throws WebdavException, IOException {
- // Make sure the refresh DAV properties.
- setHttpURL(httpURL);
+ // TODO: required to add the new method for XML reponse's load.
+ setAllProp(httpURL, DepthSupport.DEPTH_1);
Enumeration hrefs = children.getResourceNames();
Vector hrefList = new Vector();