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 ib...@apache.org on 2004/08/09 17:11:01 UTC
cvs commit: jakarta-slide/webdavclient/clientlib/src/java/org/apache/webdav/lib WebdavResource.java
ib 2004/08/09 08:11:01
Modified: webdavclient/clientlib/src/java/org/apache/webdav/lib
WebdavResource.java
Log:
- set existence to false for unbound resources
- add some little convenience methods
Revision Changes Path
1.29 +45 -5 jakarta-slide/webdavclient/clientlib/src/java/org/apache/webdav/lib/WebdavResource.java
Index: WebdavResource.java
===================================================================
RCS file: /home/cvs/jakarta-slide/webdavclient/clientlib/src/java/org/apache/webdav/lib/WebdavResource.java,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- WebdavResource.java 2 Aug 2004 15:45:49 -0000 1.28
+++ WebdavResource.java 9 Aug 2004 15:11:01 -0000 1.29
@@ -2244,6 +2244,18 @@
/**
+ * Return the <code>AclProperty</code> for the current resource
+ *
+ * @return acl property, null if the server doesn't respond with
+ * <code>AclProperty</code>
+ */
+ public AclProperty aclfindMethod() throws HttpException, IOException {
+ thisResource = true;
+ return aclfindMethod(httpURL.getPath());
+ }
+
+
+ /**
* Return the <code>AclProperty</code> for the resource at the given path
*
* @param path the server relative path of the resource to request
@@ -2298,6 +2310,19 @@
/**
+ * Get the <code>PrincipalCollectionSetProperty</code> for the current
+ * resource.
+ *
+ * @return principal collection set Property, null if the server doesn't
+ * respond with a <code>PrincipalCollectionSetProperty</code>
+ */
+ public PrincipalCollectionSetProperty principalCollectionSetFindMethod()
+ throws HttpException, IOException {
+ thisResource = true;
+ return principalCollectionSetFindMethod(httpURL.getPath());
+ }
+
+ /**
* Get the <code>PrincipalCollectionSetProperty</code> for the resource.
*
* @param path the server relative path of the resource to request
@@ -2350,13 +2375,23 @@
}
+ /**
+ * Return the LockDiscoveryProperty for the current resource
+ *
+ * @return null if the server doesn't respond with a LockDiscoveryProperty
+ */
+ public LockDiscoveryProperty lockDiscoveryPropertyFindMethod()
+ throws HttpException, IOException {
+ thisResource = true;
+ return lockDiscoveryPropertyFindMethod(httpURL.getPath());
+ }
/**
* Return the LockDiscoveryProperty for the resource at the given path
*
* @param path the server relative path of the resource to request
- * returns null if the server doesn't respond with a LockDiscoveryProperty
+ * @return null if the server doesn't respond with a LockDiscoveryProperty
*/
public LockDiscoveryProperty lockDiscoveryPropertyFindMethod(String path)
throws HttpException, IOException {
@@ -4945,7 +4980,12 @@
* @exception IOException
*/
public boolean unbindMethod() throws HttpException, IOException {
- return unbindMethod(httpURL.getPath());
+ boolean result = unbindMethod(httpURL.getPath());
+ if (result) {
+ setExistence(false);
+ }
+
+ return result;
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org