クラス EndpointRequest.EndpointRequestMatcher
java.lang.ObjectSE
org.springframework.boot.security.web.servlet.ApplicationContextRequestMatcher<WebApplicationContext>
org.springframework.boot.security.autoconfigure.actuate.web.servlet.EndpointRequest.EndpointRequestMatcher
- 実装されているすべてのインターフェース:
RequestMatcher
- 含まれているクラス:
EndpointRequest
public static final class EndpointRequest.EndpointRequestMatcher
extends ApplicationContextRequestMatcher<WebApplicationContext>
actuator endpoints と照合するために使用されるリクエストマッチャー。- 導入:
- 4.0.0
- 作成者:
- Madhura Bhave, Phillip Webb, Chris Bono
ネストされたクラスの要約
インターフェース RequestMatcher から継承されたネストクラス / インターフェース
RequestMatcher.MatchResult方法の概要
修飾子と型メソッド説明protected RequestMatchercreateDelegate(WebApplicationContext context, org.springframework.boot.security.autoconfigure.actuate.web.servlet.EndpointRequest.RequestMatcherFactory requestMatcherFactory) protected final ListSE<RequestMatcher> getDelegateMatchers(org.springframework.boot.security.autoconfigure.actuate.web.servlet.EndpointRequest.RequestMatcherFactory requestMatcherFactory, RequestMatcherProvider matcherProvider, SetSE<StringSE> paths, @Nullable HttpMethod httpMethod) protected EndpointIdgetEndpointId(ObjectSE source) protected ListSE<RequestMatcher> getLinksMatchers(org.springframework.boot.security.autoconfigure.actuate.web.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 メソッドを使用したリクエストのみを考慮するようにマッチャーを制限します。クラス ApplicationContextRequestMatcher から継承されたメソッド
getServerNamespace, hasServerNamespace, matchesクラス ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, wait, waitSE, waitSEインターフェース RequestMatcher から継承されたメソッド
matcher
メソッドの詳細
excluding
excluding
excludingLinks
withHttpMethod
特定の HTTP メソッドを使用したリクエストのみを考慮するようにマッチャーを制限します。- パラメーター:
httpMethod- 含める HTTP メソッド- 戻り値:
- 指定された HTTP メソッドのリクエストのみに一致するようにさらに制限されたマッチャーのコピー
createDelegate
protected RequestMatcher createDelegate(WebApplicationContext context, org.springframework.boot.security.autoconfigure.actuate.web.servlet.EndpointRequest.RequestMatcherFactory requestMatcherFactory) toString
ignoreApplicationContext
クラスからコピーされた説明:ApplicationContextRequestMatcherWebApplicationContextを無視し、マッチングに使用しない場合に返します。このメソッドがtrueを返す場合、コンテキストは使用されず、matchesメソッドはfalseを返します。- オーバーライド:
- クラス
ApplicationContextRequestMatcher<WebApplicationContext>のignoreApplicationContext - パラメーター:
applicationContext- 候補の Web アプリケーションコンテキスト- 戻り値:
- アプリケーションコンテキストを無視する必要がある場合
ignoreApplicationContext
protected boolean ignoreApplicationContext(WebApplicationContext applicationContext, ManagementPortType managementPortType) 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.security.autoconfigure.actuate.web.servlet.EndpointRequest.RequestMatcherFactory requestMatcherFactory, RequestMatcherProvider matcherProvider, SetSE<StringSE> paths, @Nullable HttpMethod httpMethod) getLinksMatchers
protected ListSE<RequestMatcher> getLinksMatchers(org.springframework.boot.security.autoconfigure.actuate.web.servlet.EndpointRequest.RequestMatcherFactory requestMatcherFactory, RequestMatcherProvider matcherProvider, StringSE basePath) getRequestMatcherProvider
toString
getEndpointId