Package org.opends.server.loggers
Class CommonAudit
java.lang.Object
org.opends.server.loggers.CommonAudit
Entry point for the common audit facility.
This class manages the AuditService instances and Audit Event Handlers that correspond to the publishers defined in OpenDJ configuration.
In theory there should be only one instance of AuditService for all the event handlers but defining one service per handler allow to perform filtering at the DJ server level.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Transaction id used when the incoming request does not contain a transaction id. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates if HTTP access logging is enabled for common audit.void
logHttpAuditEvent
(org.forgerock.services.context.Context context, JsonValue event) Logs an HTTP audit event.void
shutdown()
Shutdown common audit.
-
Field Details
-
DEFAULT_TRANSACTION_ID
Transaction id used when the incoming request does not contain a transaction id.- See Also:
-
-
Constructor Details
-
CommonAudit
Creates the common audit.- Parameters:
serverContext
- The server context.
-
-
Method Details
-
shutdown
public void shutdown()Shutdown common audit. -
isHttpAccessLogEnabled
public boolean isHttpAccessLogEnabled()Indicates if HTTP access logging is enabled for common audit.- Returns:
true
if there is at least one HTTP access logger enabled for common audit.
-
logHttpAuditEvent
Logs an HTTP audit event.- Parameters:
context
- The context.event
- The event.
-