@Retention(RUNTIME)
@Target({METHOD,TYPE,FIELD})
@Documented
@Inherited
public @interface Audited
| Modifier and Type | Fields | 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 | 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.
|
static final java.lang.String DEFAULT_EVENT_TYPE
static final java.lang.String DEFAULT_MESSAGE_FORMAT
static final AuditEvent.AuditSeverity DEFAULT_OK_SEVERITY
static final AuditEvent.AuditSeverity DEFAULT_ERROR_SEVERITY
java.lang.String value
java.lang.String messageFormat
AuditEvent.AuditSeverity okSeverity
AuditEvent.AuditSeverity errorSeverity
Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.