Class AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry
- java.lang.Object
-
- org.springframework.security.config.annotation.web.AbstractRequestMatcherRegistry<AuthorizeHttpRequestsConfigurer.AuthorizedUrl>
-
- org.springframework.security.config.annotation.web.configurers.AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry
-
- Enclosing class:
- AuthorizeHttpRequestsConfigurer<H extends HttpSecurityBuilder<H>>
public final class AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry extends AbstractRequestMatcherRegistry<AuthorizeHttpRequestsConfigurer.AuthorizedUrl>
Registry for mapping aRequestMatcherto anAuthorizationManager.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Hand()Return theHttpSecurityBuilderwhen done using theAuthorizeHttpRequestsConfigurer.protected AuthorizeHttpRequestsConfigurer.AuthorizedUrlchainRequestMatchers(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.AuthorizeHttpRequestsConfigurer.MvcMatchersAuthorizedUrlmvcMatchers(java.lang.String... mvcPatterns)Maps anMvcRequestMatcherthat does not care whichHttpMethodis used.AuthorizeHttpRequestsConfigurer.MvcMatchersAuthorizedUrlmvcMatchers(org.springframework.http.HttpMethod method, java.lang.String... mvcPatterns)Maps anMvcRequestMatcherthat also specifies a specificHttpMethodto match on.AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistrywithObjectPostProcessor(ObjectPostProcessor<?> objectPostProcessor)Adds anObjectPostProcessorfor this class.-
Methods inherited from class org.springframework.security.config.annotation.web.AbstractRequestMatcherRegistry
antMatchers, antMatchers, antMatchers, anyRequest, createMvcMatchers, dispatcherTypeMatchers, dispatcherTypeMatchers, getApplicationContext, regexMatchers, regexMatchers, requestMatchers, setApplicationContext
-
-
-
-
Method Detail
-
mvcMatchers
public AuthorizeHttpRequestsConfigurer.MvcMatchersAuthorizedUrl mvcMatchers(java.lang.String... mvcPatterns)
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<AuthorizeHttpRequestsConfigurer.AuthorizedUrl>- Parameters:
mvcPatterns- 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 AuthorizeHttpRequestsConfigurer.MvcMatchersAuthorizedUrl mvcMatchers(org.springframework.http.HttpMethod method, java.lang.String... mvcPatterns)
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<AuthorizeHttpRequestsConfigurer.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.
-
chainRequestMatchers
protected AuthorizeHttpRequestsConfigurer.AuthorizedUrl chainRequestMatchers(java.util.List<org.springframework.security.web.util.matcher.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<AuthorizeHttpRequestsConfigurer.AuthorizedUrl>- Parameters:
requestMatchers- theRequestMatcherinstances that were created- Returns:
- the chained Object for the subclass which allows association of something
else to the
RequestMatcher
-
withObjectPostProcessor
public AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry withObjectPostProcessor(ObjectPostProcessor<?> objectPostProcessor)
Adds anObjectPostProcessorfor this class.- Parameters:
objectPostProcessor- theObjectPostProcessorto use- Returns:
- the
AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistryfor further customizations
-
and
public H and()
Return theHttpSecurityBuilderwhen done using theAuthorizeHttpRequestsConfigurer. This is useful for method chaining.- Returns:
- the
HttpSecurityBuilderfor further customizations
-
-