クラス EndpointRequest
java.lang.ObjectSE
org.springframework.boot.actuate.autoconfigure.security.servlet.EndpointRequest
アクチュエーターのエンドポイント位置の
RequestMatcher
を作成するために使用できるファクトリ。- 導入:
- 2.0.0
- 作成者:
- Madhura Bhave, Phillip Webb
ネストされたクラスのサマリー
ネストされたクラス修飾子と型クラス説明static class
actuator endpoints
の追加パスと照合するために使用されるリクエストマッチャー。static final class
actuator endpoints
と照合するために使用されるリクエストマッチャー。static final class
リンクエンドポイントとの照合に使用されるリクエストマッチャー。方法の概要
修飾子と型メソッド説明指定されたactuator endpoints
を含むマッチャーを返します。指定されたactuator endpoints
を含むマッチャーを返します。toAdditionalPaths
(WebServerNamespace webServerNamespace, ClassSE<?>... endpoints) 指定されたactuator endpoints
のWebServerNamespace
の追加パスを含むマッチャーを返します。toAdditionalPaths
(WebServerNamespace webServerNamespace, StringSE... endpoints) 指定されたactuator endpoints
のWebServerNamespace
の追加パスを含むマッチャーを返します。すべてのactuator endpoints
を含むマッチャーを返します。toLinks()
リンクのエンドポイントでのみ一致するマッチャーを返します。
メソッドの詳細
toAnyEndpoint
すべてのactuator endpoints
を含むマッチャーを返します。また、アクチュエーターエンドポイントのベースパスにあるリンクエンドポイントも含まれます。excluding
メソッドを使用して、必要に応じて特定のエンドポイントをさらに削除できます。例:EndpointRequest.toAnyEndpoint().excluding(ShutdownEndpoint.class)
- 戻り値:
- 設定された
RequestMatcher
to
指定されたactuator endpoints
を含むマッチャーを返します。例:EndpointRequest.to(ShutdownEndpoint.class, HealthEndpoint.class)
- パラメーター:
endpoints
- 含めるエンドポイント- 戻り値:
- 設定された
RequestMatcher
to
指定されたactuator endpoints
を含むマッチャーを返します。例:EndpointRequest.to("shutdown", "health")
- パラメーター:
endpoints
- 含めるエンドポイント- 戻り値:
- 設定された
RequestMatcher
toLinks
リンクのエンドポイントでのみ一致するマッチャーを返します。リンクエンドポイントのセキュリティ構成が他のactuator endpoints
と異なる場合に使用できます。excludingLinks
メソッドをこれと組み合わせて使用して、リンクのエンドポイントをtoAnyEndpoint
から削除できます。例:EndpointRequest.toLinks()
- 戻り値:
- 設定された
RequestMatcher
toAdditionalPaths
public static EndpointRequest.AdditionalPathsEndpointRequestMatcher toAdditionalPaths(WebServerNamespace webServerNamespace, ClassSE<?>... endpoints) 指定されたactuator endpoints
のWebServerNamespace
の追加パスを含むマッチャーを返します。例:EndpointRequest.toAdditionalPaths(WebServerNamespace.SERVER, "health")
- パラメーター:
webServerNamespace
- Web サーバーの名前空間endpoints
- 含めるエンドポイント- 戻り値:
- 設定された
RequestMatcher
- 導入:
- 3.4.0
toAdditionalPaths
public static EndpointRequest.AdditionalPathsEndpointRequestMatcher toAdditionalPaths(WebServerNamespace webServerNamespace, StringSE... endpoints) 指定されたactuator endpoints
のWebServerNamespace
の追加パスを含むマッチャーを返します。例:EndpointRequest.toAdditionalPaths(WebServerNamespace.SERVER, HealthEndpoint.class)
- パラメーター:
webServerNamespace
- Web サーバーの名前空間endpoints
- 含めるエンドポイント- 戻り値:
- 設定された
RequestMatcher
- 導入:
- 3.4.0