クラス AbstractRequestMatcherRegistry<C>
java.lang.ObjectSE
org.springframework.security.config.annotation.web.AbstractRequestMatcherRegistry<C>
- 型パラメーター:
C- RequestMatcher の作成後に返される、またはチェーンされるオブジェクト
- 既知の直属サブクラス
AbstractConfigAttributeRequestMatcherRegistry、AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry、HttpSecurity.RequestMatcherConfigurer、WebSecurity.IgnoredRequestConfigurer
RequestMatcher を登録するための基本クラス。例: 特定のレベルの認可が必要な RequestMatcher を指定できる場合があります。- 導入:
- 3.2
コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明リクエストをマッピングします。protected abstract CchainRequestMatchers(ListSE<RequestMatcher> requestMatchers) サブクラスは、RequestMatcherインスタンスの作成にチェーンされたオブジェクトを返すためにこのメソッドを実装する必要があります。dispatcherTypeMatchers(jakarta.servlet.DispatcherType... dispatcherTypes) dispatcherTypeMatchers(org.springframework.http.HttpMethod method, jakarta.servlet.DispatcherType... dispatcherTypes) DispatcherTypeRequestMatcherインスタンスのListSE をマップします。protected final org.springframework.context.ApplicationContextApplicationContextを取得しますrequestMatchers(StringSE... patterns) リクエスト URI がpatternsのいずれかと一致する場合に一致します。requestMatchers(org.springframework.http.HttpMethod method) HttpMethodがmethodの場合に一致requestMatchers(org.springframework.http.HttpMethod method, StringSE... patterns) HttpMethodがmethodであり、リクエスト URI がpatternsのいずれかと一致する場合に一致します。requestMatchers(RequestMatcher... requestMatchers) RequestMatcherインスタンスのリストをAbstractRequestMatcherRegistryに関連付けますprotected final voidsetApplicationContext(org.springframework.context.ApplicationContext context)
コンストラクターの詳細
AbstractRequestMatcherRegistry
public AbstractRequestMatcherRegistry()
メソッドの詳細
setApplicationContext
protected final void setApplicationContext(org.springframework.context.ApplicationContext context) getApplicationContext
protected final org.springframework.context.ApplicationContext getApplicationContext()ApplicationContextを取得します- 戻り値:
ApplicationContext
anyRequest
リクエストをマッピングします。- 戻り値:
RequestMatcherの作成後にチェーンされるオブジェクト
dispatcherTypeMatchers
public C dispatcherTypeMatchers(@Nullable org.springframework.http.HttpMethod method, jakarta.servlet.DispatcherType... dispatcherTypes) DispatcherTypeRequestMatcherインスタンスのListSE をマップします。- パラメーター:
method- 使用するHttpMethodまたは任意のHttpMethodのnulldispatcherTypes- 照合するディスパッチャー型- 戻り値:
RequestMatcherの作成後にチェーンされるオブジェクト
dispatcherTypeMatchers
- パラメーター:
dispatcherTypes- 照合するディスパッチャー型- 戻り値:
RequestMatcherの作成後にチェーンされるオブジェクト
requestMatchers
RequestMatcherインスタンスのリストをAbstractRequestMatcherRegistryに関連付けます- パラメーター:
requestMatchers-RequestMatcherインスタンス- 戻り値:
RequestMatcherの作成後にチェーンされるオブジェクト
requestMatchers
HttpMethodがmethodであり、リクエスト URI がpatternsのいずれかに一致する場合に一致します。一致ルールについてはPathPatternを参照してください。特定の
RequestMatcherを指定する必要がある場合は、代わりにrequestMatchers(RequestMatcher...)を使用してください- パラメーター:
method- 使用するHttpMethodまたは任意のHttpMethodのnullpatterns- 照合するパターン- 戻り値:
RequestMatcherの作成後にチェーンされるオブジェクト- 導入:
- 5.8
requestMatchers
リクエスト URI が
patternsのいずれかに一致する場合に一致します。一致ルールについてはPathPatternを参照してください。特定の
RequestMatcherを指定する必要がある場合は、代わりにrequestMatchers(RequestMatcher...)を使用してください- パラメーター:
patterns- 照合するパターン- 戻り値:
RequestMatcherの作成後にチェーンされるオブジェクト- 導入:
- 5.8
requestMatchers
HttpMethodがmethodの場合に一致特定の
RequestMatcherを指定する必要がある場合は、代わりにrequestMatchers(RequestMatcher...)を使用してください- パラメーター:
method- 使用するHttpMethodまたは任意のHttpMethodのnull- 戻り値:
RequestMatcherの作成後にチェーンされるオブジェクト- 導入:
- 5.8
chainRequestMatchers
サブクラスは、RequestMatcherインスタンスの作成にチェーンされたオブジェクトを返すためにこのメソッドを実装する必要があります。- パラメーター:
requestMatchers- 作成されたRequestMatcherインスタンス- 戻り値:
RequestMatcherへの何かの関連付けを可能にするサブクラスのチェーンオブジェクト