1 28 29 package com.caucho.http.log; 30 31 import com.caucho.log.Log; 32 import com.caucho.vfs.Path; 33 34 import javax.servlet.ServletContext ; 35 import javax.servlet.ServletException ; 36 import javax.servlet.http.HttpServletRequest ; 37 import javax.servlet.http.HttpServletResponse ; 38 import java.io.IOException ; 39 import java.util.logging.Logger ; 40 41 44 abstract public class AbstractAccessLog { 45 protected static final Logger log = Log.open(AbstractAccessLog.class); 46 47 protected Path path; 48 49 52 public Path getPath() 53 { 54 return path; 55 } 56 57 60 public void setPath(Path path) 61 { 62 this.path = path; 63 } 64 65 68 public void init() 69 throws ServletException , IOException 70 { 71 } 72 73 79 public abstract void log(HttpServletRequest request, 80 HttpServletResponse response, 81 ServletContext application) 82 throws IOException ; 83 84 87 public void destroy() 88 throws IOException 89 { 90 } 91 } 92 | Popular Tags |