@@ -80,13 +80,11 @@ protected ServletUriComponentsBuilder(ServletUriComponentsBuilder other) {
80
80
/**
81
81
* Prepare a builder from the host, port, scheme, and context path of the
82
82
* given HttpServletRequest.
83
- *
84
83
* <p><strong>Note:</strong> This method extracts values from "Forwarded"
85
84
* and "X-Forwarded-*" headers if found. See class-level docs.
86
- *
87
85
* <p>As of 4.3.15, this method replaces the contextPath with the value
88
86
* of "X-Forwarded-Prefix" rather than prepending, thus aligning with
89
- * {@code ForwardedHeaderFiller }.
87
+ * {@code ForwardedHeaderFilter }.
90
88
*/
91
89
public static ServletUriComponentsBuilder fromContextPath (HttpServletRequest request ) {
92
90
ServletUriComponentsBuilder builder = initFromRequest (request );
@@ -102,13 +100,11 @@ public static ServletUriComponentsBuilder fromContextPath(HttpServletRequest req
102
100
* will end with "/main". If the servlet is mapped otherwise, e.g.
103
101
* {@code "/"} or {@code "*.do"}, the result will be the same as
104
102
* if calling {@link #fromContextPath(HttpServletRequest)}.
105
- *
106
103
* <p><strong>Note:</strong> This method extracts values from "Forwarded"
107
104
* and "X-Forwarded-*" headers if found. See class-level docs.
108
- *
109
105
* <p>As of 4.3.15, this method replaces the contextPath with the value
110
106
* of "X-Forwarded-Prefix" rather than prepending, thus aligning with
111
- * {@code ForwardedHeaderFiller }.
107
+ * {@code ForwardedHeaderFilter }.
112
108
*/
113
109
public static ServletUriComponentsBuilder fromServletMapping (HttpServletRequest request ) {
114
110
ServletUriComponentsBuilder builder = fromContextPath (request );
@@ -121,13 +117,11 @@ public static ServletUriComponentsBuilder fromServletMapping(HttpServletRequest
121
117
/**
122
118
* Prepare a builder from the host, port, scheme, and path (but not the query)
123
119
* of the HttpServletRequest.
124
- *
125
120
* <p><strong>Note:</strong> This method extracts values from "Forwarded"
126
121
* and "X-Forwarded-*" headers if found. See class-level docs.
127
- *
128
122
* <p>As of 4.3.15, this method replaces the contextPath with the value
129
123
* of "X-Forwarded-Prefix" rather than prepending, thus aligning with
130
- * {@code ForwardedHeaderFiller }.
124
+ * {@code ForwardedHeaderFilter }.
131
125
*/
132
126
public static ServletUriComponentsBuilder fromRequestUri (HttpServletRequest request ) {
133
127
ServletUriComponentsBuilder builder = initFromRequest (request );
@@ -138,13 +132,11 @@ public static ServletUriComponentsBuilder fromRequestUri(HttpServletRequest requ
138
132
/**
139
133
* Prepare a builder by copying the scheme, host, port, path, and
140
134
* query string of an HttpServletRequest.
141
- *
142
135
* <p><strong>Note:</strong> This method extracts values from "Forwarded"
143
136
* and "X-Forwarded-*" headers if found. See class-level docs.
144
- *
145
137
* <p>As of 4.3.15, this method replaces the contextPath with the value
146
138
* of "X-Forwarded-Prefix" rather than prepending, thus aligning with
147
- * {@code ForwardedHeaderFiller }.
139
+ * {@code ForwardedHeaderFilter }.
148
140
*/
149
141
public static ServletUriComponentsBuilder fromRequest (HttpServletRequest request ) {
150
142
ServletUriComponentsBuilder builder = initFromRequest (request );
@@ -209,13 +201,11 @@ private static String getRequestUriWithForwardedPrefix(HttpServletRequest reques
209
201
/**
210
202
* Same as {@link #fromContextPath(HttpServletRequest)} except the
211
203
* request is obtained through {@link RequestContextHolder}.
212
- *
213
204
* <p><strong>Note:</strong> This method extracts values from "Forwarded"
214
205
* and "X-Forwarded-*" headers if found. See class-level docs.
215
- *
216
206
* <p>As of 4.3.15, this method replaces the contextPath with the value
217
207
* of "X-Forwarded-Prefix" rather than prepending, thus aligning with
218
- * {@code ForwardedHeaderFiller }.
208
+ * {@code ForwardedHeaderFilter }.
219
209
*/
220
210
public static ServletUriComponentsBuilder fromCurrentContextPath () {
221
211
return fromContextPath (getCurrentRequest ());
@@ -224,13 +214,11 @@ public static ServletUriComponentsBuilder fromCurrentContextPath() {
224
214
/**
225
215
* Same as {@link #fromServletMapping(HttpServletRequest)} except the
226
216
* request is obtained through {@link RequestContextHolder}.
227
- *
228
217
* <p><strong>Note:</strong> This method extracts values from "Forwarded"
229
218
* and "X-Forwarded-*" headers if found. See class-level docs.
230
- *
231
219
* <p>As of 4.3.15, this method replaces the contextPath with the value
232
220
* of "X-Forwarded-Prefix" rather than prepending, thus aligning with
233
- * {@code ForwardedHeaderFiller }.
221
+ * {@code ForwardedHeaderFilter }.
234
222
*/
235
223
public static ServletUriComponentsBuilder fromCurrentServletMapping () {
236
224
return fromServletMapping (getCurrentRequest ());
@@ -239,13 +227,11 @@ public static ServletUriComponentsBuilder fromCurrentServletMapping() {
239
227
/**
240
228
* Same as {@link #fromRequestUri(HttpServletRequest)} except the
241
229
* request is obtained through {@link RequestContextHolder}.
242
- *
243
230
* <p><strong>Note:</strong> This method extracts values from "Forwarded"
244
231
* and "X-Forwarded-*" headers if found. See class-level docs.
245
- *
246
232
* <p>As of 4.3.15, this method replaces the contextPath with the value
247
233
* of "X-Forwarded-Prefix" rather than prepending, thus aligning with
248
- * {@code ForwardedHeaderFiller }.
234
+ * {@code ForwardedHeaderFilter }.
249
235
*/
250
236
public static ServletUriComponentsBuilder fromCurrentRequestUri () {
251
237
return fromRequestUri (getCurrentRequest ());
@@ -254,13 +240,11 @@ public static ServletUriComponentsBuilder fromCurrentRequestUri() {
254
240
/**
255
241
* Same as {@link #fromRequest(HttpServletRequest)} except the
256
242
* request is obtained through {@link RequestContextHolder}.
257
- *
258
243
* <p><strong>Note:</strong> This method extracts values from "Forwarded"
259
244
* and "X-Forwarded-*" headers if found. See class-level docs.
260
- *
261
245
* <p>As of 4.3.15, this method replaces the contextPath with the value
262
246
* of "X-Forwarded-Prefix" rather than prepending, thus aligning with
263
- * {@code ForwardedHeaderFiller }.
247
+ * {@code ForwardedHeaderFilter }.
264
248
*/
265
249
public static ServletUriComponentsBuilder fromCurrentRequest () {
266
250
return fromRequest (getCurrentRequest ());
0 commit comments