Class UrlAuthorizationConfigurer.StandardInterceptUrlRegistry
- java.lang.Object
-
- org.springframework.security.config.annotation.web.AbstractRequestMatcherRegistry<C>
-
- org.springframework.security.config.annotation.web.configurers.AbstractConfigAttributeRequestMatcherRegistry<T>
-
- org.springframework.security.config.annotation.web.configurers.UrlAuthorizationConfigurer.StandardInterceptUrlRegistry
-
- Enclosing class:
- UrlAuthorizationConfigurer<H extends HttpSecurityBuilder<H>>
public class UrlAuthorizationConfigurer.StandardInterceptUrlRegistry extends AbstractConfigAttributeRequestMatcherRegistry<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description R
accessDecisionManager(AccessDecisionManager accessDecisionManager)
Allows setting theAccessDecisionManager
.H
and()
protected UrlAuthorizationConfigurer.AuthorizedUrl
chainRequestMatchersInternal(java.util.List<RequestMatcher> requestMatchers)
Subclasses should implement this method for returning the object that is chained to the creation of theRequestMatcher
instances.R
filterSecurityInterceptorOncePerRequest(boolean filterSecurityInterceptorOncePerRequest)
Allows setting if theFilterSecurityInterceptor
should be only applied once per request (i.e.UrlAuthorizationConfigurer.MvcMatchersAuthorizedUrl
mvcMatchers(java.lang.String... patterns)
Maps anMvcRequestMatcher
that does not care whichHttpMethod
is used.UrlAuthorizationConfigurer.MvcMatchersAuthorizedUrl
mvcMatchers(org.springframework.http.HttpMethod method, java.lang.String... mvcPatterns)
Maps anMvcRequestMatcher
that also specifies a specificHttpMethod
to match on.UrlAuthorizationConfigurer.StandardInterceptUrlRegistry
withObjectPostProcessor(ObjectPostProcessor<?> objectPostProcessor)
Adds anObjectPostProcessor
for this class.-
Methods inherited from class org.springframework.security.config.annotation.web.configurers.AbstractConfigAttributeRequestMatcherRegistry
chainRequestMatchers
-
Methods inherited from class org.springframework.security.config.annotation.web.AbstractRequestMatcherRegistry
antMatchers, antMatchers, antMatchers, anyRequest, createMvcMatchers, getApplicationContext, regexMatchers, regexMatchers, requestMatchers, setApplicationContext
-
-
-
-
Method Detail
-
mvcMatchers
public UrlAuthorizationConfigurer.MvcMatchersAuthorizedUrl mvcMatchers(org.springframework.http.HttpMethod method, java.lang.String... mvcPatterns)
Description copied from class:AbstractRequestMatcherRegistry
Maps an
MvcRequestMatcher
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 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:
mvcMatchers
in classAbstractRequestMatcherRegistry<UrlAuthorizationConfigurer.AuthorizedUrl>
- 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
public UrlAuthorizationConfigurer.MvcMatchersAuthorizedUrl mvcMatchers(java.lang.String... patterns)
Description copied from class:AbstractRequestMatcherRegistry
Maps an
MvcRequestMatcher
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 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:
mvcMatchers
in classAbstractRequestMatcherRegistry<UrlAuthorizationConfigurer.AuthorizedUrl>
- 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
.
-
chainRequestMatchersInternal
protected final UrlAuthorizationConfigurer.AuthorizedUrl chainRequestMatchersInternal(java.util.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.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.StandardInterceptUrlRegistry withObjectPostProcessor(ObjectPostProcessor<?> objectPostProcessor)
Adds anObjectPostProcessor
for this class.- Parameters:
objectPostProcessor
-- Returns:
- the
ExpressionUrlAuthorizationConfigurer
for further customizations
-
and
public H and()
-
accessDecisionManager
public R accessDecisionManager(AccessDecisionManager accessDecisionManager)
Allows setting theAccessDecisionManager
. If none is provided, a defaultAccessDecisionManager
is created.- Parameters:
accessDecisionManager
- theAccessDecisionManager
to use- Returns:
- the
AbstractInterceptUrlConfigurer
for further customization
-
filterSecurityInterceptorOncePerRequest
public R filterSecurityInterceptorOncePerRequest(boolean filterSecurityInterceptorOncePerRequest)
Allows setting if theFilterSecurityInterceptor
should be only applied once per request (i.e. if the filter intercepts on a forward, should it be applied again).- Parameters:
filterSecurityInterceptorOncePerRequest
- if theFilterSecurityInterceptor
should be only applied once per request- Returns:
- the
AbstractInterceptUrlConfigurer
for further customization
-
-