Class ExpressionUrlAuthorizationConfigurer.ExpressionInterceptUrlRegistry
- 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.AbstractInterceptUrlConfigurer.AbstractInterceptUrlRegistry<ExpressionUrlAuthorizationConfigurer.ExpressionInterceptUrlRegistry,ExpressionUrlAuthorizationConfigurer.AuthorizedUrl>
-
- org.springframework.security.config.annotation.web.configurers.ExpressionUrlAuthorizationConfigurer.ExpressionInterceptUrlRegistry
-
- Enclosing class:
- ExpressionUrlAuthorizationConfigurer<H extends HttpSecurityBuilder<H>>
public final class ExpressionUrlAuthorizationConfigurer.ExpressionInterceptUrlRegistry extends AbstractInterceptUrlConfigurer.AbstractInterceptUrlRegistry<ExpressionUrlAuthorizationConfigurer.ExpressionInterceptUrlRegistry,ExpressionUrlAuthorizationConfigurer.AuthorizedUrl>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Hand()protected ExpressionUrlAuthorizationConfigurer.AuthorizedUrlchainRequestMatchersInternal(java.util.List<org.springframework.security.web.util.matcher.RequestMatcher> requestMatchers)Subclasses should implement this method for returning the object that is chained to the creation of theRequestMatcherinstances.ExpressionUrlAuthorizationConfigurer.ExpressionInterceptUrlRegistryexpressionHandler(org.springframework.security.access.expression.SecurityExpressionHandler<org.springframework.security.web.FilterInvocation> expressionHandler)Allows customization of theSecurityExpressionHandlerto be used.ExpressionUrlAuthorizationConfigurer.MvcMatchersAuthorizedUrlmvcMatchers(java.lang.String... patterns)Deprecated.ExpressionUrlAuthorizationConfigurer.MvcMatchersAuthorizedUrlmvcMatchers(org.springframework.http.HttpMethod method, java.lang.String... mvcPatterns)Deprecated.ExpressionUrlAuthorizationConfigurer.ExpressionInterceptUrlRegistrywithObjectPostProcessor(ObjectPostProcessor<?> objectPostProcessor)Adds anObjectPostProcessorfor 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
antMatchers, antMatchers, antMatchers, anyRequest, createMvcMatchers, dispatcherTypeMatchers, dispatcherTypeMatchers, getApplicationContext, regexMatchers, regexMatchers, requestMatchers, requestMatchers, requestMatchers, requestMatchers, setApplicationContext
-
-
-
-
Method Detail
-
mvcMatchers
@Deprecated public ExpressionUrlAuthorizationConfigurer.MvcMatchersAuthorizedUrl mvcMatchers(org.springframework.http.HttpMethod method, java.lang.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<ExpressionUrlAuthorizationConfigurer.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
@Deprecated public ExpressionUrlAuthorizationConfigurer.MvcMatchersAuthorizedUrl mvcMatchers(java.lang.String... patterns)
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<ExpressionUrlAuthorizationConfigurer.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 ExpressionUrlAuthorizationConfigurer.AuthorizedUrl chainRequestMatchersInternal(java.util.List<org.springframework.security.web.util.matcher.RequestMatcher> requestMatchers)
Description copied from class:AbstractConfigAttributeRequestMatcherRegistrySubclasses should implement this method for returning the object that is chained to the creation of theRequestMatcherinstances.- Specified by:
chainRequestMatchersInternalin classAbstractConfigAttributeRequestMatcherRegistry<ExpressionUrlAuthorizationConfigurer.AuthorizedUrl>- Parameters:
requestMatchers- theRequestMatcherinstances that were created- Returns:
- the chained Object for the subclass which allows association of something
else to the
RequestMatcher
-
expressionHandler
public ExpressionUrlAuthorizationConfigurer.ExpressionInterceptUrlRegistry expressionHandler(org.springframework.security.access.expression.SecurityExpressionHandler<org.springframework.security.web.FilterInvocation> expressionHandler)
Allows customization of theSecurityExpressionHandlerto be used. The default isDefaultWebSecurityExpressionHandler- Parameters:
expressionHandler- theSecurityExpressionHandlerto be used- Returns:
- the
ExpressionUrlAuthorizationConfigurerfor further customization.
-
withObjectPostProcessor
public ExpressionUrlAuthorizationConfigurer.ExpressionInterceptUrlRegistry withObjectPostProcessor(ObjectPostProcessor<?> objectPostProcessor)
Adds anObjectPostProcessorfor this class.- Parameters:
objectPostProcessor-- Returns:
- the
ExpressionUrlAuthorizationConfigurerfor further customizations
-
and
public H and()
-
-