Class HttpSecurity.RequestMatcherConfigurer
- Direct Known Subclasses:
HttpSecurity.MvcMatchersRequestMatcherConfigurer
- Enclosing class:
- HttpSecurity
HttpSecurity will be used for- Since:
- 3.2
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionand()Return theHttpSecurityfor further customizationsprotected HttpSecurity.RequestMatcherConfigurerchainRequestMatchers(List<RequestMatcher> requestMatchers) Subclasses should implement this method for returning the object that is chained to the creation of theRequestMatcherinstances.mvcMatchers(String... patterns) Deprecated.mvcMatchers(org.springframework.http.HttpMethod method, String... mvcPatterns) Deprecated.Methods inherited from class org.springframework.security.config.annotation.web.AbstractRequestMatcherRegistry
antMatchers, antMatchers, antMatchers, anyRequest, createMvcMatchers, dispatcherTypeMatchers, dispatcherTypeMatchers, getApplicationContext, regexMatchers, regexMatchers, requestMatchers, requestMatchers, requestMatchers, requestMatchers, setApplicationContext
-
Field Details
-
matchers
-
-
Method Details
-
mvcMatchers
@Deprecated public HttpSecurity.MvcMatchersRequestMatcherConfigurer mvcMatchers(org.springframework.http.HttpMethod method, String... mvcPatterns) Deprecated.Description copied from class:AbstractRequestMatcherRegistryMaps an
MvcRequestMatcherthat also specifies a specificHttpMethodto match on. This matcher will use the same rules that Spring MVC uses for matching. For example, often times a mapping of the path "/path" will match on "/path", "/path/", "/path.html", etc.If the current request will not be processed by Spring MVC, a reasonable default using the pattern as a ant pattern will be used.
- Specified by:
mvcMatchersin classAbstractRequestMatcherRegistry<HttpSecurity.RequestMatcherConfigurer>- Parameters:
method- the HTTP method to match onmvcPatterns- the patterns to match on. The rules for matching are defined by Spring MVC- Returns:
- the object that is chained after creating the
RequestMatcher.
-
mvcMatchers
Deprecated.Description copied from class:AbstractRequestMatcherRegistryMaps an
MvcRequestMatcherthat does not care whichHttpMethodis used. This matcher will use the same rules that Spring MVC uses for matching. For example, often times a mapping of the path "/path" will match on "/path", "/path/", "/path.html", etc.If the current request will not be processed by Spring MVC, a reasonable default using the pattern as a ant pattern will be used.
- Specified by:
mvcMatchersin classAbstractRequestMatcherRegistry<HttpSecurity.RequestMatcherConfigurer>- Parameters:
patterns- the patterns to match on. The rules for matching are defined by Spring MVC- Returns:
- the object that is chained after creating the
RequestMatcher.
-
chainRequestMatchers
protected HttpSecurity.RequestMatcherConfigurer chainRequestMatchers(List<RequestMatcher> requestMatchers) Description copied from class:AbstractRequestMatcherRegistrySubclasses should implement this method for returning the object that is chained to the creation of theRequestMatcherinstances.- Specified by:
chainRequestMatchersin classAbstractRequestMatcherRegistry<HttpSecurity.RequestMatcherConfigurer>- Parameters:
requestMatchers- theRequestMatcherinstances that were created- Returns:
- the chained Object for the subclass which allows association of something
else to the
RequestMatcher
-
and
Return theHttpSecurityfor further customizations- Returns:
- the
HttpSecurityfor further customizations
-
AbstractRequestMatcherRegistry.requestMatchers(String...)instead