You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2003/01/29 13:49:32 UTC
cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina HttpRequest.java
remm 2003/01/29 04:49:32
Modified: catalina/src/share/org/apache/catalina HttpRequest.java
Log:
- Add access to memory efficient buffers, as was mentioned over the
past months. This allows manipulating the various paths available in the request.
- Similar accessors will be added for headers, etc.
Revision Changes Path
1.2 +38 -4 jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/HttpRequest.java
Index: HttpRequest.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/HttpRequest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- HttpRequest.java 18 Jul 2002 16:47:37 -0000 1.1
+++ HttpRequest.java 29 Jan 2003 12:49:32 -0000 1.2
@@ -67,8 +67,10 @@
import java.security.Principal;
import java.util.Locale;
+
import javax.servlet.http.Cookie;
+import org.apache.tomcat.util.buf.MessageBytes;
/**
* An <b>HttpRequest</b> is the Catalina internal facade for an
@@ -157,6 +159,14 @@
/**
+ * Get the context path.
+ *
+ * @return the context path
+ */
+ public MessageBytes getContextPathMB();
+
+
+ /**
* Set the context path for this Request. This will normally be called
* when the associated Context is mapping the Request to a particular
* Wrapper.
@@ -184,6 +194,14 @@
/**
+ * Get the path info.
+ *
+ * @return the path info
+ */
+ public MessageBytes getPathInfoMB();
+
+
+ /**
* Set the path information for this Request. This will normally be called
* when the associated Context is mapping the Request to a particular
* Wrapper.
@@ -245,6 +263,22 @@
* @return the URL decoded request URI
*/
public String getDecodedRequestURI();
+
+
+ /**
+ * Get the decoded request URI.
+ *
+ * @return the URL decoded request URI
+ */
+ public MessageBytes getDecodedRequestURIMB();
+
+
+ /**
+ * Get the servlet path.
+ *
+ * @return the servlet path
+ */
+ public MessageBytes getServletPathMB();
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org