Filter过滤器中哪个方法在过滤器被销毁时被调用?
A: init()
B: doFilter(ServletRequest req, ServletResponse resp, FilterChain chain)
C: destory()
D: init(FilterConfig config)
A: init()
B: doFilter(ServletRequest req, ServletResponse resp, FilterChain chain)
C: destory()
D: init(FilterConfig config)
举一反三
- 在一个Filter中,处理filter的业务的是()方法 A: dealFilter(ServletRequest reg,ServletResponse res,FilterChain chain) B: dealFilter(ServletRequest reg,ServletResponse res) C: doFilter(ServletRequest reg,ServletResponse res,FilterChain chain) D: doFilter(ServletRequest reg,ServletResponse res)
- 在一个Filter中,处理Filter业务的是( )方法 A: doFilter (HttpServletRequest request,HttpServletResponse response,FilterChainchain) B: doFilter (HttpServletRequest request,HttpServletResponse response) C: doFilter (ServletRequest request,ServletResponse response ,FilterChain chain) D: doFilter (ServletRequest request, ServletResponse response)
- 编写Servlet过滤器时,()方法用于调用过滤器链中的下一个过滤器。 A: Servlet B: FilterConfig C: Filter D: FilterChain
- Filter被称作过滤器或拦截器,基本功能是对Servlet容器调用Servlet的过程进行拦截。Filter实现拦截的方法是() A: FilterChain() B: Filter() C: doFilter() D: init()
- 下面哪个方法不属于Servlet接口 A: init(ServletConfig config) B: destroy() C: getServletInfo() D: service(ServletRequest req, ServletResponse res) E: doGet(HttpServletRequest req, HttpServletResponse res)