org.springframework.security.config.annotation.web.builders
Class HttpSecurity.RequestMatcherConfigurer

java.lang.Object
  extended by org.springframework.security.config.annotation.SecurityConfigurerAdapter<O,B>
      extended by org.springframework.security.config.annotation.web.AbstractRequestMatcherConfigurer<HttpSecurity,HttpSecurity.RequestMatcherConfigurer,DefaultSecurityFilterChain>
          extended by org.springframework.security.config.annotation.web.builders.HttpSecurity.RequestMatcherConfigurer
All Implemented Interfaces:
SecurityConfigurer<DefaultSecurityFilterChain,HttpSecurity>
Enclosing class:
HttpSecurity

public final class HttpSecurity.RequestMatcherConfigurer
extends AbstractRequestMatcherConfigurer<HttpSecurity,HttpSecurity.RequestMatcherConfigurer,DefaultSecurityFilterChain>

Allows mapping HTTP requests that this HttpSecurity will be used for

Since:
3.2

Method Summary
 HttpSecurity and()
          Return the HttpSecurity for further customizations
protected  HttpSecurity.RequestMatcherConfigurer chainRequestMatchers(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, configure, getBuilder, init, postProcess, setBuilder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

chainRequestMatchers

protected HttpSecurity.RequestMatcherConfigurer chainRequestMatchers(List<RequestMatcher> requestMatchers)
Description copied from class: AbstractRequestMatcherConfigurer
Subclasses should implement this method for returning the object that is chained to the creation of the RequestMatcher instances.

Specified by:
chainRequestMatchers in class AbstractRequestMatcherConfigurer<HttpSecurity,HttpSecurity.RequestMatcherConfigurer,DefaultSecurityFilterChain>
Parameters:
requestMatchers - the RequestMatcher instances that were created
Returns:
the chained Object for the subclass which allows association of something else to the RequestMatcher

and

public HttpSecurity and()
Return the HttpSecurity for further customizations

Overrides:
and in class SecurityConfigurerAdapter<DefaultSecurityFilterChain,HttpSecurity>
Returns:
the HttpSecurity for further customizations