@Filter(value={"${endpoints.all.path:/}${endpoints.health.id:health}","${endpoints.all.path:/}${endpoints.health.id:health}/liveness","${endpoints.all.path:/}${endpoints.health.id:health}/readiness"}) @Requires(beans=HealthEndpoint.class) public class HealthResultFilter extends OncePerRequestHttpServerFilter
HealthEndpoint
and returns an appropriate HTTP status code.| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_MAPPING
Configurable default mapping for filter.
|
static String |
LIVENESS_PROBE_MAPPING |
static String |
READINESS_PROBE_MAPPING |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Modifier | Constructor and Description |
|---|---|
protected |
HealthResultFilter(HealthEndpoint healthEndpoint)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected Publisher<MutableHttpResponse<?>> |
doFilterOnce(HttpRequest<?> request,
ServerFilterChain chain) |
doFilter, getKeyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdoFilterpublic static final String DEFAULT_MAPPING
public static final String LIVENESS_PROBE_MAPPING
public static final String READINESS_PROBE_MAPPING
protected HealthResultFilter(HealthEndpoint healthEndpoint)
healthEndpoint - The health endpointprotected Publisher<MutableHttpResponse<?>> doFilterOnce(HttpRequest<?> request, ServerFilterChain chain)
doFilterOnce in class OncePerRequestHttpServerFilterrequest - The HttpRequest instancechain - The ServerFilterChain instancePublisher for the Http response