类 EndpointRequest


  • public final class EndpointRequest
    extends Object
    Factory that can be used to create a ServerWebExchangeMatcher for actuator endpoint locations.
    从以下版本开始:
    2.0.0
    • 方法详细资料

      • 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)
         
        返回:
        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)
         
        参数:
        endpoints - the endpoints to include
        返回:
        the configured ServerWebExchangeMatcher
      • to

        public static EndpointRequest.EndpointServerWebExchangeMatcher to​(String... endpoints)
        Returns a matcher that includes the specified actuator endpoints. For example:
         EndpointRequest.to("shutdown", "health")
         
        参数:
        endpoints - the endpoints to include
        返回:
        the configured ServerWebExchangeMatcher
      • toLinks

        public static EndpointRequest.LinksServerWebExchangeMatcher 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()
         
        返回:
        the configured ServerWebExchangeMatcher