クラス EndpointRequest

java.lang.ObjectSE
org.springframework.boot.actuate.autoconfigure.security.servlet.EndpointRequest

public final class EndpointRequest extends ObjectSE
アクチュエーターのエンドポイント位置の RequestMatcher を作成するために使用できるファクトリ。
導入:
2.0.0
作成者:
Madhura Bhave, Phillip Webb
  • メソッドの詳細

    • toAnyEndpoint

      public static EndpointRequest.EndpointRequestMatcher toAnyEndpoint()
      すべての actuator endpoints を含むマッチャーを返します。また、アクチュエーターエンドポイントのベースパスにあるリンクエンドポイントも含まれます。excluding メソッドを使用して、必要に応じて特定のエンドポイントをさらに削除できます。例:
       EndpointRequest.toAnyEndpoint().excluding(ShutdownEndpoint.class)
       
      戻り値:
      設定された RequestMatcher
    • to

      public static EndpointRequest.EndpointRequestMatcher to(ClassSE<?>... endpoints)
      指定された actuator endpoints を含むマッチャーを返します。例:
       EndpointRequest.to(ShutdownEndpoint.class, HealthEndpoint.class)
       
      パラメーター:
      endpoints - 含めるエンドポイント
      戻り値:
      設定された RequestMatcher
    • to

      public static EndpointRequest.EndpointRequestMatcher to(StringSE... endpoints)
      指定された actuator endpoints を含むマッチャーを返します。例:
       EndpointRequest.to("shutdown", "health")
       
      パラメーター:
      endpoints - 含めるエンドポイント
      戻り値:
      設定された RequestMatcher
    • toLinks

      public static EndpointRequest.LinksRequestMatcher toLinks()
      リンクのエンドポイントでのみ一致するマッチャーを返します。リンクエンドポイントのセキュリティ構成が他の actuator endpoints と異なる場合に使用できます。excludingLinks メソッドをこれと組み合わせて使用して、リンクのエンドポイントを toAnyEndpoint から削除できます。例:
       EndpointRequest.toLinks()
       
      戻り値:
      設定された RequestMatcher