public class XMLLogger extends AutomaticBean implements AuditListener
| Constructor and Description |
|---|
XMLLogger(OutputStream outputStream,
boolean closeStream)
Creates a new
XMLLogger instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
addError(AuditEvent event)
Notify that an audit error was discovered on a specific file.
|
void |
addException(AuditEvent event,
Throwable throwable)
Notify that an exception happened while performing audit.
|
void |
auditFinished(AuditEvent event)
Notify that the audit is finished.
|
void |
auditStarted(AuditEvent event)
Notify that the audit is about to start.
|
static String |
encode(String value)
Escape <, > & ' and " as their entities.
|
void |
fileFinished(AuditEvent event)
Notify that audit is finished on a specific file.
|
void |
fileStarted(AuditEvent event)
Notify that audit is about to start on a specific file.
|
static boolean |
isReference(String ent) |
configure, contextualize, finishLocalSetup, getConfiguration, setupChildpublic XMLLogger(OutputStream outputStream, boolean closeStream)
XMLLogger instance.
Sets the output to a defined stream.outputStream - the stream to write logs to.closeStream - close oS in auditFinishedpublic void auditStarted(AuditEvent event)
AuditListenerauditStarted in interface AuditListenerevent - the event detailspublic void auditFinished(AuditEvent event)
AuditListenerauditFinished in interface AuditListenerevent - the event detailspublic void fileStarted(AuditEvent event)
AuditListenerfileStarted in interface AuditListenerevent - the event detailspublic void fileFinished(AuditEvent event)
AuditListenerfileFinished in interface AuditListenerevent - the event detailspublic void addError(AuditEvent event)
AuditListeneraddError in interface AuditListenerevent - the event detailspublic void addException(AuditEvent event, Throwable throwable)
AuditListeneraddException in interface AuditListenerevent - the event detailsthrowable - details of the exceptionpublic static String encode(String value)
value - the value to escape.public static boolean isReference(String ent)
ent - the possible entity to look for.Copyright © 2001-2017. All Rights Reserved.