1 16 17 package org.apache.tester; 18 19 20 import java.io.*; 21 import java.util.*; 22 import javax.servlet.*; 23 import javax.servlet.http.*; 24 25 32 33 public class StaticFilter implements Filter { 34 35 36 38 39 40 42 43 46 protected FilterConfig config = null; 47 48 49 51 52 55 public void destroy() { 56 57 config = null; 58 59 } 60 61 62 65 public void doFilter(ServletRequest inRequest, ServletResponse inResponse, 66 FilterChain chain) 67 throws IOException, ServletException { 68 69 StaticLogger.reset(); 71 chain.doFilter(inRequest, inResponse); 72 73 } 74 75 76 81 public void init(FilterConfig config) throws ServletException { 82 83 this.config = config; 84 85 } 86 87 88 } 89 | Popular Tags |