Class HealthResultFilter
- java.lang.Object
-
- io.micronaut.http.filter.OncePerRequestHttpServerFilter
-
- io.micronaut.management.endpoint.health.filter.HealthResultFilter
-
- All Implemented Interfaces:
io.micronaut.core.order.Ordered,io.micronaut.http.filter.HttpFilter,io.micronaut.http.filter.HttpServerFilter
@Filter({"${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 io.micronaut.http.filter.OncePerRequestHttpServerFilterA filter that matches theHealthEndpointand returns an appropriate HTTP status code.- Since:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_MAPPINGConfigurable default mapping for filter.static java.lang.StringLIVENESS_PROBE_MAPPINGstatic java.lang.StringREADINESS_PROBE_MAPPING
-
Constructor Summary
Constructors Modifier Constructor Description protectedHealthResultFilter(HealthEndpoint healthEndpoint)Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.reactivestreams.Publisher<io.micronaut.http.MutableHttpResponse<?>>doFilterOnce(io.micronaut.http.HttpRequest<?> request, io.micronaut.http.filter.ServerFilterChain chain)-
Methods inherited from class io.micronaut.http.filter.OncePerRequestHttpServerFilter
doFilter, getKey
-
-
-
-
Field Detail
-
DEFAULT_MAPPING
public static final java.lang.String DEFAULT_MAPPING
Configurable default mapping for filter.- See Also:
- Constant Field Values
-
LIVENESS_PROBE_MAPPING
public static final java.lang.String LIVENESS_PROBE_MAPPING
- See Also:
- Constant Field Values
-
READINESS_PROBE_MAPPING
public static final java.lang.String READINESS_PROBE_MAPPING
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HealthResultFilter
protected HealthResultFilter(HealthEndpoint healthEndpoint)
Default constructor.- Parameters:
healthEndpoint- The health endpoint
-
-
Method Detail
-
doFilterOnce
protected org.reactivestreams.Publisher<io.micronaut.http.MutableHttpResponse<?>> doFilterOnce(io.micronaut.http.HttpRequest<?> request, io.micronaut.http.filter.ServerFilterChain chain)- Specified by:
doFilterOncein classio.micronaut.http.filter.OncePerRequestHttpServerFilter
-
-