public abstract class AbstractWebFilter extends Object implements org.springframework.web.server.WebFilter
| 构造器和说明 |
|---|
AbstractWebFilter() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract reactor.core.publisher.Mono<Void> |
doDenyResponse(org.springframework.web.server.ServerWebExchange exchange)
this is Template Method ,children Implement your own And response client.
|
protected abstract reactor.core.publisher.Mono<Boolean> |
doFilter(org.springframework.web.server.ServerWebExchange exchange,
org.springframework.web.server.WebFilterChain chain)
this is Template Method ,children Implement your own filtering logic.
|
reactor.core.publisher.Mono<Void> |
filter(org.springframework.web.server.ServerWebExchange exchange,
org.springframework.web.server.WebFilterChain chain) |
public reactor.core.publisher.Mono<Void> filter(org.springframework.web.server.ServerWebExchange exchange, org.springframework.web.server.WebFilterChain chain)
filter 在接口中 org.springframework.web.server.WebFilterprotected abstract reactor.core.publisher.Mono<Boolean> doFilter(org.springframework.web.server.ServerWebExchange exchange, org.springframework.web.server.WebFilterChain chain)
exchange - the current server exchangechain - provides a way to delegate to the next filterMono<Boolean> result:TRUE (is pass),and flow next filter;FALSE (is not pass) execute doDenyResponse(ServerWebExchange exchange)protected abstract reactor.core.publisher.Mono<Void> doDenyResponse(org.springframework.web.server.ServerWebExchange exchange)
exchange - the current server exchange.Mono<Void> response msg.Copyright © 2019 dromara. All rights reserved.