Class FilterRegistrationBean<T extends Filter>

Type Parameters:
T - the type of Filter to register
All Implemented Interfaces:
Aware, BeanNameAware, ServletContextInitializer, Ordered

public class FilterRegistrationBean<T extends Filter> extends AbstractFilterRegistrationBean<T>
A ServletContextInitializer to register Filters in a Servlet 3.0+ container. Similar to the registration features provided by ServletContext but with a Spring Bean friendly design.

The Filter must be specified before calling RegistrationBean.onStartup(ServletContext). Registrations can be associated with URL patterns and/or servlets (either by name or through a ServletRegistrationBeans). When no URL pattern or servlets are specified the filter will be associated to '/*'. The filter name will be deduced if not specified.

Since:
1.4.0
Author:
Phillip Webb
See Also: