Spring Security is able to combine multiple filters into one filter using FilterChainProxy , which is included in Spring Security. Since the code exists in Spring Security, you cannot use it without adding a dependency on spring-security-web, without copying the code into your own project (which is acceptable for a license). FilterChainProxy is indeed a Spring Bean specific filter delegated by the delegation of FilterProxy. So it looks like
DelegatingFilterProxy
-> delegates to FilterChainProxy
-> delegates to multiple Filter defined on the FilterChainProxy
source
share