public final class ConstantElement extends java.lang.Object implements LogElement
LogElement.Event
Modifier and Type | Field and Description |
---|---|
static ConstantElement |
UNKNOWN
The unknown LogElement.
|
static java.lang.String |
UNKNOWN_VALUE
The unknown value: '-'.
|
Modifier and Type | Method and Description |
---|---|
LogElement |
copy()
Copy this log element when it is not stateless.
|
java.util.Set<LogElement.Event> |
events()
The sets of events that this log element must process.
|
java.lang.String |
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)
Responds to an ON_REQUEST_HEADERS event.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
onLastResponseWrite, onResponseHeaders, onResponseWrite, reset
public static final java.lang.String UNKNOWN_VALUE
public static final ConstantElement UNKNOWN
public java.lang.String 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)
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 java.util.Set<LogElement.Event> events()
LogElement
events
in interface LogElement
public LogElement copy()
LogElement
copy
in interface LogElement
public java.lang.String toString()
toString
in class java.lang.Object