Search in sources :

Example 6 with AuditLogEntry

use of co.cask.cdap.common.logging.AuditLogEntry in project cdap by caskdata.

the class SecurityAuthenticationHttpHandler method writeComplete.

@Override
public void writeComplete(ChannelHandlerContext ctx, WriteCompletionEvent e) throws Exception {
    AuditLogEntry logEntry = getLogEntry(ctx);
    if (!logEntry.isLogged()) {
        AUDIT_LOG.trace(logEntry.toString());
        logEntry.setLogged(true);
    }
}
Also used : AuditLogEntry(co.cask.cdap.common.logging.AuditLogEntry)

Aggregations

AuditLogEntry (co.cask.cdap.common.logging.AuditLogEntry)6 JsonObject (com.google.gson.JsonObject)3 ChannelBuffer (org.jboss.netty.buffer.ChannelBuffer)1 DefaultHttpResponse (org.jboss.netty.handler.codec.http.DefaultHttpResponse)1 HttpRequest (org.jboss.netty.handler.codec.http.HttpRequest)1 HttpResponse (org.jboss.netty.handler.codec.http.HttpResponse)1