java.lang.Object
io.helidon.webserver.accesslog.AbstractLogEntry
io.helidon.webserver.accesslog.SizeLogEntry
All Implemented Interfaces:
AccessLogEntry, Handler, BiConsumer<ServerRequest,ServerResponse>

public final class SizeLogEntry extends AbstractLogEntry
Access log entry for entity size.
  • Method Details

    • create

      public static SizeLogEntry create()
      Create a new size log entry instance.
      Returns:
      a new access log entry for entity size
      See Also:
    • builder

      public static SizeLogEntry.Builder builder()
      Create a new fluent API builder.
      Returns:
      a new builder instance
    • accept

      public void accept(ServerRequest req, ServerResponse res)
      Description copied from interface: AccessLogEntry
      This method allows for each log entry to register anything on the request and/or response. As the log entry is shared by all threads, make sure the handling is implemented as thread safe.
      Parameters:
      req - an HTTP server request.
      res - an HTTP server response.
    • doApply

      public String doApply(AccessLogContext context)
      Description copied from class: AbstractLogEntry
      Apply the "raw" log entry. The result will go through common formatting, such as padding if configured.
      Specified by:
      doApply in class AbstractLogEntry
      Parameters:
      context - context with access to information useful for access log entries
      Returns:
      log entry
      See Also: