Class ConstantElement
java.lang.Object
io.micronaut.http.server.netty.handler.accesslog.element.ConstantElement
- All Implemented Interfaces:
LogElement
ConstantElement LogElement. Represents a fixed value.
- Since:
- 2.0
- Author:
- croudet
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.http.server.netty.handler.accesslog.element.LogElement
LogElement.Event
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ConstantElement
The unknown LogElement.static final String
The unknown value: '-'. -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Copy this log element when it is not stateless.events()
The sets of events that this log element must process.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.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.micronaut.http.server.netty.handler.accesslog.element.LogElement
onLastResponseWrite, onResponseHeaders, onResponseWrite, reset
-
Field Details
-
UNKNOWN_VALUE
The unknown value: '-'.- See Also:
-
UNKNOWN
The unknown LogElement.
-
-
Method Details
-
onRequestHeaders
public String onRequestHeaders(io.netty.channel.socket.SocketChannel channel, String method, io.netty.handler.codec.http.HttpHeaders headers, String uri, String protocol) Description copied from interface:LogElement
Responds to an ON_REQUEST_HEADERS event. Also used for ConstantElement with all parameters as null.- Specified by:
onRequestHeaders
in interfaceLogElement
- Parameters:
channel
- The socket channel.method
- The http method.headers
- The request headers.uri
- The request uri.protocol
- The request protocol.- Returns:
- The processed value.
-
events
Description copied from interface:LogElement
The sets of events that this log element must process. Empty for ConstantElement.- Specified by:
events
in interfaceLogElement
- Returns:
- A list of events.
-
copy
Description copied from interface:LogElement
Copy this log element when it is not stateless.- Specified by:
copy
in interfaceLogElement
- Returns:
- A copy of this log element.
-
toString
-