public final class ConstantElement extends Object implements LogElement
LogElement.Event
Modifier and Type | Field and Description |
---|---|
static ConstantElement |
UNKNOWN
The unknown LogElement.
|
static String |
UNKNOWN_VALUE
The unknown value: '-'.
|
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.
|
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.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
onLastResponseWrite, onResponseHeaders, onResponseWrite, reset
public static final String UNKNOWN_VALUE
public static final ConstantElement UNKNOWN
public String onRequestHeaders(io.netty.channel.socket.SocketChannel channel, String method, io.netty.handler.codec.http.HttpHeaders headers, String uri, String protocol)
LogElement
onRequestHeaders
in interface LogElement
channel
- The socket channel.method
- The http method.headers
- The request headers.uri
- The request uri.protocol
- The request protocol.public Set<LogElement.Event> events()
LogElement
events
in interface LogElement
public LogElement copy()
LogElement
copy
in interface LogElement