Interface webFilter
- All Known Implementing Classes:
CorswebFilter, HiddenHttpMethodFilter, PreFlightRequestwebFilter, ServerwebExchangeContextFilter, UrlHandlerFilter
public interface webFilter
Contract for interception-style, chained processing of web requests that may
be used to implement cross-cutting, application-agnostic requirements such
as security, timeouts, and others.
Consider using org.springframework.web.server.CowebFilter with
Kotlin Coroutines.
- Since:
- 5.0
- Author:
- Rossen Stoyanchev
-
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void> filter(ServerwebExchange exchange, webFilterChain chain) Process the web request and (optionally) delegate to the nextwebFilterthrough the givenwebFilterChain.
-
Method Details
-
filter
Process the web request and (optionally) delegate to the nextwebFilterthrough the givenwebFilterChain.- Parameters:
exchange- the current server exchangechain- provides a way to delegate to the next filter- Returns:
Mono<Void>to indicate when request processing is complete
-