单项选择题
下列关于Filter生命周期,说法有误的是()
A.服务器会调用doFile方法对Filter对象进行初始化
B.服务器会调用init()方法对Filter对象进行初始化
C.销毁Filter对象时,服务器调用destory()方法来释放资源
D.在对多个拦截器的调用过程中,当前过滤器通过FilterChain对象的doFile()方法将请求传给下一个过滤器或其他资源
点击查看答案&解析
相关考题
-
单项选择题
在Filter相关的API中,用于调用过滤器链中的下一个过滤器的是()
A.Filter接口
B.FilterContex接口
C.FilterConfig接口
D.FilterChain接口 -
单项选择题
下列选项中,返回FilterConfig对象中所包装的ServletContext对象的方法是()
A.String getFilterName()
B.String getInitParameter(String name)
C.Enumeration getInitParameterNames();
D.ServletContext getServletContext(); -
单项选择题
Filter的功能实现需要调用Filter接口的()
A.init()
B.doFilter()
C.destrory()
D.delete()
