com.caucho.http.log
Class AbstractAccessLog

java.lang.Object
  extended by com.caucho.http.log.AbstractAccessLog

public abstract class AbstractAccessLog
extends java.lang.Object

Represents an log of every top-level request to the server.


Field Summary
protected static java.util.logging.Logger log
           
protected  Path path
           
 
Constructor Summary
AbstractAccessLog()
           
 
Method Summary
 void destroy()
          Cleanup the log.
 Path getPath()
          Returns the access-log's path.
 void init()
          Initialize the log.
abstract  void log(HttpServletRequest request, HttpServletResponse response, ServletContext application)
          Logs a request using the current format.
 void setPath(Path path)
          Sets the access-log's path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final java.util.logging.Logger log

path

protected Path path
Constructor Detail

AbstractAccessLog

public AbstractAccessLog()
Method Detail

getPath

public Path getPath()
Returns the access-log's path.


setPath

public void setPath(Path path)
Sets the access-log's path.


init

public void init()
          throws ServletException,
                 java.io.IOException
Initialize the log.

Throws:
ServletException
java.io.IOException

log

public abstract void log(HttpServletRequest request,
                         HttpServletResponse response,
                         ServletContext application)
                  throws java.io.IOException
Logs a request using the current format.

Parameters:
request - the servlet request.
response - the servlet response.
Throws:
java.io.IOException

destroy

public void destroy()
             throws java.io.IOException
Cleanup the log.

Throws:
java.io.IOException