Class UrlAuthorizationConfigurer.StandardInterceptUrlRegistry
- Enclosing class:
- UrlAuthorizationConfigurer<H extends HttpSecurityBuilder<H>>
-
Method Summary
Modifier and TypeMethodDescriptionand()
protected UrlAuthorizationConfigurer<H>.AuthorizedUrl
chainRequestMatchersInternal
(List<RequestMatcher> requestMatchers) Subclasses should implement this method for returning the object that is chained to the creation of theRequestMatcher
instances.requestMatchers
(String... patterns) If theHandlerMappingIntrospector
is available in the classpath, maps to anMvcRequestMatcher
that does not care whichHttpMethod
is used.requestMatchers
(org.springframework.http.HttpMethod method) If theHandlerMappingIntrospector
is available in the classpath, maps to anMvcRequestMatcher
that matches on a specificHttpMethod
.requestMatchers
(org.springframework.http.HttpMethod method, String... patterns) If theHandlerMappingIntrospector
is available in the classpath, maps to anMvcRequestMatcher
that also specifies a specificHttpMethod
to match on.requestMatchers
(RequestMatcher... requestMatchers) Associates a list ofRequestMatcher
instances with theAbstractConfigAttributeRequestMatcherRegistry
withObjectPostProcessor
(ObjectPostProcessor<?> objectPostProcessor) Adds anObjectPostProcessor
for this class.Methods inherited from class org.springframework.security.config.annotation.web.configurers.AbstractInterceptUrlConfigurer.AbstractInterceptUrlRegistry
accessDecisionManager, filterSecurityInterceptorOncePerRequest
Methods inherited from class org.springframework.security.config.annotation.web.configurers.AbstractConfigAttributeRequestMatcherRegistry
chainRequestMatchers
Methods inherited from class org.springframework.security.config.annotation.web.AbstractRequestMatcherRegistry
anyRequest, createMvcMatchers, dispatcherTypeMatchers, dispatcherTypeMatchers, getApplicationContext, setApplicationContext
-
Method Details
-
requestMatchers
Description copied from class:AbstractRequestMatcherRegistry
If the
HandlerMappingIntrospector
is available in the classpath, maps to anMvcRequestMatcher
that does not care whichHttpMethod
is 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 theHandlerMappingIntrospector
is not available, maps to anAntPathRequestMatcher
.If a specific
RequestMatcher
must be specified, useAbstractRequestMatcherRegistry.requestMatchers(RequestMatcher...)
instead- Overrides:
requestMatchers
in classAbstractRequestMatcherRegistry<UrlAuthorizationConfigurer<H extends HttpSecurityBuilder<H>>.AuthorizedUrl>
- Parameters:
patterns
- the patterns to match on. The rules for matching are defined by Spring MVC ifMvcRequestMatcher
is used- Returns:
- the object that is chained after creating the
RequestMatcher
.
-
requestMatchers
public UrlAuthorizationConfigurer<H>.AuthorizedUrl requestMatchers(org.springframework.http.HttpMethod method, String... patterns) Description copied from class:AbstractRequestMatcherRegistry
If the
HandlerMappingIntrospector
is available in the classpath, maps to anMvcRequestMatcher
that also specifies a specificHttpMethod
to 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 theHandlerMappingIntrospector
is not available, maps to anAntPathRequestMatcher
.If a specific
RequestMatcher
must be specified, useAbstractRequestMatcherRegistry.requestMatchers(RequestMatcher...)
instead- Overrides:
requestMatchers
in classAbstractRequestMatcherRegistry<UrlAuthorizationConfigurer<H extends HttpSecurityBuilder<H>>.AuthorizedUrl>
- Parameters:
method
- theHttpMethod
to use ornull
for anyHttpMethod
.patterns
- the patterns to match on. The rules for matching are defined by Spring MVC ifMvcRequestMatcher
is used- Returns:
- the object that is chained after creating the
RequestMatcher
.
-
requestMatchers
public UrlAuthorizationConfigurer<H>.AuthorizedUrl requestMatchers(org.springframework.http.HttpMethod method) Description copied from class:AbstractRequestMatcherRegistry
If the
HandlerMappingIntrospector
is available in the classpath, maps to anMvcRequestMatcher
that matches on a specificHttpMethod
. 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 theHandlerMappingIntrospector
is not available, maps to anAntPathRequestMatcher
.If a specific
RequestMatcher
must be specified, useAbstractRequestMatcherRegistry.requestMatchers(RequestMatcher...)
instead- Overrides:
requestMatchers
in classAbstractRequestMatcherRegistry<UrlAuthorizationConfigurer<H extends HttpSecurityBuilder<H>>.AuthorizedUrl>
- Parameters:
method
- theHttpMethod
to use ornull
for anyHttpMethod
.- Returns:
- the object that is chained after creating the
RequestMatcher
.
-
requestMatchers
public UrlAuthorizationConfigurer<H>.AuthorizedUrl requestMatchers(RequestMatcher... requestMatchers) Description copied from class:AbstractRequestMatcherRegistry
Associates a list ofRequestMatcher
instances with theAbstractConfigAttributeRequestMatcherRegistry
- Overrides:
requestMatchers
in classAbstractRequestMatcherRegistry<UrlAuthorizationConfigurer<H extends HttpSecurityBuilder<H>>.AuthorizedUrl>
- Parameters:
requestMatchers
- theRequestMatcher
instances- Returns:
- the object that is chained after creating the
RequestMatcher
-
chainRequestMatchersInternal
protected UrlAuthorizationConfigurer<H>.AuthorizedUrl chainRequestMatchersInternal(List<RequestMatcher> requestMatchers) Description copied from class:AbstractConfigAttributeRequestMatcherRegistry
Subclasses should implement this method for returning the object that is chained to the creation of theRequestMatcher
instances.- Specified by:
chainRequestMatchersInternal
in classAbstractConfigAttributeRequestMatcherRegistry<UrlAuthorizationConfigurer<H extends HttpSecurityBuilder<H>>.AuthorizedUrl>
- Parameters:
requestMatchers
- theRequestMatcher
instances that were created- Returns:
- the chained Object for the subclass which allows association of something
else to the
RequestMatcher
-
withObjectPostProcessor
public UrlAuthorizationConfigurer<H>.StandardInterceptUrlRegistry withObjectPostProcessor(ObjectPostProcessor<?> objectPostProcessor) Adds anObjectPostProcessor
for this class.- Parameters:
objectPostProcessor
-- Returns:
- the
ExpressionUrlAuthorizationConfigurer
for further customizations
-
and
-