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 re...@apache.org on 2001/04/18 20:10:36 UTC
cvs commit: jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods PutMethod.java WebdavMethod.java WebdavMethodBase.java
remm 01/04/18 11:10:36
Modified: src/webdav/client/src/org/apache/webdav/lib/methods
PutMethod.java WebdavMethod.java
WebdavMethodBase.java
Log:
- Add new needExpectation() flag, which indicates that the method should
wait for a 100 status before sending its body.
Revision Changes Path
1.9 +13 -3 jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/PutMethod.java
Index: PutMethod.java
===================================================================
RCS file: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/PutMethod.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- PutMethod.java 2001/04/03 10:32:46 1.8
+++ PutMethod.java 2001/04/18 18:10:32 1.9
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/PutMethod.java,v 1.8 2001/04/03 10:32:46 juergen Exp $
- * $Revision: 1.8 $
- * $Date: 2001/04/03 10:32:46 $
+ * $Header: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/PutMethod.java,v 1.9 2001/04/18 18:10:32 remm Exp $
+ * $Revision: 1.9 $
+ * $Date: 2001/04/18 18:10:32 $
*
* ====================================================================
*
@@ -269,4 +269,14 @@
}
+ /**
+ * Return true if the method should ask for an expectation.
+ *
+ * @return true if an expectation will be sent
+ */
+ public boolean needExpectation() {
+ return true;
+ }
+
+
}
1.10 +11 -3 jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/WebdavMethod.java
Index: WebdavMethod.java
===================================================================
RCS file: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/WebdavMethod.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- WebdavMethod.java 2001/03/14 05:29:02 1.9
+++ WebdavMethod.java 2001/04/18 18:10:33 1.10
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/WebdavMethod.java,v 1.9 2001/03/14 05:29:02 remm Exp $
- * $Revision: 1.9 $
- * $Date: 2001/03/14 05:29:02 $
+ * $Header: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/WebdavMethod.java,v 1.10 2001/04/18 18:10:33 remm Exp $
+ * $Revision: 1.10 $
+ * $Date: 2001/04/18 18:10:33 $
*
* ====================================================================
*
@@ -330,6 +330,14 @@
* @return true if a content-length header will be expected by the server
*/
public boolean needContentLength();
+
+
+ /**
+ * Return true if the method should ask for an expectation.
+ *
+ * @return true if an expectation will be sent
+ */
+ public boolean needExpectation();
}
1.29 +13 -3 jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/WebdavMethodBase.java
Index: WebdavMethodBase.java
===================================================================
RCS file: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/WebdavMethodBase.java,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- WebdavMethodBase.java 2001/04/13 08:04:38 1.28
+++ WebdavMethodBase.java 2001/04/18 18:10:34 1.29
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/WebdavMethodBase.java,v 1.28 2001/04/13 08:04:38 remm Exp $
- * $Revision: 1.28 $
- * $Date: 2001/04/13 08:04:38 $
+ * $Header: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/WebdavMethodBase.java,v 1.29 2001/04/18 18:10:34 remm Exp $
+ * $Revision: 1.29 $
+ * $Date: 2001/04/18 18:10:34 $
*
* ====================================================================
*
@@ -557,6 +557,16 @@
*/
public boolean needContentLength() {
return true;
+ }
+
+
+ /**
+ * Return true if the method should ask for an expectation.
+ *
+ * @return true if an expectation will be sent
+ */
+ public boolean needExpectation() {
+ return false;
}