Package io.micronaut.management.endpoint
Class EndpointsFilter
java.lang.Object
io.micronaut.management.endpoint.EndpointsFilter
- All Implemented Interfaces:
Ordered
@Requires(missingBeans=EndpointSensitivityHandler.class)
@ServerFilter("/**")
@Internal
public class EndpointsFilter
extends Object
implements Ordered
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 TypeMethodDescriptiondoFilter
(HttpRequest<?> request) Returns 401 if the route is a match for an endpoint with sensitive true.int
getOrder()
-
Constructor Details
-
EndpointsFilter
Constructor.- Parameters:
endpointSensitivityProcessor
- The processor that resolves endpoint sensitivity
-
-
Method Details
-
doFilter
Returns 401 if the route is a match for an endpoint with sensitive true.- Parameters:
request
- TheHttpRequest
instance- Returns:
- A
Publisher
for the Http response
-
getOrder
public int getOrder()
-