|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.security.config.annotation.SecurityConfigurerAdapter<O,B> org.springframework.security.config.annotation.web.AbstractRequestMatcherConfigurer<B,C,O>
B
- The Builder that is building Object O and is configured by this AbstractRequestMatcherMappingConfigurer
C
- The object that is returned or Chained after creating the RequestMatcherO
- The Object being built by Builder Bpublic abstract class AbstractRequestMatcherConfigurer<B extends SecurityBuilder<O>,C,O>
A base class for registering RequestMatcher
's. For example, it might allow for specifying which
RequestMatcher
require a certain level of authorization.
Constructor Summary | |
---|---|
AbstractRequestMatcherConfigurer()
|
Method Summary | |
---|---|
C |
antMatchers(HttpMethod method,
String... antPatterns)
Maps a List of AntPathRequestMatcher instances. |
C |
antMatchers(String... antPatterns)
Maps a List of AntPathRequestMatcher instances that do
not care which HttpMethod is used. |
C |
anyRequest()
Maps any request. |
protected abstract C |
chainRequestMatchers(List<RequestMatcher> requestMatchers)
Subclasses should implement this method for returning the object that is chained to the creation of the RequestMatcher instances. |
C |
regexMatchers(HttpMethod method,
String... regexPatterns)
Maps a List of RegexRequestMatcher instances. |
C |
regexMatchers(String... regexPatterns)
Create a List of RegexRequestMatcher instances that do not
specify an HttpMethod . |
C |
requestMatchers(RequestMatcher... requestMatchers)
Associates a list of RequestMatcher instances with the AbstractRequestMatcherMappingConfigurer |
Methods inherited from class org.springframework.security.config.annotation.SecurityConfigurerAdapter |
---|
addObjectPostProcessor, and, configure, getBuilder, init, postProcess, setBuilder |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractRequestMatcherConfigurer()
Method Detail |
---|
public C anyRequest()
method
- the HttpMethod
to use or null
for any HttpMethod
.antPatterns
- the ant patterns to create AntPathRequestMatcher
from
RequestMatcher
public C antMatchers(HttpMethod method, String... antPatterns)
List
of AntPathRequestMatcher
instances.
method
- the HttpMethod
to use or null
for any HttpMethod
.antPatterns
- the ant patterns to create AntPathRequestMatcher
from
RequestMatcher
public C antMatchers(String... antPatterns)
List
of AntPathRequestMatcher
instances that do
not care which HttpMethod
is used.
antPatterns
- the ant patterns to create AntPathRequestMatcher
from
RequestMatcher
public C regexMatchers(HttpMethod method, String... regexPatterns)
List
of RegexRequestMatcher
instances.
method
- the HttpMethod
to use or null
for any HttpMethod
.regexPatterns
- the regular expressions to create
RegexRequestMatcher
from
RequestMatcher
public C regexMatchers(String... regexPatterns)
List
of RegexRequestMatcher
instances that do not
specify an HttpMethod
.
regexPatterns
- the regular expressions to create
RegexRequestMatcher
from
RequestMatcher
public C requestMatchers(RequestMatcher... requestMatchers)
RequestMatcher
instances with the AbstractRequestMatcherMappingConfigurer
requestMatchers
- the RequestMatcher
instances
RequestMatcher
protected abstract C chainRequestMatchers(List<RequestMatcher> requestMatchers)
RequestMatcher
instances.
requestMatchers
- the RequestMatcher
instances that were created
RequestMatcher
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |