|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AuditEvent
This interface defines an abstract audit-event. Specifying events as
interface aims at several optimized implementations. A simple one can
be found at AuditEventImpl.
| Method Summary | |
|---|---|
int |
compareTo(AuditEvent o)
|
java.lang.String |
get(java.lang.String var)
Returns the given variable as String or an empty string if
the variable is not set. |
java.lang.String |
getAuditHeader()
Returns the header-section of this event. |
java.lang.String |
getAuditLogTrailer()
Returns the header-section of this event. |
java.lang.Long |
getCount()
This method returns the number of instances created from the underlying implementation of this interface. |
java.util.Date |
getDate()
Returns the date of this events birth. |
java.lang.String |
getEventId()
The unique ID, created by modsecurity. |
java.io.File |
getFile()
This method returns the file from which the event has been read. |
java.util.Set<java.lang.String> |
getGetParameterNames()
Returns the set of parameters (their names) that are available in the request-uri of this request. |
java.lang.String |
getGetParameterValue(java.lang.String name)
Returns the value of the parameter name in the url
of this request. |
long |
getOffset()
This method returns the offset (bytes) from the beginning of the file from which this event has been read. |
java.util.Set<java.lang.String> |
getPostParameterNames()
Returns the set of parameters (their names) that are available in the post-body of this request. |
java.lang.String |
getPostParameterValue(java.lang.String name)
Returns the value of the parameter name in the post-body
of this request or null there is no parameter with this
name. |
java.lang.String[] |
getRawData()
This method returns an array of strings that contain the section-data of the appopriate audit-log entry of this event. |
long |
getRelativeSessionTime()
Gets the number of milliseconds from the time the first event of this session has been detected. |
java.lang.String |
getRequestBody()
Return the body of this request. |
java.lang.String |
getRequestCookie(java.lang.String name)
|
java.util.Set<java.lang.String> |
getRequestCookieNames()
|
java.lang.String |
getRequestHeader()
Returns the header-section of this event. |
java.lang.String |
getRequestHeader(java.lang.String name)
Returns the value of the specified header-field of the request. |
java.util.Set<java.lang.String> |
getRequestHeaderNames()
Returns the set of all header-fields sent in the request. |
java.net.URL |
getRequestURL()
Return an URL object that matches the URL requested within this event. |
java.lang.String |
getResponseCookie(java.lang.String name)
|
java.util.Set<java.lang.String> |
getResponseCookieNames()
|
java.lang.String |
getResponseHeader()
Returns the header-section of this event. |
java.lang.String |
getResponseHeader(java.lang.String name)
Returns the value of the specified header-field of the response. |
java.util.Set<java.lang.String> |
getResponseHeaderNames()
Returns the set of all header-fields sent in the response. |
java.lang.String |
getSection(int i)
Returns the string, which contains the whole section of this audit-event. |
java.lang.String |
getSessionId()
The session-id of this request or an empty string, if no session-id has been set. |
long |
getSize()
|
boolean |
isSet(java.lang.String var)
Checks wether the given variable is set or not. |
void |
setRelativeSessionTime(long s)
Sets the number of milliseconds from the time the first event of this session has been detected. |
void |
setSessionId(java.lang.String id)
This method sets the session-id of this event. |
| Method Detail |
|---|
java.lang.Long getCount()
java.lang.String getEventId()
java.lang.String getSection(int i)
ModSecurity.java.
i - Index of the section as defined by ModSecurity.SECTION_*.
java.lang.String getAuditHeader()
getSection(ModSecurity.AUDIT_HEADER).
java.lang.String getRequestHeader()
getSection(ModSecurity.REQUEST_HEADER).
java.lang.String getRequestBody()
java.lang.String getResponseHeader()
getSection(ModSecurity.FINAL_RESPONSE_HEADER).
java.lang.String getAuditLogTrailer()
getSection(ModSecurity.AUDIT_TRAILER).
java.lang.String getRequestHeader(java.lang.String name)
HEADLINE to retrieve the first line of
the request.
name - The header-field to be returned (see org.modsecurity.HttpProtocol)
null if not set.java.util.Set<java.lang.String> getRequestHeaderNames()
java.lang.String getResponseHeader(java.lang.String name)
name - The header-field name.
null if not set.java.util.Set<java.lang.String> getResponseHeaderNames()
HEADLINE to retrieve the first line of
the response.
java.util.Date getDate()
java.lang.String getSessionId()
void setSessionId(java.lang.String id)
id - The id of the session with which this event is associated.boolean isSet(java.lang.String var)
var - The name of the variable that is checked.
true iff the variable is set.java.lang.String get(java.lang.String var)
String or an empty string if
the variable is not set.
To test if a variable has been set use isSet(String variable).
var - The name of the variable.
java.util.Set<java.lang.String> getGetParameterNames()
java.lang.String getGetParameterValue(java.lang.String name)
name in the url
of this request.
name - The parameter name.
name.java.util.Set<java.lang.String> getPostParameterNames()
java.lang.String getPostParameterValue(java.lang.String name)
name in the post-body
of this request or null there is no parameter with this
name.
name - The name of the parameter.
int compareTo(AuditEvent o)
compareTo in interface java.lang.Comparable<AuditEvent>java.util.Set<java.lang.String> getRequestCookieNames()
java.lang.String getRequestCookie(java.lang.String name)
java.util.Set<java.lang.String> getResponseCookieNames()
java.lang.String getResponseCookie(java.lang.String name)
void setRelativeSessionTime(long s)
s - Time in milliseconds.long getRelativeSessionTime()
java.lang.String[] getRawData()
java.net.URL getRequestURL()
java.io.File getFile()
null is returned.
long getOffset()
long getSize()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||