Examples of ModSecurityAuditEvent


Examples of org.jwall.web.audit.ModSecurityAuditEvent

  public void run(){
    try {
      try {
        while(! closed){
          try {
            ModSecurityAuditEvent e = (ModSecurityAuditEvent) in.readObject();
            if(e != null){
                log.debug("received event-object!");
              queue.add(e);
              Iterator<AuditEventListener> l = listeners.iterator();
              while(l.hasNext()){
                l.next().eventArrived(e);
              }
            }
          } catch (EOFException eof) {
              //
              // in case we are at the end of the stream, we simply have a little break.
              //
              Thread.sleep(256);
          }
        }
      } catch (Exception ex) {
        ex.printStackTrace();
      }

      in.close();
      socket.close();
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here

Examples of org.jwall.web.audit.ModSecurityAuditEvent

      data[ModSecurity.SECTION_REQUEST_HEADER] = request.toString();
      data[ModSecurity.SECTION_REQUEST_BODY] = reqBody.toString();
      data[ModSecurity.SECTION_FINAL_RESPONSE_HEADER] = response.toString();
      data[ModSecurity.SECTION_AUDIT_TRAILER] = msg.toString();

      return new ModSecurityAuditEvent(data, AuditEventType.ModSecurity2);
    } catch (Exception e) {
      return null;
    }
  }
View Full Code Here

Examples of org.jwall.web.audit.ModSecurityAuditEvent

        r.append( proto + " "+ token[5] + "\n" );

        r.append("\n");
        data[ ModSecurity.SECTION_FINAL_RESPONSE_HEADER ] = r.toString();

        return new ModSecurityAuditEvent( data, AuditEventType.ModSecurity2 );
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.