/** * Maps a {@link List} of * {@link org.springframework.security.web.util.matcher.AntPathRequestMatcher} * instances. * * @param method the {@link HttpMethod} to use or {@code null} for any * {@link HttpMethod}. * @param antPatterns the ant patterns to create. If {@code null} or empty, then matches on nothing. * {@link org.springframework.security.web.util.matcher.AntPathRequestMatcher} from * * @return the object that is chained after creating the {@link RequestMatcher} */ public C antMatchers(HttpMethod method, String... antPatterns) { Assert.state(!this.anyRequestConfigured, "Can't configure antMatchers after anyRequest"); return chainRequestMatchers(RequestMatchers.antMatchers(method, antPatterns)); }
/** * Maps a {@link List} of * {@link org.springframework.security.web.util.matcher.AntPathRequestMatcher} * instances that do not care which {@link HttpMethod} is used. * * @param antPatterns the ant patterns to create * {@link org.springframework.security.web.util.matcher.AntPathRequestMatcher} from * * @return the object that is chained after creating the {@link RequestMatcher} */ public C antMatchers(String... antPatterns) { Assert.state(!this.anyRequestConfigured, "Can't configure antMatchers after anyRequest"); return chainRequestMatchers(RequestMatchers.antMatchers(antPatterns)); }
/** * Maps a {@link List} of * {@link org.springframework.security.web.util.matcher.AntPathRequestMatcher} * instances that do not care which {@link HttpMethod} is used. * * @param antPatterns the ant patterns to create * {@link org.springframework.security.web.util.matcher.AntPathRequestMatcher} from * * @return the object that is chained after creating the {@link RequestMatcher} */ public C antMatchers(String... antPatterns) { return chainRequestMatchers(RequestMatchers.antMatchers(antPatterns)); }
/** * Maps a {@link List} of * {@link org.springframework.security.web.util.matcher.AntPathRequestMatcher} * instances. * * @param method the {@link HttpMethod} to use or {@code null} for any * {@link HttpMethod}. * @param antPatterns the ant patterns to create. If {@code null} or empty, then matches on nothing. * {@link org.springframework.security.web.util.matcher.AntPathRequestMatcher} from * * @return the object that is chained after creating the {@link RequestMatcher} */ public C antMatchers(HttpMethod method, String... antPatterns) { return chainRequestMatchers(RequestMatchers.antMatchers(method, antPatterns)); }
/** * Create a {@link List} of {@link AntPathRequestMatcher} instances that do not * specify an {@link HttpMethod}. * * @param antPatterns the ant patterns to create {@link AntPathRequestMatcher} * from * * @return a {@link List} of {@link AntPathRequestMatcher} instances */ public static List<RequestMatcher> antMatchers(String... antPatterns) { return antMatchers(null, antPatterns); }
/** * Maps a {@link List} of * {@link org.springframework.security.web.util.matcher.AntPathRequestMatcher} * instances. * * @param method the {@link HttpMethod} to use or {@code null} for any * {@link HttpMethod}. * @param antPatterns the ant patterns to create. If {@code null} or empty, then matches on nothing. * {@link org.springframework.security.web.util.matcher.AntPathRequestMatcher} from * * @return the object that is chained after creating the {@link RequestMatcher} */ public C antMatchers(HttpMethod method, String... antPatterns) { return chainRequestMatchers(RequestMatchers.antMatchers(method, antPatterns)); }
/** * Maps a {@link List} of * {@link org.springframework.security.web.util.matcher.AntPathRequestMatcher} * instances that do not care which {@link HttpMethod} is used. * * @param antPatterns the ant patterns to create * {@link org.springframework.security.web.util.matcher.AntPathRequestMatcher} from * * @return the object that is chained after creating the {@link RequestMatcher} */ public C antMatchers(String... antPatterns) { return chainRequestMatchers(RequestMatchers.antMatchers(antPatterns)); }
/** * Create a {@link List} of {@link AntPathRequestMatcher} instances that do not * specify an {@link HttpMethod}. * * @param antPatterns the ant patterns to create {@link AntPathRequestMatcher} * from * * @return a {@link List} of {@link AntPathRequestMatcher} instances */ public static List<RequestMatcher> antMatchers(String... antPatterns) { return antMatchers(null, antPatterns); }
/** * Create a {@link List} of {@link AntPathRequestMatcher} instances that do not * specify an {@link HttpMethod}. * * @param antPatterns the ant patterns to create {@link AntPathRequestMatcher} * from * * @return a {@link List} of {@link AntPathRequestMatcher} instances */ public static List<RequestMatcher> antMatchers(String... antPatterns) { return antMatchers(null, antPatterns); }