You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ki...@apache.org on 2002/08/01 02:05:58 UTC
cvs commit: jakarta-servletapi-5/src/share/javax/servlet/http HttpServletResponse.java
kinman 2002/07/31 17:05:58
Modified: src/share/javax/servlet/http HttpServletResponse.java
Log:
- Patch supplied by Bob Herrmann.
"The 2.4 Servlet spec adds a new constant. See section 15.1.5 in the June
24th public draft."
Revision Changes Path
1.2 +13 -0 jakarta-servletapi-5/src/share/javax/servlet/http/HttpServletResponse.java
Index: HttpServletResponse.java
===================================================================
RCS file: /home/cvs/jakarta-servletapi-5/src/share/javax/servlet/http/HttpServletResponse.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- HttpServletResponse.java 16 Jul 2002 16:38:41 -0000 1.1
+++ HttpServletResponse.java 1 Aug 2002 00:05:58 -0000 1.2
@@ -445,9 +445,22 @@
* Status code (302) indicating that the resource has temporarily
* moved to another location, but that future references should
* still use the original URI to access the resource.
+ *
+ * This definition is being retained for backwards compatibility.
+ * SC_FOUND is now the preferred definition.
*/
public static final int SC_MOVED_TEMPORARILY = 302;
+
+ /**
+ * Status code (302) indicating that the resource reside
+ * temporarily under a different URI. Since the redirection might
+ * be altered on occasion, the client should continue to use the
+ * Request-URI for future requests.(HTTP/1.1) To represent the
+ * status code (302), it is recommended to use this variable.
+ */
+
+ public static final int SC_FOUND = 302;
/**
* Status code (303) indicating that the response to the request
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>