|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jwall.web.audit.io.ModSecurityAuditReader
public class ModSecurityAuditReader
This class implements a reader for AuditEvent-objects read from a file produced by mod_security prior version 2.0.
| Constructor Summary | |
|---|---|
ModSecurityAuditReader(java.io.File f)
This creates a new instance of this class that reads events from the given file. |
|
ModSecurityAuditReader(java.io.File f,
boolean tail)
This creates a new instance of this class that reads events from the given file. |
|
ModSecurityAuditReader(java.io.File f,
java.lang.String uriPrefix)
This creates a new instance of this class that reads events from the given file and returns only events whose REQUEST_URI starts with the given prefix. |
|
ModSecurityAuditReader(java.io.InputStream in,
java.lang.String prefix)
Creates an instance of this class which reads events from the given input-stream. |
|
| Method Summary | |
|---|---|
long |
bytesAvailable()
|
long |
bytesRead()
|
void |
close()
|
AuditEvent |
readNext()
This method reads another event from the stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModSecurityAuditReader(java.io.InputStream in,
java.lang.String prefix)
in - The input-stream to read from.prefix - Will cause this instance to return only events whose REQUEST_URI
starts with prefix.
public ModSecurityAuditReader(java.io.File f,
java.lang.String uriPrefix)
throws java.io.IOException
f - The file to read fromuriPrefix - A prefix string that filters events which do not contain this
string as prefix in their REQUEST_URI.
java.io.IOException - In case reading failed.
public ModSecurityAuditReader(java.io.File f)
throws java.io.IOException
f -
java.io.IOException
public ModSecurityAuditReader(java.io.File f,
boolean tail)
throws java.io.IOException
f -
java.io.IOException| Method Detail |
|---|
public AuditEvent readNext()
throws java.io.IOException,
ParseException
readNext in interface AuditEventReaderjava.io.IOException
ParseException
public void close()
throws java.io.IOException
close in interface AuditEventReaderjava.io.IOExceptionpublic long bytesAvailable()
bytesAvailable in interface AuditEventReaderpublic long bytesRead()
bytesRead in interface AuditEventReader
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||