This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new c0cdab9c3b Correct Javadoc
c0cdab9c3b is described below

commit c0cdab9c3b8c20faa85285ce0b3bb48e9e60dd8a
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Thu May 8 11:58:04 2025 +0100

    Correct Javadoc
---
 java/javax/servlet/http/HttpServletRequest.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/java/javax/servlet/http/HttpServletRequest.java 
b/java/javax/servlet/http/HttpServletRequest.java
index b1dfdc2e07..bbeebcd20d 100644
--- a/java/javax/servlet/http/HttpServletRequest.java
+++ b/java/javax/servlet/http/HttpServletRequest.java
@@ -293,8 +293,8 @@ public interface HttpServletRequest extends ServletRequest {
     String getRequestedSessionId();
 
     /**
-     * Returns the part of this request's URL from the protocol name up to the 
query string in the first line of the
-     * HTTP request. The web container does not decode this String. For 
example:
+     * Returns the URI path part of this request's URL which starts after the 
authority (if any) and ends before the query
+     * string delimiter ({@code ?}), if any. The web container does not decode 
this String. For example:
      * <table>
      * <caption>Examples of Returned Values</caption>
      * <tr>
@@ -316,7 +316,7 @@ public interface HttpServletRequest extends ServletRequest {
      * <p>
      * To reconstruct a URL with a scheme and host, use {@link #getRequestURL}.
      *
-     * @return a <code>String</code> containing the part of the URL from the 
protocol name up to the query string
+     * @return a <code>String</code> containing the path part of the URL from 
after the authority to before the query string
      *
      * @see #getRequestURL
      */


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to