|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<String,String>
org.jwall.web.audit.IronBeeAuditEvent
public class IronBeeAuditEvent
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.util.AbstractMap |
|---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
| Field Summary | |
|---|---|
static String |
SECTION_BOUNDARY_KEY
|
| Fields inherited from interface org.jwall.web.audit.AuditEvent |
|---|
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 |
| Fields inherited from interface org.jwall.audit.Event |
|---|
TIMESTAMP, TYPE |
| Constructor Summary | |
|---|---|
IronBeeAuditEvent()
|
|
IronBeeAuditEvent(stream.data.Data data)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.util.LinkedHashMap |
|---|
clear, containsValue, get |
| Methods inherited from class java.util.HashMap |
|---|
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values |
| Methods inherited from class java.util.AbstractMap |
|---|
equals, hashCode |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
| Field Detail |
|---|
public static final String SECTION_BOUNDARY_KEY
| Constructor Detail |
|---|
public IronBeeAuditEvent()
public IronBeeAuditEvent(stream.data.Data data)
| Method Detail |
|---|
public Long getTimestamp()
Event
getTimestamp in interface Eventpublic EventType getType()
getType in interface Eventpublic String getEventId()
AuditEvent
getEventId 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()
AuditEvent
getDate in interface AuditEventAuditEvent.getDate()public String getSessionId()
AuditEvent
getSessionId in interface AuditEventAuditEvent.getSessionId()public void setSessionId(String id)
AuditEvent
setSessionId in interface AuditEventid - The id of the session with which this event is associated.AuditEvent.setSessionId(java.lang.String)public boolean isSet(String variable)
AuditEvent
isSet 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)
AuditEvent
set in interface Eventset in interface AuditEventAuditEvent.set(java.lang.String,
java.lang.String)
public void setAll(String variable,
List<String> values)
AuditEvent
setAll in interface AuditEventAuditEvent.setAll(java.lang.String,
java.util.List)public List<String> getVariables()
AuditEvent
getVariables 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()
AuditEvent
getRawData in interface AuditEventAuditEvent.getRawData()public AuditEventType getAuditEventType()
getAuditEventType in interface AuditEventpublic String toString()
toString in class AbstractMap<String,String>public static String mapVariable(String str)
public AuditEventMessage[] getEventMessages()
getEventMessages in interface AuditEvent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||