public class WebSecurity.IgnoredRequestConfigurer extends AbstractRequestMatcherRegistry<WebSecurity.IgnoredRequestConfigurer>
RequestMatcher instances that should be ignored by
Spring Security.| Modifier and Type | Method and Description |
|---|---|
WebSecurity |
and()
Returns the
WebSecurity to be returned for chaining. |
protected WebSecurity.IgnoredRequestConfigurer |
chainRequestMatchers(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 the
RequestMatcher instances. |
WebSecurity.MvcMatchersIgnoredRequestConfigurer |
mvcMatchers(HttpMethod method,
String... mvcPatterns)
Maps an
MvcRequestMatcher that also specifies a specific HttpMethod
to match on. |
WebSecurity.MvcMatchersIgnoredRequestConfigurer |
mvcMatchers(String... mvcPatterns)
Maps an
MvcRequestMatcher that does not care which HttpMethod is
used. |
antMatchers, antMatchers, antMatchers, anyRequest, createMvcMatchers, getApplicationContext, regexMatchers, regexMatchers, requestMatchers, setApplicationContextpublic WebSecurity.MvcMatchersIgnoredRequestConfigurer mvcMatchers(HttpMethod method, 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<WebSecurity.IgnoredRequestConfigurer>method - the HTTP method to match onmvcPatterns - the patterns to match on. The rules for matching are defined by
Spring MVCRequestMatcher.public WebSecurity.MvcMatchersIgnoredRequestConfigurer mvcMatchers(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<WebSecurity.IgnoredRequestConfigurer>mvcPatterns - the patterns to match on. The rules for matching are defined by
Spring MVCRequestMatcher.protected WebSecurity.IgnoredRequestConfigurer chainRequestMatchers(List<org.springframework.security.web.util.matcher.RequestMatcher> requestMatchers)
AbstractRequestMatcherRegistryRequestMatcher instances.chainRequestMatchers in class AbstractRequestMatcherRegistry<WebSecurity.IgnoredRequestConfigurer>requestMatchers - the RequestMatcher instances that were createdRequestMatcherpublic WebSecurity and()
WebSecurity to be returned for chaining.