org.springframework.security.config.annotation.web.configurers
Class AbstractRequestMatcherMappingConfigurer<B extends SecurityBuilder<O>,C,O>

java.lang.Object
  extended by org.springframework.security.config.annotation.SecurityConfigurerAdapter<O,B>
      extended by org.springframework.security.config.annotation.web.AbstractRequestMatcherConfigurer<B,C,O>
          extended by org.springframework.security.config.annotation.web.configurers.AbstractRequestMatcherMappingConfigurer<B,C,O>
Type Parameters:
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 RequestMatcher
O - The Object being built by Builder B
All Implemented Interfaces:
SecurityConfigurer<O,B>
Direct Known Subclasses:
ChannelSecurityConfigurer, ExpressionUrlAuthorizationConfigurer, UrlAuthorizationConfigurer

public abstract class AbstractRequestMatcherMappingConfigurer<B extends SecurityBuilder<O>,C,O>
extends AbstractRequestMatcherConfigurer<B,C,O>

A base class for registering RequestMatcher's. For example, it might allow for specifying which RequestMatcher require a certain level of authorization.

Since:
3.2
See Also:
ChannelSecurityConfigurer, UrlAuthorizationConfigurer, ExpressionUrlAuthorizationConfigurer

Constructor Summary
AbstractRequestMatcherMappingConfigurer()
           
 
Method Summary
protected  C chainRequestMatchers(List<RequestMatcher> requestMatchers)
          Marks the RequestMatcher's as unmapped and then calls chainRequestMatchersInternal(List).
protected abstract  C chainRequestMatchersInternal(List<RequestMatcher> requestMatchers)
          Subclasses should implement this method for returning the object that is chained to the creation of the RequestMatcher instances.
 
Methods inherited from class org.springframework.security.config.annotation.web.AbstractRequestMatcherConfigurer
antMatchers, antMatchers, anyRequest, regexMatchers, regexMatchers, requestMatchers
 
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

AbstractRequestMatcherMappingConfigurer

public AbstractRequestMatcherMappingConfigurer()
Method Detail

chainRequestMatchers

protected final C chainRequestMatchers(List<RequestMatcher> requestMatchers)
Marks the RequestMatcher's as unmapped and then calls chainRequestMatchersInternal(List).

Specified by:
chainRequestMatchers in class AbstractRequestMatcherConfigurer<B extends SecurityBuilder<O>,C,O>
Parameters:
requestMatchers - the RequestMatcher instances that were created
Returns:
the chained Object for the subclass which allows association of something else to the RequestMatcher

chainRequestMatchersInternal

protected abstract C chainRequestMatchersInternal(List<RequestMatcher> requestMatchers)
Subclasses should implement this method for returning the object that is chained to the creation of the RequestMatcher instances.

Parameters:
requestMatchers - the RequestMatcher instances that were created
Returns:
the chained Object for the subclass which allows association of something else to the RequestMatcher