org.jwall.web.audit.io
Class MessageParser

java.lang.Object
  extended by org.jwall.log.io.MParser
      extended by org.jwall.web.audit.io.MessageParser

public class MessageParser
extends MParser

This class implements a simple message parser, which reads the audit trailer section from a ModSecurity event and creates Message instances from that section.

Author:
Christian Bockermann <chris@jwall.org>

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jwall.log.io.MParser
MParser.Pair<K,V>
 
Constructor Summary
MessageParser()
           
 
Method Summary
static String extract(String tag, String line)
           
static AuditEventMessage parseMessage(String line)
           
static List<AuditEventMessage> parseMessages(AuditEvent evt)
           
static String remove(String tag, String line)
           
 
Methods inherited from class org.jwall.log.io.MParser
firstChar, isBlank, isEmpty, main, position, prefix, readInteger, readToken, readToken, readToken, readToken, readToken, readTokenUntil, remainder, reset, skip, skipBlanks, trim
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageParser

public MessageParser()
Method Detail

parseMessages

public static List<AuditEventMessage> parseMessages(AuditEvent evt)
Parameters:
evt -
Returns:

parseMessage

public static AuditEventMessage parseMessage(String line)

extract

public static String extract(String tag,
                             String line)

remove

public static String remove(String tag,
                            String line)


Copyright © 2012 jwall.org. All Rights Reserved.