Example usage for org.springframework.security.web SecurityFilterChain getFilters

List of usage examples for org.springframework.security.web SecurityFilterChain getFilters

Introduction

In this page you can find the example usage for org.springframework.security.web SecurityFilterChain getFilters.

Prototype

List<Filter> getFilters();

Source Link

Usage

From source file:org.springframework.security.web.FilterChainProxy.java

/**
 * Returns the first filter chain matching the supplied URL.
 *
 * @param request the request to match/*from ww  w . ja v  a2s  .  c  o  m*/
 * @return an ordered array of Filters defining the filter chain
 */
private List<Filter> getFilters(HttpServletRequest request) {
    for (SecurityFilterChain chain : filterChains) {
        if (chain.matches(request)) {
            return chain.getFilters();
        }
    }

    return null;
}