public class AuditEvent extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AuditEvent.EventType |
static class |
AuditEvent.Level |
static class |
AuditEvent.RequestType |
Modifier | Constructor and Description |
---|---|
protected |
AuditEvent() |
|
AuditEvent(AuditEvent.EventType eventType)
Empty event, must be filled by user using setters.
|
|
AuditEvent(AuditEvent.EventType eventType,
javax.servlet.http.HttpServletRequest httpRequest) |
|
AuditEvent(AuditEvent.EventType eventType,
javax.servlet.http.HttpServletRequest httpRequest,
AuthorizationContext authorizationContext)
Event based on request and AuthorizationContext.
|
|
AuditEvent(AuditEvent.EventType eventType,
javax.servlet.http.HttpServletRequest httpRequest,
AuthorizationContext authorizationContext,
double qTime,
Throwable exception)
Event to log completed requests.
|
|
AuditEvent(AuditEvent.EventType eventType,
Throwable exception,
javax.servlet.http.HttpServletRequest httpRequest)
Event based on an HttpServletRequest, typically used during authentication.
|
public AuditEvent(AuditEvent.EventType eventType)
eventType
- a predefined or custom EventTypepublic AuditEvent(AuditEvent.EventType eventType, javax.servlet.http.HttpServletRequest httpRequest)
protected AuditEvent()
public AuditEvent(AuditEvent.EventType eventType, Throwable exception, javax.servlet.http.HttpServletRequest httpRequest)
eventType
- a predefined or custom EventTypehttpRequest
- the request to initialize frompublic AuditEvent(AuditEvent.EventType eventType, javax.servlet.http.HttpServletRequest httpRequest, AuthorizationContext authorizationContext)
eventType
- a predefined or custom EventTypehttpRequest
- the request to initialize fromauthorizationContext
- the context to initialize frompublic AuditEvent(AuditEvent.EventType eventType, javax.servlet.http.HttpServletRequest httpRequest, AuthorizationContext authorizationContext, double qTime, Throwable exception)
eventType
- a predefined or custom EventTypehttpRequest
- the request to initialize fromauthorizationContext
- the context to initialize fromqTime
- query timeexception
- exception from query response, or null if OKpublic String getMessage()
public AuditEvent.Level getLevel()
public Date getDate()
public String getUsername()
public String getSession()
public String getClientIp()
public String getResource()
public String getHttpMethod()
public String getHttpQueryString()
public AuditEvent.EventType getEventType()
public String getSolrHost()
public String getSolrIp()
public int getSolrPort()
public AuthorizationResponse getAutResponse()
public String getNodeName()
public AuditEvent.RequestType getRequestType()
public int getStatus()
public double getQTime()
public Throwable getException()
public StringBuffer getRequestUrl()
public AuditEvent setRequestUrl(StringBuffer requestUrl)
public AuditEvent setSession(String session)
public AuditEvent setClientIp(String clientIp)
public AuditEvent setContext(Map<String,Object> context)
public AuditEvent setContextEntry(String key, Object value)
public AuditEvent setMessage(String message)
public AuditEvent setLevel(AuditEvent.Level level)
public AuditEvent setDate(Date date)
public AuditEvent setUsername(String username)
public AuditEvent setCollections(List<String> collections)
public AuditEvent setResource(String resource)
public AuditEvent setHttpMethod(String httpMethod)
public AuditEvent setHttpQueryString(String httpQueryString)
public AuditEvent setSolrHost(String solrHost)
public AuditEvent setSolrPort(int solrPort)
public AuditEvent setSolrIp(String solrIp)
public AuditEvent setHeaders(Map<String,String> headers)
public AuditEvent setSolrParams(Map<String,List<String>> solrParams)
public AuditEvent setAutResponse(AuthorizationResponse autResponse)
public AuditEvent setRequestType(AuditEvent.RequestType requestType)
public AuditEvent setQTime(double QTime)
public AuditEvent setStatus(int status)
public AuditEvent setException(Throwable exception)
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.