java.lang.Object
io.micronaut.http.server.netty.handler.accesslog.element.ConstantElement
All Implemented Interfaces:
LogElement

public final class ConstantElement extends Object implements LogElement
ConstantElement LogElement. Represents a fixed value.
Since:
2.0
Author:
croudet
  • Field Details

  • 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 interface LogElement
      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

      public Set<LogElement.Event> events()
      Description copied from interface: LogElement
      The sets of events that this log element must process. Empty for ConstantElement.
      Specified by:
      events in interface LogElement
      Returns:
      A list of events.
    • copy

      public LogElement copy()
      Description copied from interface: LogElement
      Copy this log element when it is not stateless.
      Specified by:
      copy in interface LogElement
      Returns:
      A copy of this log element.
    • toString

      public String toString()
      Overrides:
      toString in class Object