Class FilteringWebHandler

java.lang.Object
org.springframework.cloud.gateway.handler.FilteringWebHandler
All Implemented Interfaces:
EventListener, org.springframework.context.ApplicationListener<RefreshRoutesEvent>, org.springframework.web.server.WebHandler

public class FilteringWebHandler extends Object implements org.springframework.web.server.WebHandler, org.springframework.context.ApplicationListener<RefreshRoutesEvent>
WebHandler that delegates to a chain of GlobalFilter instances and GatewayFilterFactory instances then to the target WebHandler.
Since:
0.1
Author:
Rossen Stoyanchev, Spencer Gibb, Yuxin Wang
  • Field Details

    • logger

      protected static final org.apache.commons.logging.Log logger
  • Constructor Details

    • FilteringWebHandler

      public FilteringWebHandler(List<GlobalFilter> globalFilters, boolean routeFilterCacheEnabled)
  • Method Details

    • onApplicationEvent

      public void onApplicationEvent(RefreshRoutesEvent event)
      Specified by:
      onApplicationEvent in interface org.springframework.context.ApplicationListener<RefreshRoutesEvent>
    • handle

      public reactor.core.publisher.Mono<Void> handle(org.springframework.web.server.ServerWebExchange exchange)
      Specified by:
      handle in interface org.springframework.web.server.WebHandler
    • getCombinedFilters

      protected List<GatewayFilter> getCombinedFilters(Route route)
    • getAllFilters

      protected List<GatewayFilter> getAllFilters(Route route)