Examples of AuditEventProcessorPipeline


Examples of org.jwall.web.audit.AuditEventProcessorPipeline

  @Before
  public void setUp() throws Exception {
    events = EventList
        .getAuditEvents("/default-request-host-audit.log", 10);
    pipeline = new AuditEventProcessorPipeline();
    EventProcessorFinder pf = new EventProcessorFinder();
    pf.deployCustomEventProcessors(DefaultRequestHostProcessorTest.class
        .getResourceAsStream("/default-request-host.xml"), pipeline);
  }
View Full Code Here

Examples of org.jwall.web.audit.AuditEventProcessorPipeline

  @Before
  public void setUp() throws Exception {
    events = EventList
        .getAuditEvents("/default-request-host-audit.log", 10);
    pipeline = new AuditEventProcessorPipeline();
    // EventProcessorFinder pf = new EventProcessorFinder();
    // pf.deployCustomEventProcessors(
    // RuleTagProcessorTest.class.getResourceAsStream(
    // "/default-request-host.xml"), pipeline);
    RuleTagProcessor ruleTagger = new RuleTagProcessor();
View Full Code Here

Examples of org.jwall.web.audit.AuditEventProcessorPipeline

  @Test
  public void test() {

    AuditEventProcessorFinder finder = new AuditEventProcessorFinder();
    AuditEventProcessorPipeline pipeline = new AuditEventProcessorPipeline();

    URL url = EventProcessorFinderTest.class
        .getResource("/event-processors.xml");
    log.info("Adding event-processors from {}", url);

    try {
      finder.deployCustomEventProcessors(url.openStream(), pipeline);

      for (EventProcessor<AuditEvent> p : pipeline.getProcessors()) {
        log.info("Priority: {}, processor: {}",
            pipeline.getPriority(p), p);
      }
    } catch (Exception e) {
      e.printStackTrace();
      fail("Not yet implemented");
    }
View Full Code Here

Examples of org.jwall.web.audit.AuditEventProcessorPipeline

    objectFactory.addPackage("org.jwall.web.audit.processor");
  }

  public static AuditEventProcessorPipeline deployCustomEventProcessors(
      File file) throws Exception {
    AuditEventProcessorPipeline pipe = new AuditEventProcessorPipeline();
    AuditEventProcessorFinder finder = new AuditEventProcessorFinder();
    finder.deployCustomEventProcessors(file, pipe);
    return pipe;
  }
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.