File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
spring-web/src/main/java/org/springframework/web/filter/reactive Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 20
20
import java .util .Collections ;
21
21
import java .util .Locale ;
22
22
import java .util .Set ;
23
- import javax .servlet .http .HttpServletRequest ;
24
23
25
24
import reactor .core .publisher .Mono ;
26
25
34
33
import org .springframework .web .util .UriComponentsBuilder ;
35
34
36
35
/**
37
- * Extract values from "Forwarded" and "X-Forwarded-*" headers in order to wrap
38
- * and override the following from the request and response:
39
- * {@link HttpServletRequest#getServerName() getServerName()},
40
- * {@link HttpServletRequest#getServerPort() getServerPort()},
41
- * {@link HttpServletRequest#getScheme() getScheme()},
42
- * {@link HttpServletRequest#isSecure() isSecure()}, and
43
- * {@link HttpServletResponse#sendRedirect(String) sendRedirect(String)}.
44
- * In effect the wrapped request and response reflect the client-originated
36
+ * Extract values from "Forwarded" and "X-Forwarded-*" headers in order to change
37
+ * and override {@link ServerHttpRequest#getURI()}.
38
+ * In effect the request URI will reflect the client-originated
45
39
* protocol and address.
46
40
*
47
41
* <p><strong>Note:</strong> This filter can also be used in a
You can’t perform that action at this time.
0 commit comments