@Retention(value=RUNTIME)
@Target(value={METHOD,TYPE,FIELD})
@Documented
@Inherited
public @interface Audited
| Modifier and Type | Fields and Description |
|---|---|
static AuditEvent.AuditSeverity |
DEFAULT_ERROR_SEVERITY
Default severity for non-OK statuses.
|
static java.lang.String |
DEFAULT_EVENT_TYPE
Default event type: "request".
|
static java.lang.String |
DEFAULT_MESSAGE_FORMAT
Default message format: "%3$s %1$s \"%2$s\" %5$s %6$s requested by %4$s".
|
static AuditEvent.AuditSeverity |
DEFAULT_OK_SEVERITY
Default severity for OK status.
|
| Modifier and Type | Optional Element and Description |
|---|---|
AuditEvent.AuditSeverity |
errorSeverity
Severity of request with unsuccessful response (in http, this would be 4** and 5** status).
|
java.lang.String |
messageFormat
The message format of this audit event.
|
AuditEvent.AuditSeverity |
okSeverity
Severity of request with successful response (in http, this would be 1** 2** and 3** statuses).
|
java.lang.String |
value
Event type of this audit event.
|
public static final java.lang.String DEFAULT_EVENT_TYPE
public static final java.lang.String DEFAULT_MESSAGE_FORMAT
public static final AuditEvent.AuditSeverity DEFAULT_OK_SEVERITY
public static final AuditEvent.AuditSeverity DEFAULT_ERROR_SEVERITY
public abstract java.lang.String value
public abstract java.lang.String messageFormat
public abstract AuditEvent.AuditSeverity okSeverity
public abstract AuditEvent.AuditSeverity errorSeverity
Copyright © 2018 Oracle Corporation. All rights reserved.