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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFilteringWebHandler(List<GlobalFilter> globalFilters, boolean routeFilterCacheEnabled) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<GatewayFilter> getAllFilters(Route route) protected List<GatewayFilter> getCombinedFilters(Route route) reactor.core.publisher.Mono<Void> handle(org.springframework.web.server.ServerWebExchange exchange) voidMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecution
-
Field Details
-
logger
protected static final org.apache.commons.logging.Log logger
-
-
Constructor Details
-
FilteringWebHandler
-
-
Method Details
-
onApplicationEvent
- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<RefreshRoutesEvent>
-
handle
public reactor.core.publisher.Mono<Void> handle(org.springframework.web.server.ServerWebExchange exchange) - Specified by:
handlein interfaceorg.springframework.web.server.WebHandler
-
getCombinedFilters
-
getAllFilters
-