クラス AbstractRequestMatcherRegistry<C>
- 型パラメーター:
C
- RequestMatcher の作成後に返される、またはチェーンされるオブジェクト
- 既知の直属サブクラス
AbstractConfigAttributeRequestMatcherRegistry
、AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry
、HttpSecurity.RequestMatcherConfigurer
、WebSecurity.IgnoredRequestConfigurer
RequestMatcher
を登録するための基本クラス。例: 特定のレベルの認可が必要な RequestMatcher
を指定できる場合があります。- 導入:
- 3.2
コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明リクエストをマッピングします。protected abstract C
chainRequestMatchers
(ListSE<RequestMatcher> requestMatchers) サブクラスは、RequestMatcher
インスタンスの作成にチェーンされたオブジェクトを返すためにこのメソッドを実装する必要があります。protected final ListSE<MvcRequestMatcher>
createMvcMatchers
(org.springframework.http.HttpMethod method, StringSE... mvcPatterns) 渡されたメソッドとパターンのMvcRequestMatcher
インスタンスを作成しますdispatcherTypeMatchers
(jakarta.servlet.DispatcherType... dispatcherTypes) dispatcherTypeMatchers
(org.springframework.http.HttpMethod method, jakarta.servlet.DispatcherType... dispatcherTypes) DispatcherTypeRequestMatcher
インスタンスのList
SE をマップします。protected final org.springframework.context.ApplicationContext
ApplicationContext
を取得しますrequestMatchers
(StringSE... patterns) requestMatchers
(org.springframework.http.HttpMethod method) requestMatchers
(org.springframework.http.HttpMethod method, StringSE... patterns) requestMatchers
(RequestMatcher... requestMatchers) RequestMatcher
インスタンスのリストをAbstractConfigAttributeRequestMatcherRegistry
に関連付けますprotected final void
setApplicationContext
(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
の作成後にチェーンされるオブジェクト
createMvcMatchers
protected final ListSE<MvcRequestMatcher> createMvcMatchers(org.springframework.http.HttpMethod method, StringSE... mvcPatterns) 渡されたメソッドとパターンのMvcRequestMatcher
インスタンスを作成します- パラメーター:
method
- 使用する HTTP メソッド、または使用する必要がある場合は nullmvcPatterns
- 一致する Spring MVC パターン- 戻り値:
MvcRequestMatcher
インスタンスのリスト
dispatcherTypeMatchers
public C dispatcherTypeMatchers(@Nullable org.springframework.http.HttpMethod method, jakarta.servlet.DispatcherType... dispatcherTypes) DispatcherTypeRequestMatcher
インスタンスのList
SE をマップします。- パラメーター:
method
- 使用するHttpMethod
または任意のHttpMethod
のnull
dispatcherTypes
- 照合するディスパッチャー型- 戻り値:
RequestMatcher
の作成後にチェーンされるオブジェクト
dispatcherTypeMatchers
- パラメーター:
dispatcherTypes
- 照合するディスパッチャー型- 戻り値:
RequestMatcher
の作成後にチェーンされるオブジェクト
requestMatchers
RequestMatcher
インスタンスのリストをAbstractConfigAttributeRequestMatcherRegistry
に関連付けます- パラメーター:
requestMatchers
-RequestMatcher
インスタンス- 戻り値:
RequestMatcher
の作成後にチェーンされるオブジェクト
requestMatchers
HandlerMappingIntrospector
がクラスパスで使用可能な場合、一致する特定のHttpMethod
も指定するMvcRequestMatcher
にマップされます。このマッチャーは、Spring MVC がマッチングに使用するのと同じルールを使用します。例: 多くの場合、パス "/path" のマッピングは、"/path","/path/","/path.html" などで一致します。HandlerMappingIntrospector
が使用できない場合は、AntPathRequestMatcher
にマップします。特定の
RequestMatcher
を指定する必要がある場合は、代わりにrequestMatchers(RequestMatcher...)
を使用してください- パラメーター:
method
- 使用するHttpMethod
または任意のHttpMethod
のnull
patterns
- 一致するパターン。MvcRequestMatcher
が使用されている場合、マッチングのルールは Spring MVC によって定義されます。- 戻り値:
RequestMatcher
の作成後にチェーンされるオブジェクト- 導入:
- 5.8
requestMatchers
HandlerMappingIntrospector
がクラスパスで使用可能な場合、どのHttpMethod
が使用されているかを気にしないMvcRequestMatcher
にマップされます。このマッチャーは、Spring MVC がマッチングに使用するのと同じルールを使用します。例: 多くの場合、パス "/path" のマッピングは、"/path","/path/","/path.html" などで一致します。HandlerMappingIntrospector
が使用できない場合は、AntPathRequestMatcher
にマップします。特定の
RequestMatcher
を指定する必要がある場合は、代わりにrequestMatchers(RequestMatcher...)
を使用してください- パラメーター:
patterns
- 一致するパターン。MvcRequestMatcher
が使用されている場合、マッチングのルールは Spring MVC によって定義されます。- 戻り値:
RequestMatcher
の作成後にチェーンされるオブジェクト- 導入:
- 5.8
requestMatchers
HandlerMappingIntrospector
がクラスパスで使用可能な場合、特定のHttpMethod
で一致するMvcRequestMatcher
にマップされます。このマッチャーは、Spring MVC がマッチングに使用するのと同じルールを使用します。例: 多くの場合、パス "/path" のマッピングは、"/path","/path/","/path.html" などで一致します。HandlerMappingIntrospector
が使用できない場合は、AntPathRequestMatcher
にマップします。特定の
RequestMatcher
を指定する必要がある場合は、代わりにrequestMatchers(RequestMatcher...)
を使用してください- パラメーター:
method
- 使用するHttpMethod
または任意のHttpMethod
のnull
- 戻り値:
RequestMatcher
の作成後にチェーンされるオブジェクト- 導入:
- 5.8
chainRequestMatchers
サブクラスは、RequestMatcher
インスタンスの作成にチェーンされたオブジェクトを返すためにこのメソッドを実装する必要があります。- パラメーター:
requestMatchers
- 作成されたRequestMatcher
インスタンス- 戻り値:
RequestMatcher
への何かの関連付けを可能にするサブクラスのチェーンオブジェクト