java.lang.Object
org.springframework.boot.actuate.autoconfigure.security.reactive.EndpointRequest

public final class EndpointRequest extends Object
Factory that can be used to create a ServerWebExchangeMatcher for actuator endpoint locations.
Since:
2.0.0
Author:
Madhura Bhave
  • Method Details

    • toAnyEndpoint

      public static EndpointRequest.EndpointServerWebExchangeMatcher toAnyEndpoint()
      Returns a matcher that includes all actuator endpoints. It also includes the links endpoint which is present at the base path of the actuator endpoints. The excluding method can be used to further remove specific endpoints if required. For example:
       EndpointRequest.toAnyEndpoint().excluding(ShutdownEndpoint.class)
       
      Returns:
      the configured ServerWebExchangeMatcher
    • to

      public static EndpointRequest.EndpointServerWebExchangeMatcher to(Class<?>... endpoints)
      Returns a matcher that includes the specified actuator endpoints. For example:
       EndpointRequest.to(ShutdownEndpoint.class, HealthEndpoint.class)
       
      Parameters:
      endpoints - the endpoints to include
      Returns:
      the configured ServerWebExchangeMatcher
    • to

      Returns a matcher that includes the specified actuator endpoints. For example:
       EndpointRequest.to("shutdown", "health")
       
      Parameters:
      endpoints - the endpoints to include
      Returns:
      the configured ServerWebExchangeMatcher
    • toLinks

      Returns a matcher that matches only on the links endpoint. It can be used when security configuration for the links endpoint is different from the other actuator endpoints. The excludingLinks method can be used in combination with this to remove the links endpoint from toAnyEndpoint. For example:
       EndpointRequest.toLinks()
       
      Returns:
      the configured ServerWebExchangeMatcher