|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jwall.web.audit.net.AuditEventConsoleSender
public class AuditEventConsoleSender
This class implements a simple socket-handler which provides easy injection of audit-events to the modsecurity-console.
| Nested Class Summary | |
|---|---|
class |
AuditEventConsoleSender.ZeroTrustManager
|
| Field Summary | |
|---|---|
static String |
CONSOLE_CONNECTION_KEEP_ALIVE
|
static String |
CONSOLE_CONNECTION_SSL
|
static String |
CONSOLE_HOST
|
static String |
CONSOLE_PASS
|
static String |
CONSOLE_PORT
|
static String |
CONSOLE_URI
the uri of the receiver servlet |
static String |
CONSOLE_USER
|
| Constructor Summary | |
|---|---|
AuditEventConsoleSender(String host,
int port,
String login,
String password)
This method creates a new console sender that sends all arriving events to the given host host using login
and password for authentifaction. |
|
| Method Summary | |
|---|---|
void |
closeSocketConnection()
|
void |
eventArrived(AuditEvent evt)
Simply send all arriving events to the configured console. |
void |
eventsArrived(Collection<AuditEvent> events)
This method is called for notifying the listener of arrival of several events in a block. |
Socket |
getSocketConnection()
|
void |
sendAuditEvent(AuditEvent evt)
This method sends the given audit-event to the configured console. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CONSOLE_HOST
public static final String CONSOLE_PORT
public static final String CONSOLE_USER
public static final String CONSOLE_PASS
public static final String CONSOLE_CONNECTION_KEEP_ALIVE
public static final String CONSOLE_CONNECTION_SSL
public static final String CONSOLE_URI
| Constructor Detail |
|---|
public AuditEventConsoleSender(String host,
int port,
String login,
String password)
host using login
and password for authentifaction.
host - The host on which the Console is running.port - The port, at which the Console is listening.login - User-name for authentication with the console.password - Password for authentication.| Method Detail |
|---|
public void sendAuditEvent(AuditEvent evt)
throws Exception
evt - The event to be sent to the console.
Exception - In case an error occurs.
public Socket getSocketConnection()
throws Exception
Exception
public void closeSocketConnection()
throws Exception
Exceptionpublic void eventArrived(AuditEvent evt)
eventArrived in interface EventListener<AuditEvent>eventArrived in interface AuditEventListenerevt - The event which arrived.public void eventsArrived(Collection<AuditEvent> events)
AuditEventListenerAuditEventListener.eventArrived(AuditEvent) for each of the given
events, but may be handled in a more efficient way by implementations
capable of processing blocks of events.
eventsArrived in interface AuditEventListenerevents - The block of events arrived.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||