类 DefaultWebFilterChain
- java.lang.Object
- org.springframework.web.server.handler.DefaultWebFilterChain
- 所有已实现的接口:
WebFilterChain
public class DefaultWebFilterChain extends Object implements WebFilterChain
Default implementation ofWebFilterChain
.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.
- 从以下版本开始:
- 5.0
- 作者:
- Rossen Stoyanchev
构造器概要
构造器 构造器 说明 DefaultWebFilterChain(WebHandler handler, List<WebFilter> filters)
Public constructor with the list of filters and the target handler to use.DefaultWebFilterChain(WebHandler handler, WebFilter... filters)
已过时。as of 5.1 this constructor is deprecated in favor ofDefaultWebFilterChain(WebHandler, List)
.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 reactor.core.publisher.Mono<Void>
filter(ServerWebExchange exchange)
Delegate to the nextWebFilter
in the chain.List<WebFilter>
getFilters()
WebHandler
getHandler()
构造器详细资料
DefaultWebFilterChain
public DefaultWebFilterChain(WebHandler handler, List<WebFilter> filters)
Public constructor with the list of filters and the target handler to use.- 参数:
handler
- the target handlerfilters
- the filters ahead of the handler- 从以下版本开始:
- 5.1
DefaultWebFilterChain
@Deprecated public DefaultWebFilterChain(WebHandler handler, WebFilter... filters)
已过时。as of 5.1 this constructor is deprecated in favor ofDefaultWebFilterChain(WebHandler, List)
.Public constructor with the list of filters and the target handler to use.- 参数:
handler
- the target handlerfilters
- the filters ahead of the handler
方法详细资料
getFilters
public List<WebFilter> getFilters()
getHandler
public WebHandler getHandler()
filter
public reactor.core.publisher.Mono<Void> filter(ServerWebExchange exchange)
从接口复制的说明:WebFilterChain
Delegate to the nextWebFilter
in the chain.- 指定者:
filter
在接口中WebFilterChain
- 参数:
exchange
- the current server exchange- 返回:
Mono<Void>
to indicate when request handling is complete