Class 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 match ServerWebExchangeMatcher to the specified URL.
    Since:
    5.6
    • 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)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExchangeMatcherRedirectWebFilter

        public ExchangeMatcherRedirectWebFilter​(ServerWebExchangeMatcher exchangeMatcher,
                                                java.lang.String redirectUrl)
        Create and initialize an instance of the web filter.
        Parameters:
        exchangeMatcher - the exchange matcher
        redirectUrl - the redirect URL
    • Method Detail

      • filter

        public reactor.core.publisher.Mono<java.lang.Void> filter​(org.springframework.web.server.ServerWebExchange exchange,
                                                                  org.springframework.web.server.WebFilterChain chain)
        Specified by:
        filter in interface org.springframework.web.server.WebFilter