接口 WebFilter
- 所有已知实现类:
CorsWebFilter
,ForwardedHeaderFilter
,HiddenHttpMethodFilter
,ServerWebExchangeContextFilter
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.- 从以下版本开始:
- 5.0
- 作者:
- Rossen Stoyanchev
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 reactor.core.publisher.Mono<Void>
filter(ServerWebExchange exchange, WebFilterChain chain)
Process the Web request and (optionally) delegate to the nextWebFilter
through the givenWebFilterChain
.
方法详细资料
filter
reactor.core.publisher.Mono<Void> filter(ServerWebExchange exchange, WebFilterChain chain)
Process the Web request and (optionally) delegate to the nextWebFilter
through the givenWebFilterChain
.- 参数:
exchange
- the current server exchangechain
- provides a way to delegate to the next filter- 返回:
Mono<Void>
to indicate when request processing is complete