public class AuditEventParser extends Object
| Modifier and Type | Field and Description |
|---|---|
static SimpleDateFormat |
DATE_FORMAT
the format in which the date is printed out
|
protected static String[] |
extractTrailer |
| Constructor and Description |
|---|
AuditEventParser() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addValue(Map<String,List<String>> cols,
String col,
String value) |
static Map<String,List<String>> |
parseAuditLogHeader(Map<String,List<String>> collections,
String auditLogHeader) |
static Map<String,List<String>> |
parseAuditTrailer(Map<String,List<String>> cols,
String trailer) |
static Date |
parseDate(String s)
Parse date from AuditTrailer-Section
|
static Map<String,List<String>> |
parseHttpHeader(Map<String,List<String>> cols,
String header)
This method will read a header section of a ModSecurity event and parse
all the http headers.
|
static Map<String,String> |
parseMetaInfSection(Map<String,List<String>> collections,
String metaInfSection) |
static void |
parseParameters(Map<String,List<String>> cols,
String selector,
String qs)
This method parses all parameters (get and post) and fills the appopriate
hashes.
|
static Map<String,String> |
readMetaInf(String metaInfSection) |
static void |
setValue(Map<String,List<String>> cols,
String key,
String value) |
static String |
storeMetaInf(Map<String,String> data) |
public static final SimpleDateFormat DATE_FORMAT
protected static final String[] extractTrailer
public static Map<String,List<String>> parseHttpHeader(Map<String,List<String>> cols, String header) throws ParseException
REQUEST_HEADERS or the RESPONSE_HEADERS
collection.cols - The collection mapping which will be filled during the parsing
process.header - The data which actually contains the request-/response-header.ParseException - In case the header could not be parsed correctly an
appropriate ParseException will be thrown.public static void parseParameters(Map<String,List<String>> cols, String selector, String qs)
public static Map<String,List<String>> parseAuditTrailer(Map<String,List<String>> cols, String trailer) throws ParseException
cols - trailer - ParseExceptionpublic static Map<String,List<String>> parseAuditLogHeader(Map<String,List<String>> collections, String auditLogHeader) throws ParseException
collections - auditLogHeader - ParseExceptionpublic static Map<String,String> parseMetaInfSection(Map<String,List<String>> collections, String metaInfSection) throws ParseException
ParseExceptionpublic static Map<String,String> readMetaInf(String metaInfSection) throws ParseException
ParseExceptionCopyright © 2014 jwall.org. All Rights Reserved.