public abstract class AbstractWebFilter extends Object implements org.springframework.web.server.WebFilter
| Constructor and Description |
|---|
AbstractWebFilter() |
| Modifier and Type | Method and Description |
|---|---|
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) |
@NonNull public reactor.core.publisher.Mono<Void> filter(@NonNull org.springframework.web.server.ServerWebExchange exchange, @NonNull org.springframework.web.server.WebFilterChain chain)
filter in interface 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 © 2021 The Apache Software Foundation. All rights reserved.