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

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


The following commit(s) were added to refs/heads/main by this push:
     new f51315986b Correct Javadoc
f51315986b is described below

commit f51315986b0be36987cd43ed935fb9193f53b767
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 a325da05ce..2e680750d9 100644
--- a/java/jakarta/servlet/http/HttpServletRequest.java
+++ b/java/jakarta/servlet/http/HttpServletRequest.java
@@ -301,8 +301,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>
@@ -324,7 +324,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