public final class HealthFilter extends AbstractWebFilter
| 构造器和说明 |
|---|
HealthFilter(org.springframework.web.reactive.DispatcherHandler dispatcherHandler,
java.util.List<java.lang.String> paths)
Instantiates a new Health filter.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected reactor.core.publisher.Mono<java.lang.Void> |
doFilter(org.springframework.web.server.ServerWebExchange exchange)
this is Template Method ,children Implement your own And response client.
|
protected reactor.core.publisher.Mono<java.lang.Boolean> |
doMatcher(org.springframework.web.server.ServerWebExchange exchange,
org.springframework.web.server.WebFilterChain chain)
this is Template Method ,children Implement your own filtering logic.
|
filterpublic HealthFilter(org.springframework.web.reactive.DispatcherHandler dispatcherHandler,
java.util.List<java.lang.String> paths)
dispatcherHandler - the dispatcher handlerpaths - the pathsprotected reactor.core.publisher.Mono<java.lang.Boolean> doMatcher(org.springframework.web.server.ServerWebExchange exchange,
org.springframework.web.server.WebFilterChain chain)
AbstractWebFilterdoMatcher 在类中 AbstractWebFilterexchange - the current server exchangechain - provides a way to delegate to the next filterMono<Boolean> result:TRUE (is pass),and execute do filter;FALSE (is not pass) execute next filterprotected reactor.core.publisher.Mono<java.lang.Void> doFilter(org.springframework.web.server.ServerWebExchange exchange)
AbstractWebFilterdoFilter 在类中 AbstractWebFilterexchange - the current server exchange.Mono<Void> response msg.Copyright © 2026 The Apache Software Foundation. All rights reserved.