package
org
.
springframework
.
web
.
server
;
import
reactor
.
core
.
publisher
.
Mono
;
* 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.
* <p>Consider using {@code org.springframework.web.server.CoWebFilter} with
* @author Rossen Stoyanchev
public
interface
WebFilter
{
* Process the Web request and (optionally) delegate to the next
* {@code WebFilter} through the given {@link WebFilterChain}.
* @param exchange the current server exchange
* @param chain provides a way to delegate to the next filter
* @return {@code Mono<Void>} to indicate when request processing is complete
Mono
<
Void
>
filter
(
ServerWebExchange
exchange
,
WebFilterChain
chain
);