Class ResponseTimeHandler
- java.lang.Object
-
- io.vertx.reactivex.ext.web.handler.ResponseTimeHandler
-
- All Implemented Interfaces:
Handler<RoutingContext>,io.vertx.lang.rx.RxDelegate,PlatformHandler
public class ResponseTimeHandler extends Object implements io.vertx.lang.rx.RxDelegate, PlatformHandler, Handler<RoutingContext>
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
originalnon RX-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static io.vertx.lang.rx.TypeArg<ResponseTimeHandler>__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description ResponseTimeHandler(ResponseTimeHandler delegate)ResponseTimeHandler(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResponseTimeHandlercreate()Create a handlerbooleanequals(Object o)ResponseTimeHandlergetDelegate()voidhandle(RoutingContext event)Something has happened, so handle it.inthashCode()static ResponseTimeHandlernewInstance(ResponseTimeHandler arg)StringtoString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final io.vertx.lang.rx.TypeArg<ResponseTimeHandler> __TYPE_ARG
-
-
Constructor Detail
-
ResponseTimeHandler
public ResponseTimeHandler(ResponseTimeHandler delegate)
-
ResponseTimeHandler
public ResponseTimeHandler(Object delegate)
-
-
Method Detail
-
getDelegate
public ResponseTimeHandler getDelegate()
- Specified by:
getDelegatein interfacePlatformHandler- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
handle
public void handle(RoutingContext event)
Something has happened, so handle it.- Specified by:
handlein interfaceHandler<RoutingContext>- Specified by:
handlein interfacePlatformHandler- Parameters:
event- the event to handle
-
create
public static ResponseTimeHandler create()
Create a handler- Returns:
- the handler
-
newInstance
public static ResponseTimeHandler newInstance(ResponseTimeHandler arg)
-
-