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

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


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

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

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

diff --git a/java/jakarta/servlet/http/HttpServletRequest.java 
b/java/jakarta/servlet/http/HttpServletRequest.java
index daff471fb7..4b7e183f15 100644
--- a/java/jakarta/servlet/http/HttpServletRequest.java
+++ b/java/jakarta/servlet/http/HttpServletRequest.java
@@ -297,8 +297,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>
@@ -320,7 +320,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