Example usage for org.apache.shiro.web.servlet ProxiedFilterChain ProxiedFilterChain

List of usage examples for org.apache.shiro.web.servlet ProxiedFilterChain ProxiedFilterChain

Introduction

In this page you can find the example usage for org.apache.shiro.web.servlet ProxiedFilterChain ProxiedFilterChain.

Prototype

public ProxiedFilterChain(FilterChain orig, List<Filter> filters) 

Source Link

Usage

From source file:com.stormpath.shiro.servlet.filter.ShiroPrioritizedFilterChainResolver.java

License:Apache License

@Override
public FilterChain getChain(ServletRequest request, ServletResponse response, FilterChain chain) {

    FilterChain target = delegate.getChain(request, response, chain);
    if (target == null) {
        target = chain;/*from w w  w  . jav  a2 s  .  c om*/
    }

    if (CollectionUtils.isEmpty(priorityFilters)) {
        return target;
    }

    return new ProxiedFilterChain(target, priorityFilters);
}