Package org.jwall.log.io

Examples of org.jwall.log.io.AccessLogReader


  public void setUp() throws Exception {
  }

  @Test
  public void testParse() throws Exception {
    AccessLogReader r = new AccessLogReader( new StringReader( line ) );
    LogMessage msg = r.readNext();
    Assert.assertEquals( "66.249.65.43", msg.get( ModSecurity.REMOTE_ADDR ) );
    Assert.assertEquals( "/web/policy/editor.jsp", msg.get( ModSecurity.REQUEST_URI ) );
    System.out.println( "Date: " + new Date(msg.getTimestamp()));
  }
View Full Code Here

TOP

Related Classes of org.jwall.log.io.AccessLogReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.