📄 httpfilter.java
字号:
package com.tarena.netctoss.util;import java.io.IOException;import javax.servlet.*;import javax.servlet.http.*;public abstract class HttpFilter implements Filter{ private FilterConfig config; public void destroy() { } public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { doFilter((HttpServletRequest)request,(HttpServletResponse)response,chain); } public abstract void doFilter(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws IOException,ServletException; public void init(FilterConfig config) throws ServletException { this.config=config; init(); } public void init(){ } public FilterConfig getFilterConfig(){ return config; } public String getInitParameter(String name){ return config.getInitParameter(name); } public ServletContext getServletContext(){ return config.getServletContext(); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -