Package io.micronaut.management.endpoint
Class EndpointsFilter
java.lang.Object
io.micronaut.http.filter.OncePerRequestHttpServerFilter
io.micronaut.management.endpoint.EndpointsFilter
- All Implemented Interfaces:
Ordered
,HttpFilter
,HttpServerFilter
Returns 401 for
Endpoint
requests which have sensitive true.- Since:
- 1.0
- Author:
- Sergio del Amo
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionEndpointsFilter
(EndpointSensitivityProcessor endpointSensitivityProcessor) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected Publisher<MutableHttpResponse<?>>
doFilterOnce
(HttpRequest<?> request, ServerFilterChain chain) Returns 401 if the route is a match for an endpoint with sensitive true.int
getOrder()
Methods inherited from class io.micronaut.http.filter.OncePerRequestHttpServerFilter
doFilter, getKey
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.http.filter.HttpServerFilter
doFilter
-
Constructor Details
-
EndpointsFilter
Constructor.- Parameters:
endpointSensitivityProcessor
- The processor that resolves endpoint sensitivity
-
-
Method Details
-
doFilterOnce
protected Publisher<MutableHttpResponse<?>> doFilterOnce(HttpRequest<?> request, ServerFilterChain chain) Returns 401 if the route is a match for an endpoint with sensitive true.- Specified by:
doFilterOnce
in classOncePerRequestHttpServerFilter
- Parameters:
request
- TheHttpRequest
instancechain
- TheServerFilterChain
instance- Returns:
- A
Publisher
for the Http response
-
getOrder
public int getOrder()- Returns:
- The order of the object. Defaults to zero (no order).
-