Package org.jwall.web.audit.io

Examples of org.jwall.web.audit.io.ParseException


    String token = readNonNumeric( str );
    Long unit = this.guessUnit( token );
    if( unit > 0 )
      return unit;
   
    throw new ParseException( "No valid time-unit found at '" + str.substring( start ) + "'!");
  }
View Full Code Here


      throws ParseException {
    this(type);
    sections = data.clone();

    if (data.length < 1 || data[0] == null || "".equals(data[0]))
      throw new ParseException("No audit-header found !");

    try {
      log.debug("Parsing request-header...");
      AuditEventParser.parseHttpHeader(collections,
          sections[ModSecurity.SECTION_REQUEST_HEADER]);
View Full Code Here

    // s[] = [date, TZ], ID, Client-IP, Client-Port, Server-IP, Server-Port
    String[] s = sections[ModSecurity.SECTION_AUDIT_LOG_HEADER].trim()
        .split(" ");

    if (s.length < 7)
      throw new ParseException("Error while parsing AuditLog-Header: "
          + sections[ModSecurity.SECTION_AUDIT_LOG_HEADER]);

    eventId = Long.toHexString(createdAt.getTime());

    AuditEventParser.addValue(collections, ModSecurity.TX_ID, s[2]);
View Full Code Here

                line = r.readLine();
            }
           
        } catch ( Exception e ) {
            e.printStackTrace();
            throw new ParseException("Error while parsing the audit-trailer: " + e.getMessage() );
        }
       
        return cols;
    }
View Full Code Here

                    this.pos += len;
                } else {
                    String val = prefix( str, token.getValue().length() );
                    log.debug( "   const read: '{}'", val );
                    if( !token.getValue().equals( val ) )
                        throw new ParseException( "Failed to read '" + token.getValue() + "', found: " + val + " at position " + start );
                    else
                        this.pos += token.getValue().length();
                }
            } else {
                log.debug( "Next token is a variable '{}'", token.getValue() );
View Full Code Here

TOP

Related Classes of org.jwall.web.audit.io.ParseException

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.