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
FieldsModifier and TypeFieldDescriptionstatic final ConstantElementThe unknown LogElement.static final StringThe 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, waitMethods inherited from interface io.micronaut.http.server.netty.handler.accesslog.element.LogElement
onLastResponseWrite, onRequestHeaders, 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:LogElementResponds to an ON_REQUEST_HEADERS event. Also used for ConstantElement with all parameters as null.- Specified by:
 onRequestHeadersin 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:LogElementThe sets of events that this log element must process. Empty for ConstantElement.- Specified by:
 eventsin interfaceLogElement- Returns:
 - A list of events.
 
 - 
copy
Description copied from interface:LogElementCopy this log element when it is not stateless.- Specified by:
 copyin interfaceLogElement- Returns:
 - A copy of this log element.
 
 - 
toString
 
 -