クラス AbstractRequestMatcherRegistry<C>
- java.lang.Object
-
- org.springframework.security.config.annotation.web.AbstractRequestMatcherRegistry<C>
- 型パラメーター:
C
- RequestMatcher の作成後に返される、またはチェーンされるオブジェクト
- 既知の直属サブクラス
AbstractConfigAttributeRequestMatcherRegistry
、AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry
、HttpSecurity.RequestMatcherConfigurer
、WebSecurity.IgnoredRequestConfigurer
public abstract class AbstractRequestMatcherRegistry<C> extends java.lang.Object
RequestMatcher
を登録するための基本クラス。例: 特定のレベルの認可が必要なRequestMatcher
を指定できる場合があります。- 導入:
- 3.2
コンストラクターのサマリー
コンストラクター コンストラクター 説明 AbstractRequestMatcherRegistry()
メソッドのサマリー
すべてのメソッド インスタンスメソッド 抽象メソッド 具象メソッド 非推奨のメソッド 修飾子と型 メソッド 説明 C
antMatchers(java.lang.String... antPatterns)
使用すべきではありません。代わりにrequestMatchers(String...)
を使用してくださいC
antMatchers(org.springframework.http.HttpMethod method)
使用すべきではありません。代わりにrequestMatchers(HttpMethod)
を使用してくださいC
antMatchers(org.springframework.http.HttpMethod method, java.lang.String... antPatterns)
使用すべきではありません。代わりにrequestMatchers(HttpMethod, String...)
を使用してくださいC
anyRequest()
リクエストをマッピングします。protected abstract C
chainRequestMatchers(java.util.List<RequestMatcher> requestMatchers)
サブクラスは、RequestMatcher
インスタンスの作成にチェーンされたオブジェクトを返すためにこのメソッドを実装する必要があります。protected java.util.List<MvcRequestMatcher>
createMvcMatchers(org.springframework.http.HttpMethod method, java.lang.String... mvcPatterns)
渡されたメソッドとパターンのMvcRequestMatcher
インスタンスを作成しますC
dispatcherTypeMatchers(javax.servlet.DispatcherType... dispatcherTypes)
C
dispatcherTypeMatchers(org.springframework.http.HttpMethod method, javax.servlet.DispatcherType... dispatcherTypes)
DispatcherTypeRequestMatcher
インスタンスのList
をマップします。protected org.springframework.context.ApplicationContext
getApplicationContext()
ApplicationContext
を取得しますabstract C
mvcMatchers(java.lang.String... mvcPatterns)
使用すべきではありません。代わりにrequestMatchers(String...)
を使用してくださいabstract C
mvcMatchers(org.springframework.http.HttpMethod method, java.lang.String... mvcPatterns)
使用すべきではありません。代わりにrequestMatchers(HttpMethod, String...)
を使用してくださいC
regexMatchers(java.lang.String... regexPatterns)
使用すべきではありません。代わりにRegexRequestMatcher
でrequestMatchers(RequestMatcher...)
を使用してくださいC
regexMatchers(org.springframework.http.HttpMethod method, java.lang.String... regexPatterns)
使用すべきではありません。代わりにRegexRequestMatcher
でrequestMatchers(RequestMatcher...)
を使用してくださいC
requestMatchers(java.lang.String... patterns)
C
requestMatchers(org.springframework.http.HttpMethod method)
C
requestMatchers(org.springframework.http.HttpMethod method, java.lang.String... patterns)
C
requestMatchers(RequestMatcher... requestMatchers)
RequestMatcher
インスタンスのリストをAbstractConfigAttributeRequestMatcherRegistry
に関連付けますprotected void
setApplicationContext(org.springframework.context.ApplicationContext context)
メソッドの詳細
setApplicationContext
protected final void setApplicationContext(org.springframework.context.ApplicationContext context)
getApplicationContext
protected final org.springframework.context.ApplicationContext getApplicationContext()
ApplicationContext
を取得します- 戻り値:
ApplicationContext
anyRequest
public C anyRequest()
リクエストをマッピングします。- 戻り値:
RequestMatcher
の作成後にチェーンされるオブジェクト
antMatchers
@Deprecated public C antMatchers(org.springframework.http.HttpMethod method)
使用すべきではありません。代わりにrequestMatchers(HttpMethod)
を使用してくださいAntPathRequestMatcher
インスタンスのList
をマップします。- パラメーター:
method
-HttpMethod
に使用するHttpMethod
- 戻り値:
RequestMatcher
の作成後にチェーンされるオブジェクト
antMatchers
@Deprecated public C antMatchers(org.springframework.http.HttpMethod method, java.lang.String... antPatterns)
使用すべきではありません。代わりにrequestMatchers(HttpMethod, String...)
を使用してくださいAntPathRequestMatcher
インスタンスのList
をマップします。- パラメーター:
method
- 使用するHttpMethod
または任意のHttpMethod
のnull
antPatterns
- 作成する ant パターン。null
または空の場合、何にも一致しません。- 戻り値:
RequestMatcher
の作成後にチェーンされるオブジェクト
antMatchers
@Deprecated public C antMatchers(java.lang.String... antPatterns)
使用すべきではありません。代わりにrequestMatchers(String...)
を使用してください- パラメーター:
antPatterns
-AntPathRequestMatcher
を作成する ant パターン- 戻り値:
RequestMatcher
の作成後にチェーンされるオブジェクト
mvcMatchers
@Deprecated public abstract C mvcMatchers(java.lang.String... mvcPatterns)
使用すべきではありません。代わりにrequestMatchers(String...)
を使用してくださいどの
HttpMethod
が使用されているかを考慮しないMvcRequestMatcher
をマップします。このマッチャーは、Spring MVC がマッチングに使用するのと同じルールを使用します。例: 多くの場合、パス "/path" のマッピングは "/path","/path/","/path.html" などで一致します。現在のリクエストが Spring MVC によって処理されない場合、パターンを ant パターンとして使用する妥当なデフォルトが使用されます。
- パラメーター:
mvcPatterns
- 一致するパターン。マッチングのルールは Spring MVC によって定義されます- 戻り値:
RequestMatcher
の作成後にチェーンされるオブジェクト
mvcMatchers
@Deprecated public abstract C mvcMatchers(org.springframework.http.HttpMethod method, java.lang.String... mvcPatterns)
使用すべきではありません。代わりにrequestMatchers(HttpMethod, String...)
を使用してください一致する特定の
HttpMethod
も指定するMvcRequestMatcher
をマップします。このマッチャーは、Spring MVC がマッチングに使用するのと同じルールを使用します。例: 多くの場合、パス "/path" のマッピングは "/path","/path/","/path.html" などで一致します。現在のリクエストが Spring MVC によって処理されない場合、パターンを ant パターンとして使用する妥当なデフォルトが使用されます。
- パラメーター:
method
- 照合する HTTP メソッドmvcPatterns
- 一致するパターン。マッチングのルールは Spring MVC によって定義されます- 戻り値:
RequestMatcher
の作成後にチェーンされるオブジェクト
createMvcMatchers
protected final java.util.List<MvcRequestMatcher> createMvcMatchers(org.springframework.http.HttpMethod method, java.lang.String... mvcPatterns)
渡されたメソッドとパターンのMvcRequestMatcher
インスタンスを作成します- パラメーター:
method
- 使用する HTTP メソッド、または使用する必要がある場合は nullmvcPatterns
- 一致する Spring MVC パターン- 戻り値:
MvcRequestMatcher
インスタンスのリスト
regexMatchers
@Deprecated public C regexMatchers(org.springframework.http.HttpMethod method, java.lang.String... regexPatterns)
使用すべきではありません。代わりにRegexRequestMatcher
でrequestMatchers(RequestMatcher...)
を使用してくださいRegexRequestMatcher
インスタンスのList
をマップします。- パラメーター:
method
- 使用するHttpMethod
または任意のHttpMethod
のnull
regexPatterns
-RegexRequestMatcher
を作成する正規表現- 戻り値:
RequestMatcher
の作成後にチェーンされるオブジェクト
regexMatchers
@Deprecated public C regexMatchers(java.lang.String... regexPatterns)
使用すべきではありません。代わりにRegexRequestMatcher
でrequestMatchers(RequestMatcher...)
を使用してください- パラメーター:
regexPatterns
-RegexRequestMatcher
を作成する正規表現- 戻り値:
RequestMatcher
の作成後にチェーンされるオブジェクト
dispatcherTypeMatchers
public C dispatcherTypeMatchers(@Nullable org.springframework.http.HttpMethod method, javax.servlet.DispatcherType... dispatcherTypes)
DispatcherTypeRequestMatcher
インスタンスのList
をマップします。- パラメーター:
method
- 使用するHttpMethod
または任意のHttpMethod
のnull
dispatcherTypes
- 照合するディスパッチャー型- 戻り値:
RequestMatcher
の作成後にチェーンされるオブジェクト
dispatcherTypeMatchers
public C dispatcherTypeMatchers(javax.servlet.DispatcherType... dispatcherTypes)
- パラメーター:
dispatcherTypes
- 照合するディスパッチャー型- 戻り値:
RequestMatcher
の作成後にチェーンされるオブジェクト
requestMatchers
public C requestMatchers(RequestMatcher... requestMatchers)
RequestMatcher
インスタンスのリストをAbstractConfigAttributeRequestMatcherRegistry
に関連付けます- パラメーター:
requestMatchers
-RequestMatcher
インスタンス- 戻り値:
RequestMatcher
の作成後にチェーンされるオブジェクト
requestMatchers
public C requestMatchers(org.springframework.http.HttpMethod method, java.lang.String... patterns)
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
public C requestMatchers(java.lang.String... patterns)
HandlerMappingIntrospector
がクラスパスで使用可能な場合、どのHttpMethod
が使用されているかを気にしないMvcRequestMatcher
にマップされます。このマッチャーは、Spring MVC がマッチングに使用するのと同じルールを使用します。例: 多くの場合、パス "/path" のマッピングは、"/path","/path/","/path.html" などで一致します。HandlerMappingIntrospector
が使用できない場合は、AntPathRequestMatcher
にマップします。特定の
RequestMatcher
を指定する必要がある場合は、代わりにrequestMatchers(RequestMatcher...)
を使用してください- パラメーター:
patterns
- 一致するパターン。MvcRequestMatcher
が使用されている場合、マッチングのルールは Spring MVC によって定義されます。- 戻り値:
RequestMatcher
の作成後にチェーンされるオブジェクト- 導入:
- 5.8
requestMatchers
public C requestMatchers(org.springframework.http.HttpMethod method)
HandlerMappingIntrospector
がクラスパスで使用可能な場合、特定のHttpMethod
で一致するMvcRequestMatcher
にマップされます。このマッチャーは、Spring MVC がマッチングに使用するのと同じルールを使用します。例: 多くの場合、パス "/path" のマッピングは、"/path","/path/","/path.html" などで一致します。HandlerMappingIntrospector
が使用できない場合は、AntPathRequestMatcher
にマップします。特定の
RequestMatcher
を指定する必要がある場合は、代わりにrequestMatchers(RequestMatcher...)
を使用してください- パラメーター:
method
- 使用するHttpMethod
または任意のHttpMethod
のnull
- 戻り値:
RequestMatcher
の作成後にチェーンされるオブジェクト- 導入:
- 5.8
chainRequestMatchers
protected abstract C chainRequestMatchers(java.util.List<RequestMatcher> requestMatchers)
サブクラスは、RequestMatcher
インスタンスの作成にチェーンされたオブジェクトを返すためにこのメソッドを実装する必要があります。- パラメーター:
requestMatchers
- 作成されたRequestMatcher
インスタンス- 戻り値:
RequestMatcher
への何かの関連付けを可能にするサブクラスのチェーンオブジェクト