You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ma...@apache.org on 2002/02/22 20:15:54 UTC
cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient HttpMethod.java
marcsaeg 02/02/22 11:15:54
Modified: httpclient/src/java/org/apache/commons/httpclient
HttpMethod.java
Log:
Added setStrictMode() and getStringMode(). The strict mode code is
still experimental, but since it is currently only available through
HttpMultiClient it won't impact existing code.
Revision Changes Path
1.12 +24 -4 jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethod.java
Index: HttpMethod.java
===================================================================
RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethod.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- HttpMethod.java 18 Jan 2002 20:17:40 -0000 1.11
+++ HttpMethod.java 22 Feb 2002 19:15:54 -0000 1.12
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethod.java,v 1.11 2002/01/18 20:17:40 morgand Exp $
- * $Revision: 1.11 $
- * $Date: 2002/01/18 20:17:40 $
+ * $Header: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethod.java,v 1.12 2002/02/22 19:15:54 marcsaeg Exp $
+ * $Revision: 1.12 $
+ * $Date: 2002/02/22 19:15:54 $
* ====================================================================
*
* The Apache Software License, Version 1.1
@@ -74,7 +74,7 @@
* </p>
* @author <a href="mailto:remm@apache.org">Remy Maucherat</a>
* @author Rod Waldhoff
- * @version $Revision: 1.11 $ $Date: 2002/01/18 20:17:40 $
+ * @version $Revision: 1.12 $ $Date: 2002/02/22 19:15:54 $
*/
public interface HttpMethod {
@@ -105,6 +105,26 @@
*/
public String getPath();
+ /**
+ * Turns strict mode on or off. In strict mode (the default)
+ * we following the letter of RFC 2616, the Http 1.1 specification.
+ * If strict mode is turned off we attempt to violate the specification
+ * in the same way that most Http user agent's do (and many HTTP servers
+ * expect.
+ *
+ * NOTE: StrictMode is currently experimental and its functionlaity may change in the future.
+ */
+ public void setStrictMode(boolean strictMode);
+
+ /**
+ * Returns the value of strictMode.
+ *
+ * NOTE: StrictMode is currently experimental and its functionlaity may change in the future.
+ *
+ * @return true if strict mode is enabled.
+ */
+ public boolean isStrictMode();
+
/**
* Set the specified request header, overwriting any
* previous value.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>