Class ExchangeMatcherRedirectWebFilter
- java.lang.Object
-
- org.springframework.security.web.server.ExchangeMatcherRedirectWebFilter
-
- All Implemented Interfaces:
org.springframework.web.server.WebFilter
public final class ExchangeMatcherRedirectWebFilter extends java.lang.Object implements org.springframework.web.server.WebFilter
Web filter that redirects requests that matchServerWebExchangeMatcher
to the specified URL.- Since:
- 5.6
-
-
Constructor Summary
Constructors Constructor Description ExchangeMatcherRedirectWebFilter(ServerWebExchangeMatcher exchangeMatcher, java.lang.String redirectUrl)
Create and initialize an instance of the web filter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<java.lang.Void>
filter(org.springframework.web.server.ServerWebExchange exchange, org.springframework.web.server.WebFilterChain chain)
-
-
-
Constructor Detail
-
ExchangeMatcherRedirectWebFilter
public ExchangeMatcherRedirectWebFilter(ServerWebExchangeMatcher exchangeMatcher, java.lang.String redirectUrl)
Create and initialize an instance of the web filter.- Parameters:
exchangeMatcher
- the exchange matcherredirectUrl
- the redirect URL
-
-