public class IronBeeAuditEvent extends LinkedHashMap<String,String> implements AuditEvent
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Field and Description |
|---|---|
static String |
SECTION_BOUNDARY_KEY |
AGE, EVENT_ID, EVENT_TAGS, EVENT_URL, FILE, FILE_OFFSET, ID, MESSAGE, RECEIVED_AT, SENSOR, SENSOR_ADDR, SENSOR_ID, SENSOR_NAME, SENSOR_TYPE, SESSION_ID, SEVERITY, SITE_ID, SITE_NAME, SIZE, TAGS, VARIABLES| Constructor and Description |
|---|
IronBeeAuditEvent() |
IronBeeAuditEvent(stream.Data data) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(AuditEvent o) |
String |
get(String variable)
Returns the given variable as
String or an empty string if
the variable is not set. |
List<String> |
getAll(String variable)
This method returns the list of a collection which if referenced by the
given variable
var. |
AuditEventType |
getAuditEventType() |
Date |
getDate()
Returns the date of this events birth.
|
String |
getEventId()
The unique ID, created by modsecurity.
|
AuditEventMessage[] |
getEventMessages() |
String[] |
getRawData()
This method returns an array of strings that contain the section-data of
the appopriate audit-log entry of this event.
|
String |
getSection(int i)
Returns the string, which contains the whole section of this audit-event.
|
String |
getSessionId()
The session-id of this request or an empty string, if no session-id has
been set.
|
Long |
getTimestamp()
Returns the time of this event in milliseconds since 1970.
|
EventType |
getType() |
List<String> |
getVariables()
This method returns the list of all variables available in this event.
|
boolean |
isSet(String variable)
Checks wether the given variable is set or not.
|
static String |
mapVariable(String str) |
void |
set(String variable,
String value)
This method can be used to modify/set properties of the event.
|
void |
setAll(String variable,
List<String> values)
This method can be used to modify/set a collection of the event.
|
void |
setSessionId(String id)
This method sets the session-id of this event.
|
String |
toString() |
clear, containsValue, get, removeEldestEntryclone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, valuesequals, hashCodepublic static final String SECTION_BOUNDARY_KEY
public IronBeeAuditEvent()
public IronBeeAuditEvent(stream.Data data)
public Long getTimestamp()
EventgetTimestamp in interface Eventpublic String getEventId()
AuditEventgetEventId in interface AuditEventAuditEvent.getEventId()public String getSection(int i)
AuditEventModSecurity.java.getSection in interface AuditEventi - Index of the section as defined by
ModSecurity.SECTION_*.AuditEvent.getSection(int)public Date getDate()
AuditEventgetDate in interface AuditEventAuditEvent.getDate()public String getSessionId()
AuditEventgetSessionId in interface AuditEventAuditEvent.getSessionId()public void setSessionId(String id)
AuditEventsetSessionId in interface AuditEventid - The id of the session with which this event is associated.AuditEvent.setSessionId(java.lang.String)public boolean isSet(String variable)
AuditEventisSet in interface AuditEventvariable - The name of the variable that is checked.true iff the variable is set.AuditEvent.isSet(java.lang.String)public String get(String variable)
AuditEventString or an empty string if
the variable is not set. If the given variable is referring to a
collection the first value of that collection is returned.
To test if a variable has been set, use
isSet(String variable).get in interface Eventget in interface AuditEventvariable - The name of the variable.AuditEvent.get(java.lang.String)public List<String> getAll(String variable)
AuditEventvar.getAll in interface AuditEventvariable - The variable name of the collection. May also be a
non-collection variable in which case a single-item list will
returned if the variable has a value.NULL if no
collection is found by that variable name.AuditEvent.getAll(java.lang.String)public void set(String variable, String value)
AuditEventset in interface Eventset in interface AuditEventAuditEvent.set(java.lang.String,
java.lang.String)public void setAll(String variable, List<String> values)
AuditEventsetAll in interface AuditEventAuditEvent.setAll(java.lang.String,
java.util.List)public List<String> getVariables()
AuditEventgetVariables in interface AuditEventAuditEvent.getVariables()public int compareTo(AuditEvent o)
compareTo in interface Comparable<AuditEvent>compareTo in interface AuditEventAuditEvent.compareTo(org.jwall.web.audit.AuditEvent)public String[] getRawData()
AuditEventgetRawData in interface AuditEventAuditEvent.getRawData()public AuditEventType getAuditEventType()
getAuditEventType in interface AuditEventpublic String toString()
toString in class AbstractMap<String,String>public AuditEventMessage[] getEventMessages()
getEventMessages in interface AuditEventCopyright © 2014 jwall.org. All Rights Reserved.