Class FilteringWebHandler
java.lang.Object
org.springframework.web.server.handler.WebHandlerDecorator
org.springframework.web.server.handler.FilteringWebHandler
- All Implemented Interfaces:
WebHandler
- Since:
- 5.0
- Author:
- Rossen Stoyanchev
-
Constructor Summary
ConstructorsConstructorDescriptionFilteringWebHandler(WebHandler handler, List<WebFilter> filters) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturn a read-only list of the configured filters.reactor.core.publisher.Mono<Void>handle(ServerWebExchange exchange) Handle the web server exchange.Methods inherited from class org.springframework.web.server.handler.WebHandlerDecorator
getDelegate, toString
-
Constructor Details
-
FilteringWebHandler
Constructor.- Parameters:
filters- the chain of filters
-
-
Method Details
-
getFilters
Return a read-only list of the configured filters. -
handle
Description copied from interface:WebHandlerHandle the web server exchange.- Specified by:
handlein interfaceWebHandler- Overrides:
handlein classWebHandlerDecorator- Parameters:
exchange- the current server exchange- Returns:
Mono<Void>to indicate when request handling is complete
-