Class LoggerFormatter

java.lang.Object
io.vertx.mutiny.ext.web.handler.LoggerFormatter
All Implemented Interfaces:
MutinyDelegate

public class LoggerFormatter extends Object implements MutinyDelegate
Implement to format the output of the LoggerHandler

NOTE: This class has been automatically generated from the original non Mutiny-ified interface.

Author:
Paulo Lopes, Thomas Cederholm
See Also:
  • LoggerFormatter
  • Field Details

  • Constructor Details

    • LoggerFormatter

      public LoggerFormatter(io.vertx.ext.web.handler.LoggerFormatter delegate)
      Create a new instance of LoggerFormatter delegating to the given (non-null) instance of LoggerFormatter.
    • LoggerFormatter

      public LoggerFormatter(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.ext.web.handler.LoggerFormatter getDelegate()
      Get the delegate instance.

      This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.

      Specified by:
      getDelegate in interface MutinyDelegate
      Returns:
      the delegate instance
    • format

      public String format(RoutingContext routingContext, long ms)
      Formats and returns the log statement
      Parameters:
      routingContext - The routing context
      ms - The number of milliseconds since first receiving the request
      Returns:
      The formatted string to log
    • newInstance

      public static LoggerFormatter newInstance(io.vertx.ext.web.handler.LoggerFormatter delegate)
      Creates a new instance of the LoggerFormatter.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object