org.jwall.web.audit
Interface AuditEventFactory

All Known Implementing Classes:
DefaultAuditEventFactory

public interface AuditEventFactory

This interface defines the methods that need to be provided by a factory class that creates audit-event instances. The use of different implementations of this factory interface may improve performance.

Author:
Christian Bockermann <chris@jwall.org>

Field Summary
static String AUDIT_EVENT_FACTORY_CLASS
          This is the system property to define the class which shall be used by readers
 
Method Summary
 AuditEvent createAuditEvent(String[] sectionData, AuditEventType type)
          Creates a new audit-event instance from the given section strings.
 AuditEvent createAuditEvent(String id, String[] data, File f, long off, long size, AuditEventType type)
           
 

Field Detail

AUDIT_EVENT_FACTORY_CLASS

static final String AUDIT_EVENT_FACTORY_CLASS
This is the system property to define the class which shall be used by readers

See Also:
Constant Field Values
Method Detail

createAuditEvent

AuditEvent createAuditEvent(String[] sectionData,
                            AuditEventType type)
                            throws ParseException
Creates a new audit-event instance from the given section strings. The string correspond to the sections found within an audit-log file.

Parameters:
sectionData - The data strings of the sections.
Returns:
An instance corresponding to the given sections.
Throws:
In - case an error occurs while creating/parsing the sections.
ParseException

createAuditEvent

AuditEvent createAuditEvent(String id,
                            String[] data,
                            File f,
                            long off,
                            long size,
                            AuditEventType type)
                            throws ParseException
Throws:
ParseException


Copyright © 2012 jwall.org. All Rights Reserved.