public class io.vertx.ext.web.handler.impl.ResponseTimeHandlerImpl implements io.vertx.ext.web.handler.ResponseTimeHandler
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.ext.web.handler.impl.ResponseTimeHandlerImpl
super_class: java.lang.Object
{
private static final java.lang.CharSequence HEADER_NAME;
descriptor: Ljava/lang/CharSequence;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "x-response-time"
invokestatic io.vertx.core.http.HttpHeaders.createOptimized:(Ljava/lang/String;)Ljava/lang/CharSequence;
putstatic io.vertx.ext.web.handler.impl.ResponseTimeHandlerImpl.HEADER_NAME:Ljava/lang/CharSequence;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/ext/web/handler/impl/ResponseTimeHandlerImpl;
public void handle(io.vertx.ext.web.RoutingContext);
descriptor: (Lio/vertx/ext/web/RoutingContext;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: invokestatic java.lang.System.nanoTime:()J
lstore 2
start local 2 1: aload 1
lload 2
aload 1
invokedynamic handle(JLio/vertx/ext/web/RoutingContext;)Lio/vertx/core/Handler;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
io/vertx/ext/web/handler/impl/ResponseTimeHandlerImpl.lambda$0(JLio/vertx/ext/web/RoutingContext;Ljava/lang/Void;)V (6)
(Ljava/lang/Void;)V
invokeinterface io.vertx.ext.web.RoutingContext.addHeadersEndHandler:(Lio/vertx/core/Handler;)I
pop
2: aload 1
invokeinterface io.vertx.ext.web.RoutingContext.next:()V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/ext/web/handler/impl/ResponseTimeHandlerImpl;
0 4 1 ctx Lio/vertx/ext/web/RoutingContext;
1 4 2 start J
MethodParameters:
Name Flags
ctx
public void handle(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast io.vertx.ext.web.RoutingContext
invokevirtual io.vertx.ext.web.handler.impl.ResponseTimeHandlerImpl.handle:(Lio/vertx/ext/web/RoutingContext;)V
return
LocalVariableTable:
Start End Slot Name Signature
private static void lambda$0(long, io.vertx.ext.web.RoutingContext, java.lang.Void);
descriptor: (JLio/vertx/ext/web/RoutingContext;Ljava/lang/Void;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=6, locals=6, args_size=3
start local 3 0: getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invokestatic java.lang.System.nanoTime:()J
lload 0
lsub
getstatic java.util.concurrent.TimeUnit.NANOSECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual java.util.concurrent.TimeUnit.convert:(JLjava/util/concurrent/TimeUnit;)J
lstore 4
start local 4 1: aload 2
invokeinterface io.vertx.ext.web.RoutingContext.response:()Lio/vertx/core/http/HttpServerResponse;
getstatic io.vertx.ext.web.handler.impl.ResponseTimeHandlerImpl.HEADER_NAME:Ljava/lang/CharSequence;
new java.lang.StringBuilder
dup
lload 4
invokestatic java.lang.String.valueOf:(J)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "ms"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface io.vertx.core.http.HttpServerResponse.putHeader:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Lio/vertx/core/http/HttpServerResponse;
pop
end local 4 2: return
end local 3 LocalVariableTable:
Start End Slot Name Signature
0 3 3 v Ljava/lang/Void;
1 2 4 duration J
}
SourceFile: "ResponseTimeHandlerImpl.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles