public abstract class AbstractAccessLog
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Path |
_path |
protected java.lang.String |
_pathFormat |
protected static java.util.logging.Logger |
log |
Modifier | Constructor and Description |
---|---|
protected |
AbstractAccessLog() |
Modifier and Type | Method and Description |
---|---|
void |
addInit(ContainerProgram init) |
void |
destroy()
Cleanup the log.
|
void |
flush()
Flushes the log.
|
int |
getBufferSize() |
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.
|
protected static final java.util.logging.Logger log
protected Path _path
protected java.lang.String _pathFormat
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 int getBufferSize()
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