/**
 * Company Name : 中贸促信息技术有限责任公司	
 * Project Name:investWebsite
 * File Name:XSSFilter2.java
 * Package Name:ccpit.base.utils
 * Date:2016年8月18日下午1:19:41
 * Copyright (c) 2016, liyang@ccpit.org All Rights Reserved.
 *
 */
package org.ccpit.base.utils;

import java.io.IOException;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;

/**
 * ClassName: XSSFilter2 <br/>
 * Function: TODO ADD FUNCTION. <br/>
 * Reason: TODO ADD REASON(可选). <br/>
 * date: 2016年8月18日 下午1:19:41 <br/>
 *
 * @author liyang
 * @version 
 * @since JDK 1.6
 */
public class XSSFilter2 implements Filter {
	@SuppressWarnings("unused")  
	private FilterConfig filterConfig;  
	public void destroy() {  
	    this.filterConfig = null;  
	}  
	public void doFilter(ServletRequest request, ServletResponse response,  
	        FilterChain chain) throws IOException, ServletException {  
	    chain.doFilter(new XssRequestWrapper2((HttpServletRequest) request), response);  
	}  
	public void init(FilterConfig filterConfig) throws ServletException {  
	    this.filterConfig = filterConfig;  
	}  
}
