public interface LogElement
Modifier and Type | Interface and Description |
---|---|
static class |
LogElement.Event
Events.
|
Modifier and Type | Method and Description |
---|---|
LogElement |
copy()
Copy this log element when it is not stateless.
|
Set<LogElement.Event> |
events()
The sets of events that this log element must process.
|
default String |
onLastResponseWrite(int bytesSent)
Responds to an ON_LAST_RESPONSE_WRITE event.
|
default String |
onRequestHeaders(io.netty.channel.socket.SocketChannel channel,
String method,
io.netty.handler.codec.http.HttpHeaders headers,
String uri,
String protocol)
Responds to an ON_REQUEST_HEADERS event.
|
default String |
onResponseHeaders(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpHeaders headers,
String status)
Responds to an ON_RESPONSE_HEADERS event.
|
default void |
onResponseWrite(int bytesSent)
Responds to an ON_RESPONSE_WRITE event.
|
default void |
reset()
Reset the computed value.
|
Set<LogElement.Event> events()
default void reset()
default String onRequestHeaders(io.netty.channel.socket.SocketChannel channel, String method, io.netty.handler.codec.http.HttpHeaders headers, String uri, String protocol)
channel
- The socket channel.method
- The http method.headers
- The request headers.uri
- The request uri.protocol
- The request protocol.default String onResponseHeaders(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.HttpHeaders headers, String status)
ctx
- The ChannelHandlerContext.headers
- The response headers.status
- The response status.default void onResponseWrite(int bytesSent)
bytesSent
- The number of bytes sent.default String onLastResponseWrite(int bytesSent)
bytesSent
- The number of bytes sent.LogElement copy()