Class DefaultWebFilterChain
java.lang.Object
org.springframework.web.server.handler.DefaultWebFilterChain
- All Implemented Interfaces:
WebFilterChain
Default implementation of
WebFilterChain
.
Each instance of this class represents one link in the chain. The public
constructor DefaultWebFilterChain(WebHandler, List)
initializes the full chain and represents its first link.
This class is immutable and thread-safe. It can be created once and re-used to handle request concurrently.
- Since:
- 5.0
- Author:
- Rossen Stoyanchev
-
Constructor Summary
ConstructorDescriptionDefaultWebFilterChain
(WebHandler handler, List<WebFilter> filters) Public constructor with the list of filters and the target handler to use. -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>
filter
(ServerWebExchange exchange) Delegate to the nextWebFilter
in the chain.
-
Constructor Details
-
DefaultWebFilterChain
Public constructor with the list of filters and the target handler to use.- Parameters:
handler
- the target handlerfilters
- the filters ahead of the handler- Since:
- 5.1
-
-
Method Details
-
getFilters
-
getHandler
-
filter
Description copied from interface:WebFilterChain
Delegate to the nextWebFilter
in the chain.- Specified by:
filter
in interfaceWebFilterChain
- Parameters:
exchange
- the current server exchange- Returns:
Mono<Void>
to indicate when request handling is complete
-