/**
* Returns the <code>FilterChain</code> to use for the specified application path, or <code>null</code> if the original <code>FilterChain</code> should be used. <p/> The default implementation simply calls <code>this.chains.get(chainUrl)</code> to acquire the configured <code>List&lt;Filter&gt;</code> filter chain. If that configured chain is non-null and not empty, it is returned, otherwise <code>null</code> is returned to indicate that the <code>originalChain</code> should be used instead.
* @param chainUrl the configured filter chain url
* @param originalChain the original FilterChain given by the Servlet container.
* @return the <code>FilterChain</code> to use for the specified application path, or <code>null</code> if theoriginal <code>FilterChain</code> should be used.
*/
protected FilterChain getChain(String chainUrl,FilterChain originalChain){
List<Filter> pathFilters=this.chains.get(chainUrl);
if (pathFilters != null && !pathFilters.isEmpty()) {
return createChain(pathFilters,originalChain);
}
return null;
}

Example 32

From project maven-wagon, under directory /wagon-tcks/wagon-tck-http/src/main/java/org/apache/maven/wagon/tck/http/fixture/.