mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 08:24:13 +00:00
Correct since tags
See gh-37090
This commit is contained in:
@@ -126,7 +126,7 @@ public class ForwardedHeaderFilter extends OncePerRequestFilter {
|
||||
* <p>"X-Forwarded-Prefix" is enabled separately via {@link #setUseForwardedPrefix}.
|
||||
* @param useStandardHeader whether to use the standard "Forwarded" header
|
||||
* (true), or the "X-Forwarded-*" alternative headers (false).
|
||||
* @since 7.0.9
|
||||
* @since 6.1.29
|
||||
*/
|
||||
public ForwardedHeaderFilter(boolean useStandardHeader) {
|
||||
this.useStandardHeader = useStandardHeader;
|
||||
@@ -136,7 +136,7 @@ public class ForwardedHeaderFilter extends OncePerRequestFilter {
|
||||
/**
|
||||
* Enable use of "X-Forwarded-Prefix" to determine the context path.
|
||||
* <p>By default, this is set to "false" in which case the header is ignored.
|
||||
* @since 7.1
|
||||
* @since 6.1.29
|
||||
*/
|
||||
public void setUseForwardedPrefix(boolean useForwardedPrefix) {
|
||||
this.useForwardedPrefix = useForwardedPrefix;
|
||||
|
||||
+2
-2
@@ -110,7 +110,7 @@ public class ForwardedHeaderTransformer implements Function<ServerHttpRequest, S
|
||||
* <p>"X-Forwarded-Prefix" is enabled separately via {@link #setUseForwardedPrefix}.
|
||||
* @param useStandardHeader whether to use the standard "Forwarded" header
|
||||
* (true), or the "X-Forwarded-*" alternative headers (false).
|
||||
* @since 7.0.9
|
||||
* @since 6.1.29
|
||||
*/
|
||||
public ForwardedHeaderTransformer(boolean useStandardHeader) {
|
||||
this.useStandardHeader = useStandardHeader;
|
||||
@@ -120,7 +120,7 @@ public class ForwardedHeaderTransformer implements Function<ServerHttpRequest, S
|
||||
/**
|
||||
* Enable use of "X-Forwarded-Prefix" to determine the context path.
|
||||
* <p>By default, this is set to "false" in which case the header is ignored.
|
||||
* @since 7.1
|
||||
* @since 6.1.29
|
||||
*/
|
||||
public void setUseForwardedPrefix(boolean useForwardedPrefix) {
|
||||
this.useForwardedPrefix = useForwardedPrefix;
|
||||
|
||||
@@ -65,7 +65,7 @@ public abstract class ForwardedHeaderUtils {
|
||||
* @param remoteAddress for a default port for the parsed "for" value
|
||||
* @param localAddress for a default port for the parsed "by" value
|
||||
* @return a {@link ForwardedInfo} with the parse results
|
||||
* @since 7.0.9
|
||||
* @since 6.1.29
|
||||
* @see <a href="https://tools.ietf.org/html/rfc7239">RFC 7239</a>
|
||||
*/
|
||||
public static ForwardedInfo parseStandardHeader(URI uri, HttpHeaders headers,
|
||||
@@ -167,7 +167,7 @@ public abstract class ForwardedHeaderUtils {
|
||||
* this argument is ignored currently and the byAddress is always {@code null}
|
||||
* @return a {@link ForwardedInfo} with the scheme, host, and port adapted
|
||||
* from the "X-Forwarded-*" headers, and the parsed "for" address
|
||||
* @since 7.0.9
|
||||
* @since 6.1.29
|
||||
*/
|
||||
public static ForwardedInfo parseXForwardedHeaders(URI uri, HttpHeaders headers,
|
||||
@Nullable InetSocketAddress remoteAddress, @Nullable InetSocketAddress localAddress) {
|
||||
@@ -339,7 +339,7 @@ public abstract class ForwardedHeaderUtils {
|
||||
/**
|
||||
* Container for the combined results of parsing either the "Forwarded"
|
||||
* header or the "X-Forwarded-*" alternative headers.
|
||||
* @since 7.1
|
||||
* @since 6.1.29
|
||||
* @param uriComponentsBuilder the request URI adapted with the scheme, host,
|
||||
* and port from forwarded header values
|
||||
* @param forAddress the address parsed from the "Forwarded" header "for" or
|
||||
|
||||
Reference in New Issue
Block a user