public abstract static class RequestAuditEvent.RequestAuditEventBuilder<T extends RequestAuditEvent,TBuilder extends RequestAuditEvent.RequestAuditEventBuilder<T,TBuilder>> extends AbstractUserAuditEvent.AbstractUserAuditEventBuilder<T,TBuilder>
Modifier | Constructor and Description |
---|---|
protected |
RequestAuditEventBuilder(Class<? extends TBuilder> builderClass) |
Modifier and Type | Method and Description |
---|---|
protected void |
buildAuditMessage(StringBuilder builder)
Appends to the event the details of the incoming request.
|
TBuilder |
withOperation(String operation)
Sets the operation to be added to the audit event.
|
TBuilder |
withRequestType(Request.Type requestType)
Sets the request type to be added to the audit event.
|
TBuilder |
withResultStatus(ResultStatus resultStatus)
Sets the result status to be added to the audit event.
|
TBuilder |
withUrl(String url)
Sets the url to be added to the audit event.
|
withProxyUserName, withRemoteIp, withUserName
build, newAuditEvent, self, withTimestamp
protected void buildAuditMessage(StringBuilder builder)
buildAuditMessage
in class AbstractUserAuditEvent.AbstractUserAuditEventBuilder<T extends RequestAuditEvent,TBuilder extends RequestAuditEvent.RequestAuditEventBuilder<T,TBuilder>>
builder
- builder for the audit event details.public TBuilder withRequestType(Request.Type requestType)
requestType
- request type to be added to the audit event.public TBuilder withUrl(String url)
url
- url to be added to the audit event.public TBuilder withResultStatus(ResultStatus resultStatus)
resultStatus
- result status to be added to the audit event.Copyright © 2022 Apache Software Foundation. All rights reserved.