⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 httpfilter.java

📁 简单的用户管理
💻 JAVA
字号:
package com.howeisoft.ums.util;

import javax.servlet.*;
import javax.servlet.http.*;

import com.sun.media.codec.video.cinepak.CineStore;

import java.io.*;

public abstract class HttpFilter implements Filter
{
  private FilterConfig config;
  
  public void init(FilterConfig config) throws ServletException
  {
    this.config = config;
    init();
  }
  
  public void init() throws ServletException
  {
  }
  
  public FilterConfig getFilterConfig()
  {
    return config;
  }
  
  public String getInitParameter(String name)
  {
    return config.getInitParameter(name);
  }
  
  public ServletContext getServletContext()
  {
    return config.getServletContext();
  }
  
  public void doFilter(ServletRequest request, 
                        ServletResponse response, 
                          FilterChain chain)
                           throws ServletException, IOException
  {
    doFilter((HttpServletRequest)request, (HttpServletResponse)response, chain);
  }
  
  public abstract void doFilter(HttpServletRequest request, 
                        HttpServletResponse response, 
                          FilterChain chain)
                           throws ServletException, IOException;
  
  public void destroy()
  {
	  this.config=null;
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -