类 CompositeFilter
java.lang.Object
cn.taketoday.web.servlet.CompositeFilter
- 所有已实现的接口:
Filter
A generic composite servlet
Filter that just delegates its behavior
to a chain (list) of user-supplied filters, achieving the functionality of a
FilterChain, but conveniently using only Filter instances.- 从以下版本开始:
- 4.0
- 作者:
- Dave Syer, TODAY 2021/9/11 18:47
-
嵌套类概要
嵌套类 -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voiddestroy()Clean up all the filters supplied, calling each one's destroy method in turn, but in reverse order.voiddoFilter(ServletRequest request, ServletResponse response, FilterChain chain) Forms a temporary chain from the list of delegate filters supplied (setFilters(java.util.List<? extends jakarta.servlet.Filter>)) and executes them in order.voidinit(FilterConfig config) Initialize all the filters, calling each one's init method in turn in the order supplied.voidsetFilters(List<? extends Filter> filters)
-
字段详细资料
-
filters
-
-
构造器详细资料
-
CompositeFilter
public CompositeFilter()
-
-
方法详细资料
-
setFilters
-
init
Initialize all the filters, calling each one's init method in turn in the order supplied.- 指定者:
init在接口中Filter- 抛出:
ServletException- 另请参阅:
-
doFilter
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException Forms a temporary chain from the list of delegate filters supplied (setFilters(java.util.List<? extends jakarta.servlet.Filter>)) and executes them in order. Each filter delegates to the next one in the list, achieving the normal behavior of aFilterChain, despite the fact that this is aFilter. -
destroy
public void destroy()Clean up all the filters supplied, calling each one's destroy method in turn, but in reverse order.
-