Class FilteringwebHandler

java.lang.Object
org.springframework.web.server.handler.webHandlerDecorator
org.springframework.web.server.handler.FilteringwebHandler
All Implemented Interfaces:
webHandler

public class FilteringwebHandler extends webHandlerDecorator
webHandlerDecorator that invokes a chain of webFilters before invoking the delegate webHandler.
Since:
5.0
Author:
Rossen Stoyanchev
  • Constructor Details

    • FilteringwebHandler

      public FilteringwebHandler(webHandler handler, List<webFilter> filters)
      Constructor.
      Parameters:
      filters - the chain of filters
  • Method Details

    • getFilters

      public List<webFilter> getFilters()
      Return a read-only list of the configured filters.
    • handle

      public reactor.core.publisher.Mono<Void> handle(ServerwebExchange exchange)
      Description copied from interface: webHandler
      Handle the web server exchange.
      Specified by:
      handle in interface webHandler
      Overrides:
      handle in class webHandlerDecorator
      Parameters:
      exchange - the current server exchange
      Returns:
      Mono<Void> to indicate when request handling is complete