Class ResponseTimeHandler

java.lang.Object
io.vertx.mutiny.ext.web.handler.ResponseTimeHandler
All Implemented Interfaces:
MutinyDelegate, io.vertx.core.Handler<RoutingContext>, PlatformHandler, Consumer<RoutingContext>

public class ResponseTimeHandler extends Object implements io.vertx.core.Handler<RoutingContext>, PlatformHandler, Consumer<RoutingContext>, MutinyDelegate
Handler which adds a header `x-response-time` in the response of matching requests containing the time taken in ms to process the request.

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

Author:
Tim Fox
See Also:
  • ResponseTimeHandler
  • Field Details

  • Constructor Details

    • ResponseTimeHandler

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

      public ResponseTimeHandler(Object delegate)
  • Method Details

    • accept

      public void accept(RoutingContext item)
      Handle an item. This method is generated from the original method."
      Specified by:
      accept in interface Consumer<RoutingContext>
      Specified by:
      accept in interface PlatformHandler
    • handle

      public void handle(RoutingContext item)
      Handle an item. This method is generated from the original method."
      Specified by:
      handle in interface io.vertx.core.Handler<RoutingContext>
      Specified by:
      handle in interface PlatformHandler
    • getDelegate

      public io.vertx.ext.web.handler.ResponseTimeHandler 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
      Specified by:
      getDelegate in interface PlatformHandler
      Returns:
      the delegate instance
    • create

      public static ResponseTimeHandler create()
      Create a handler
      Returns:
      the handler
    • newInstance

      public static ResponseTimeHandler newInstance(io.vertx.ext.web.handler.ResponseTimeHandler delegate)
      Creates a new instance of the ResponseTimeHandler.
    • 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