Package io.vertx.mutiny.ext.web.handler
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vertx.mutiny.ext.web.handler.PlatformHandler
PlatformHandler.PlatformHandlerImpl -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionResponseTimeHandler(io.vertx.ext.web.handler.ResponseTimeHandler delegate) Create a new instance ofResponseTimeHandlerdelegating to the given (non-null) instance ofResponseTimeHandler.ResponseTimeHandler(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(RoutingContext item) Handle an item.static ResponseTimeHandlercreate()Create a handlerbooleanio.vertx.ext.web.handler.ResponseTimeHandlerGet the delegate instance.voidhandle(RoutingContext item) Handle an item.inthashCode()static ResponseTimeHandlernewInstance(io.vertx.ext.web.handler.ResponseTimeHandler delegate) Creates a new instance of theResponseTimeHandler.toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
ResponseTimeHandler
public ResponseTimeHandler(io.vertx.ext.web.handler.ResponseTimeHandler delegate) Create a new instance ofResponseTimeHandlerdelegating to the given (non-null) instance ofResponseTimeHandler. -
ResponseTimeHandler
-
-
Method Details
-
accept
Handle an item. This method is generated from theoriginalmethod."- Specified by:
acceptin interfaceConsumer<RoutingContext>- Specified by:
acceptin interfacePlatformHandler
-
handle
Handle an item. This method is generated from theoriginalmethod."- Specified by:
handlein interfaceio.vertx.core.Handler<RoutingContext>- Specified by:
handlein interfacePlatformHandler
-
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:
getDelegatein interfaceMutinyDelegate- Specified by:
getDelegatein interfacePlatformHandler- Returns:
- the delegate instance
-
create
Create a handler- Returns:
- the handler
-
newInstance
public static ResponseTimeHandler newInstance(io.vertx.ext.web.handler.ResponseTimeHandler delegate) Creates a new instance of theResponseTimeHandler. -
hashCode
public int hashCode() -
equals
-
toString
-