|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.server.log.AbstractAccessLog
public abstract class AbstractAccessLog
Represents an log of every top-level request to the server.
Field Summary | |
---|---|
protected Path |
_path
|
protected java.lang.String |
_pathFormat
|
protected static java.util.logging.Logger |
log
|
Constructor Summary | |
---|---|
protected |
AbstractAccessLog()
|
Method Summary | |
---|---|
void |
addInit(ContainerProgram init)
|
void |
destroy()
Cleanup the log. |
void |
flush()
Flushes the log. |
Path |
getPath()
Returns the access-log's path. |
java.lang.String |
getPathFormat()
Returns the formatted path |
void |
init()
Initialize the log. |
boolean |
isHostnameDnsLookup()
The hostname-dns-lookup flag for Apache compatibility. |
abstract void |
log(HttpServletRequest request,
HttpServletResponse response,
ServletContext application)
Logs a request using the current format. |
void |
setHostnameDnsLookup(boolean enable)
The hostname-dns-lookup flag for Apache compatibility. |
void |
setId(Path path)
Sets the access-log's path (backwards compatibility). |
void |
setPath(Path path)
Sets the access-log's path. |
void |
setPathFormat(java.lang.String pathFormat)
Sets the formatted path. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.util.logging.Logger log
protected Path _path
protected java.lang.String _pathFormat
Constructor Detail |
---|
protected AbstractAccessLog()
Method Detail |
---|
public Path getPath()
public void setPath(Path path)
public java.lang.String getPathFormat()
public void setPathFormat(java.lang.String pathFormat) throws ConfigException
ConfigException
public void setId(Path path)
public boolean isHostnameDnsLookup()
public void setHostnameDnsLookup(boolean enable)
public void addInit(ContainerProgram init)
public void init() throws ServletException, java.io.IOException
ServletException
java.io.IOException
public abstract void log(HttpServletRequest request, HttpServletResponse response, ServletContext application) throws java.io.IOException
request
- the servlet request.response
- the servlet response.
java.io.IOException
public void flush()
public void destroy() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |