public final class AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry extends AbstractRequestMatcherRegistry<AuthorizeHttpRequestsConfigurer.AuthorizedUrl>
RequestMatcher
to an AuthorizationManager
.Modifier and Type | Method and Description |
---|---|
H |
and()
Return the
HttpSecurityBuilder when done using the
AuthorizeHttpRequestsConfigurer . |
protected AuthorizeHttpRequestsConfigurer.AuthorizedUrl |
chainRequestMatchers(java.util.List<RequestMatcher> requestMatchers)
Subclasses should implement this method for returning the object that is chained to
the creation of the
RequestMatcher instances. |
AuthorizeHttpRequestsConfigurer.MvcMatchersAuthorizedUrl |
mvcMatchers(org.springframework.http.HttpMethod method,
java.lang.String... mvcPatterns)
Maps an
MvcRequestMatcher that also specifies a specific HttpMethod
to match on. |
AuthorizeHttpRequestsConfigurer.MvcMatchersAuthorizedUrl |
mvcMatchers(java.lang.String... mvcPatterns)
Maps an
MvcRequestMatcher that does not care which HttpMethod is
used. |
AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry |
withObjectPostProcessor(ObjectPostProcessor<?> objectPostProcessor)
Adds an
ObjectPostProcessor for this class. |
antMatchers, antMatchers, antMatchers, anyRequest, createMvcMatchers, dispatcherTypeMatchers, dispatcherTypeMatchers, getApplicationContext, regexMatchers, regexMatchers, requestMatchers, setApplicationContext
public AuthorizeHttpRequestsConfigurer.MvcMatchersAuthorizedUrl mvcMatchers(java.lang.String... mvcPatterns)
AbstractRequestMatcherRegistry
Maps an MvcRequestMatcher
that does not care which HttpMethod
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.
mvcMatchers
in class AbstractRequestMatcherRegistry<AuthorizeHttpRequestsConfigurer.AuthorizedUrl>
mvcPatterns
- the patterns to match on. The rules for matching are defined by
Spring MVCRequestMatcher
.public AuthorizeHttpRequestsConfigurer.MvcMatchersAuthorizedUrl mvcMatchers(org.springframework.http.HttpMethod method, java.lang.String... mvcPatterns)
AbstractRequestMatcherRegistry
Maps an MvcRequestMatcher
that also specifies a specific HttpMethod
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.
mvcMatchers
in class AbstractRequestMatcherRegistry<AuthorizeHttpRequestsConfigurer.AuthorizedUrl>
method
- the HTTP method to match onmvcPatterns
- the patterns to match on. The rules for matching are defined by
Spring MVCRequestMatcher
.protected AuthorizeHttpRequestsConfigurer.AuthorizedUrl chainRequestMatchers(java.util.List<RequestMatcher> requestMatchers)
AbstractRequestMatcherRegistry
RequestMatcher
instances.chainRequestMatchers
in class AbstractRequestMatcherRegistry<AuthorizeHttpRequestsConfigurer.AuthorizedUrl>
requestMatchers
- the RequestMatcher
instances that were createdRequestMatcher
public AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry withObjectPostProcessor(ObjectPostProcessor<?> objectPostProcessor)
ObjectPostProcessor
for this class.objectPostProcessor
- the ObjectPostProcessor
to useAuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry
for further
customizationspublic H and()
HttpSecurityBuilder
when done using the
AuthorizeHttpRequestsConfigurer
. This is useful for method chaining.HttpSecurityBuilder
for further customizations