public class AccessLog
extends java.lang.Object
| Modifier and Type | Method and Description | 
|---|---|
| void | log(org.slf4j.Logger accessLogger)Logs at info level the accumulated values. | 
| void | onLastResponseWrite(int bytesSent)Triggers LogElements for the ON_LAST_RESPONSE_WRITE event. | 
| void | onRequestHeaders(io.netty.channel.socket.SocketChannel channel,
                java.lang.String method,
                io.netty.handler.codec.http.HttpHeaders headers,
                java.lang.String uri,
                java.lang.String protocol)Triggers LogElements for the ON_REQUEST_HEADERS event. | 
| void | onResponseHeaders(io.netty.channel.ChannelHandlerContext ctx,
                 io.netty.handler.codec.http.HttpHeaders headers,
                 java.lang.String status)Triggers LogElements for the ON_RESPONSE_HEADERS event. | 
| void | onResponseWrite(int bytesSent)Triggers LogElements for the ON_RESPONSE_WRITE event. | 
| void | reset()Resets the current values. | 
public void reset()
public void onRequestHeaders(io.netty.channel.socket.SocketChannel channel,
                             java.lang.String method,
                             io.netty.handler.codec.http.HttpHeaders headers,
                             java.lang.String uri,
                             java.lang.String protocol)
channel - The socket channel.method - The http method.headers - The request headers.uri - The uri.protocol - The protocol.public void onResponseHeaders(io.netty.channel.ChannelHandlerContext ctx,
                              io.netty.handler.codec.http.HttpHeaders headers,
                              java.lang.String status)
ctx - The ChannelHandlerContext.headers - The response headers.status - The response status.public void onResponseWrite(int bytesSent)
bytesSent - The number of bytes sent.public void onLastResponseWrite(int bytesSent)
bytesSent - The number of bytes sent.public void log(org.slf4j.Logger accessLogger)
accessLogger - A logger.