Class EndpointsFilter

java.lang.Object
io.micronaut.management.endpoint.EndpointsFilter
All Implemented Interfaces:
io.micronaut.core.order.Ordered

@Requires(missingBeans=EndpointSensitivityHandler.class) @ServerFilter("/**") @Internal public class EndpointsFilter extends Object implements io.micronaut.core.order.Ordered
Returns 401 for Endpoint requests which have sensitive true.
Since:
1.0
  • Field Summary

    Fields inherited from interface io.micronaut.core.order.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
    Constructor
    Description
    EndpointsFilter(EndpointSensitivityProcessor endpointSensitivityProcessor)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable io.micronaut.http.HttpResponse<?>
    doFilter(io.micronaut.http.HttpRequest<?> request)
    Returns 401 if the route is a match for an endpoint with sensitive true.
    int
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EndpointsFilter

      public EndpointsFilter(EndpointSensitivityProcessor endpointSensitivityProcessor)
      Constructor.
      Parameters:
      endpointSensitivityProcessor - The processor that resolves endpoint sensitivity
  • Method Details

    • doFilter

      @RequestFilter @Nullable public @Nullable io.micronaut.http.HttpResponse<?> doFilter(io.micronaut.http.HttpRequest<?> request)
      Returns 401 if the route is a match for an endpoint with sensitive true.
      Parameters:
      request - The HttpRequest instance
      Returns:
      A Publisher for the Http response
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface io.micronaut.core.order.Ordered