クラス EndpointRequest.AdditionalPathsEndpointRequestMatcher
java.lang.ObjectSE
org.springframework.boot.security.servlet.ApplicationContextRequestMatcher<WebApplicationContext>
org.springframework.boot.actuate.autoconfigure.security.servlet.EndpointRequest.AdditionalPathsEndpointRequestMatcher
- 実装されているすべてのインターフェース:
RequestMatcher
- 含まれているクラス:
- EndpointRequest
public static class EndpointRequest.AdditionalPathsEndpointRequestMatcher
extends ApplicationContextRequestMatcher<WebApplicationContext>
actuator endpoints の追加パスと照合するために使用されるリクエストマッチャー。ネストされたクラスの要約
インターフェース org.springframework.security.web.util.matcher.RequestMatcher から継承されたネストクラス / インターフェース
RequestMatcher.MatchResultメソッドのサマリー
修飾子と型メソッド説明protected RequestMatchercreateDelegate(WebApplicationContext context, org.springframework.boot.actuate.autoconfigure.security.servlet.EndpointRequest.RequestMatcherFactory requestMatcherFactory) protected final ListSE<RequestMatcher>getDelegateMatchers(org.springframework.boot.actuate.autoconfigure.security.servlet.EndpointRequest.RequestMatcherFactory requestMatcherFactory, RequestMatcherProvider matcherProvider, SetSE<StringSE> paths, HttpMethod httpMethod) protected EndpointIdgetEndpointId(ObjectSE source) protected ListSE<RequestMatcher>getLinksMatchers(org.springframework.boot.actuate.autoconfigure.security.servlet.EndpointRequest.RequestMatcherFactory requestMatcherFactory, RequestMatcherProvider matcherProvider, StringSE basePath) protected RequestMatcherProviderprotected final booleanhasWebServerNamespace(ApplicationContext applicationContext, WebServerNamespace webServerNamespace) protected booleanignoreApplicationContext(WebApplicationContext applicationContext) WebApplicationContextを無視し、マッチングに使用しない場合に返します。protected booleanignoreApplicationContext(WebApplicationContext applicationContext, ManagementPortType managementPortType) protected final voidinitialized(SupplierSE<WebApplicationContext> context) マッチャーが最初に呼び出されたときに項目を初期化するサブクラスによって実装できるメソッド。protected final booleanmatches(HttpServletRequestEE request, SupplierSE<WebApplicationContext> context) 戦略によって実装されたルールが提供されたリクエストと一致するかどうかを決定します。toString()protected StringSEwithHttpMethod(HttpMethod httpMethod) 特定の HTTP メソッドを使用したリクエストのみを考慮するようにマッチャーを制限します。クラス org.springframework.boot.security.servlet.ApplicationContextRequestMatcher から継承されたメソッド
matchesクラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, wait, waitSE, waitSEインターフェース org.springframework.security.web.util.matcher.RequestMatcher から継承されたメソッド
matcher
メソッドの詳細
withHttpMethod
特定の HTTP メソッドを使用したリクエストのみを考慮するようにマッチャーを制限します。- パラメーター:
httpMethod- 含める HTTP メソッド- 戻り値:
- 指定された HTTP メソッドのリクエストのみに一致するようにさらに制限されたマッチャーのコピー
- 導入:
- 3.5.0
ignoreApplicationContext
protected boolean ignoreApplicationContext(WebApplicationContext applicationContext, ManagementPortType managementPortType) createDelegate
protected RequestMatcher createDelegate(WebApplicationContext context, org.springframework.boot.actuate.autoconfigure.security.servlet.EndpointRequest.RequestMatcherFactory requestMatcherFactory) toString
ignoreApplicationContext
クラスからコピーされた説明:ApplicationContextRequestMatcherWebApplicationContextを無視し、マッチングに使用しない場合に返します。このメソッドがtrueを返す場合、コンテキストは使用されず、matchesメソッドはfalseを返します。- オーバーライド:
- クラス
ApplicationContextRequestMatcher<WebApplicationContext>のignoreApplicationContext - パラメーター:
applicationContext- 候補の Web アプリケーションコンテキスト- 戻り値:
- アプリケーションコンテキストを無視する必要がある場合
hasWebServerNamespace
protected final boolean hasWebServerNamespace(ApplicationContext applicationContext, WebServerNamespace webServerNamespace) initialized
クラスからコピーされた説明:ApplicationContextRequestMatcherマッチャーが最初に呼び出されたときに項目を初期化するサブクラスによって実装できるメソッド。このメソッドは、ApplicationContextRequestMatcher.ignoreApplicationContext(WebApplicationContext)がfalseを返した場合にのみ 1 回だけ呼び出されます。指定されたコンテキストは、マッチャーに送信された最初のリクエストに基づくことに注意してください。- オーバーライド:
- クラス
ApplicationContextRequestMatcher<WebApplicationContext>のinitialized - パラメーター:
context- 初期化されたコンテキストのサプライヤー (例外をスローすることがあります)- 関連事項:
matches
protected final boolean matches(HttpServletRequestEE request, SupplierSE<WebApplicationContext> context) クラスからコピーされた説明:ApplicationContextRequestMatcher戦略によって実装されたルールが提供されたリクエストと一致するかどうかを決定します。- 次で指定:
- クラス
ApplicationContextRequestMatcher<WebApplicationContext>のmatches - パラメーター:
request- ソースリクエストcontext- 初期化されたコンテキストのサプライヤー (例外をスローすることがあります)- 戻り値:
- リクエストが一致した場合
getDelegateMatchers
protected final ListSE<RequestMatcher> getDelegateMatchers(org.springframework.boot.actuate.autoconfigure.security.servlet.EndpointRequest.RequestMatcherFactory requestMatcherFactory, RequestMatcherProvider matcherProvider, SetSE<StringSE> paths, HttpMethod httpMethod) getLinksMatchers
protected ListSE<RequestMatcher> getLinksMatchers(org.springframework.boot.actuate.autoconfigure.security.servlet.EndpointRequest.RequestMatcherFactory requestMatcherFactory, RequestMatcherProvider matcherProvider, StringSE basePath) getRequestMatcherProvider
toString
getEndpointId