diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/support/ServletUriComponentsBuilder.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/support/ServletUriComponentsBuilder.java index 2d6923a520..0cd5a307ba 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/support/ServletUriComponentsBuilder.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/support/ServletUriComponentsBuilder.java @@ -76,8 +76,7 @@ public class ServletUriComponentsBuilder extends UriComponentsBuilder { /** * Prepare a builder from the host, port, scheme, and context path of the * given HttpServletRequest. - * - *
Note: as of 5.1 this method ignores + *
Note: As of 5.1, this method ignores * {@code "Forwarded"} and {@code "X-Forwarded-*"} headers that specify the * client-originated address. Consider using the {@code ForwardedHeaderFilter} * to extract and use, or to discard such headers. @@ -95,8 +94,7 @@ public class ServletUriComponentsBuilder extends UriComponentsBuilder { * will end with "/main". If the servlet is mapped otherwise, e.g. * {@code "/"} or {@code "*.do"}, the result will be the same as * if calling {@link #fromContextPath(HttpServletRequest)}. - * - *
Note: as of 5.1 this method ignores + *
Note: As of 5.1, this method ignores * {@code "Forwarded"} and {@code "X-Forwarded-*"} headers that specify the * client-originated address. Consider using the {@code ForwardedHeaderFilter} * to extract and use, or to discard such headers. @@ -112,8 +110,7 @@ public class ServletUriComponentsBuilder extends UriComponentsBuilder { /** * Prepare a builder from the host, port, scheme, and path (but not the query) * of the HttpServletRequest. - * - *
Note: as of 5.1 this method ignores + *
Note: As of 5.1, this method ignores * {@code "Forwarded"} and {@code "X-Forwarded-*"} headers that specify the * client-originated address. Consider using the {@code ForwardedHeaderFilter} * to extract and use, or to discard such headers. @@ -127,8 +124,7 @@ public class ServletUriComponentsBuilder extends UriComponentsBuilder { /** * Prepare a builder by copying the scheme, host, port, path, and * query string of an HttpServletRequest. - * - *
Note: as of 5.1 this method ignores + *
Note: As of 5.1, this method ignores * {@code "Forwarded"} and {@code "X-Forwarded-*"} headers that specify the * client-originated address. Consider using the {@code ForwardedHeaderFilter} * to extract and use, or to discard such headers. @@ -163,10 +159,8 @@ public class ServletUriComponentsBuilder extends UriComponentsBuilder { /** * Same as {@link #fromContextPath(HttpServletRequest)} except the * request is obtained through {@link RequestContextHolder}. - * *
Note: This method extracts values from "Forwarded" * and "X-Forwarded-*" headers if found. See class-level docs. - * *
As of 4.3.15, this method replaces the contextPath with the value * of "X-Forwarded-Prefix" rather than prepending, thus aligning with * {@code ForwardedHeaderFilter}. @@ -178,10 +172,8 @@ public class ServletUriComponentsBuilder extends UriComponentsBuilder { /** * Same as {@link #fromServletMapping(HttpServletRequest)} except the * request is obtained through {@link RequestContextHolder}. - * *
Note: This method extracts values from "Forwarded" * and "X-Forwarded-*" headers if found. See class-level docs. - * *
As of 4.3.15, this method replaces the contextPath with the value * of "X-Forwarded-Prefix" rather than prepending, thus aligning with * {@code ForwardedHeaderFilter}. @@ -193,10 +185,8 @@ public class ServletUriComponentsBuilder extends UriComponentsBuilder { /** * Same as {@link #fromRequestUri(HttpServletRequest)} except the * request is obtained through {@link RequestContextHolder}. - * *
Note: This method extracts values from "Forwarded" * and "X-Forwarded-*" headers if found. See class-level docs. - * *
As of 4.3.15, this method replaces the contextPath with the value * of "X-Forwarded-Prefix" rather than prepending, thus aligning with * {@code ForwardedHeaderFilter}. @@ -208,10 +198,8 @@ public class ServletUriComponentsBuilder extends UriComponentsBuilder { /** * Same as {@link #fromRequest(HttpServletRequest)} except the * request is obtained through {@link RequestContextHolder}. - * *
Note: This method extracts values from "Forwarded" * and "X-Forwarded-*" headers if found. See class-level docs. - * *
As of 4.3.15, this method replaces the contextPath with the value * of "X-Forwarded-Prefix" rather than prepending, thus aligning with * {@code ForwardedHeaderFilter}.