class io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler implements io.vertx.core.Handler<io.vertx.core.buffer.Buffer>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler
super_class: java.lang.Object
{
private static final int MAX_PREALLOCATED_BODY_BUFFER_BYTES;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 65535
io.vertx.ext.web.RoutingContext context;
descriptor: Lio/vertx/ext/web/RoutingContext;
flags: (0x0000)
io.vertx.core.buffer.Buffer body;
descriptor: Lio/vertx/core/buffer/Buffer;
flags: (0x0000)
boolean failed;
descriptor: Z
flags: (0x0000)
java.util.concurrent.atomic.AtomicInteger uploadCount;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x0000)
java.util.concurrent.atomic.AtomicBoolean cleanup;
descriptor: Ljava/util/concurrent/atomic/AtomicBoolean;
flags: (0x0000)
boolean ended;
descriptor: Z
flags: (0x0000)
long uploadSize;
descriptor: J
flags: (0x0000)
final boolean isMultipart;
descriptor: Z
flags: (0x0010) ACC_FINAL
final boolean isUrlEncoded;
descriptor: Z
flags: (0x0010) ACC_FINAL
final io.vertx.ext.web.handler.impl.BodyHandlerImpl this$0;
descriptor: Lio/vertx/ext/web/handler/impl/BodyHandlerImpl;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
public void <init>(io.vertx.ext.web.handler.impl.BodyHandlerImpl, io.vertx.ext.web.RoutingContext, long);
descriptor: (Lio/vertx/ext/web/handler/impl/BodyHandlerImpl;Lio/vertx/ext/web/RoutingContext;J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=8, args_size=4
start local 0 start local 2 start local 3 0: aload 0
aload 1
putfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.this$0:Lio/vertx/ext/web/handler/impl/BodyHandlerImpl;
aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.concurrent.atomic.AtomicInteger
dup
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:()V
putfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.uploadCount:Ljava/util/concurrent/atomic/AtomicInteger;
2: aload 0
new java.util.concurrent.atomic.AtomicBoolean
dup
iconst_0
invokespecial java.util.concurrent.atomic.AtomicBoolean.<init>:(Z)V
putfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.cleanup:Ljava/util/concurrent/atomic/AtomicBoolean;
3: aload 0
lconst_0
putfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.uploadSize:J
4: aload 0
aload 2
putfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.context:Lio/vertx/ext/web/RoutingContext;
5: aload 2
invokeinterface io.vertx.ext.web.RoutingContext.fileUploads:()Ljava/util/Set;
astore 5
start local 5 6: aload 2
invokeinterface io.vertx.ext.web.RoutingContext.request:()Lio/vertx/core/http/HttpServerRequest;
getstatic io.vertx.core.http.HttpHeaders.CONTENT_TYPE:Ljava/lang/CharSequence;
invokeinterface io.vertx.core.http.HttpServerRequest.getHeader:(Ljava/lang/CharSequence;)Ljava/lang/String;
astore 6
start local 6 7: aload 6
ifnonnull 11
8: aload 0
iconst_0
putfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.isMultipart:Z
9: aload 0
iconst_0
putfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.isUrlEncoded:Z
10: goto 14
11: StackMap locals: io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler io.vertx.ext.web.handler.impl.BodyHandlerImpl io.vertx.ext.web.RoutingContext long java.util.Set java.lang.String
StackMap stack:
aload 6
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
astore 7
start local 7 12: aload 0
aload 7
getstatic io.netty.handler.codec.http.HttpHeaderValues.MULTIPART_FORM_DATA:Lio/netty/util/AsciiString;
invokevirtual io.netty.util.AsciiString.toString:()Ljava/lang/String;
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
putfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.isMultipart:Z
13: aload 0
aload 7
getstatic io.netty.handler.codec.http.HttpHeaderValues.APPLICATION_X_WWW_FORM_URLENCODED:Lio/netty/util/AsciiString;
invokevirtual io.netty.util.AsciiString.toString:()Ljava/lang/String;
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
putfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.isUrlEncoded:Z
end local 7 14: StackMap locals:
StackMap stack:
aload 0
lload 3
invokevirtual io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.initBodyBuffer:(J)V
15: aload 0
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.isMultipart:Z
ifne 16
aload 0
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.isUrlEncoded:Z
ifeq 20
16: StackMap locals:
StackMap stack:
aload 2
invokeinterface io.vertx.ext.web.RoutingContext.request:()Lio/vertx/core/http/HttpServerRequest;
iconst_1
invokeinterface io.vertx.core.http.HttpServerRequest.setExpectMultipart:(Z)Lio/vertx/core/http/HttpServerRequest;
pop
17: aload 1
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl.handleFileUploads:Z
ifeq 19
18: aload 0
aload 2
invokeinterface io.vertx.ext.web.RoutingContext.vertx:()Lio/vertx/core/Vertx;
invokeinterface io.vertx.core.Vertx.fileSystem:()Lio/vertx/core/file/FileSystem;
invokevirtual io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.makeUploadDir:(Lio/vertx/core/file/FileSystem;)V
19: StackMap locals:
StackMap stack:
aload 2
invokeinterface io.vertx.ext.web.RoutingContext.request:()Lio/vertx/core/http/HttpServerRequest;
aload 0
aload 2
aload 5
invokedynamic handle(Lio/vertx/ext/web/handler/impl/BodyHandlerImpl$BHandler;Lio/vertx/ext/web/RoutingContext;Ljava/util/Set;)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/BodyHandlerImpl$BHandler.lambda$0(Lio/vertx/ext/web/RoutingContext;Ljava/util/Set;Lio/vertx/core/http/HttpServerFileUpload;)V (7)
(Lio/vertx/core/http/HttpServerFileUpload;)V
invokeinterface io.vertx.core.http.HttpServerRequest.uploadHandler:(Lio/vertx/core/Handler;)Lio/vertx/core/http/HttpServerRequest;
pop
20: StackMap locals:
StackMap stack:
aload 2
invokeinterface io.vertx.ext.web.RoutingContext.request:()Lio/vertx/core/http/HttpServerRequest;
aload 0
aload 2
invokedynamic handle(Lio/vertx/ext/web/handler/impl/BodyHandlerImpl$BHandler;Lio/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/BodyHandlerImpl$BHandler.lambda$3(Lio/vertx/ext/web/RoutingContext;Ljava/lang/Throwable;)V (7)
(Ljava/lang/Throwable;)V
invokeinterface io.vertx.core.http.HttpServerRequest.exceptionHandler:(Lio/vertx/core/Handler;)Lio/vertx/core/http/HttpServerRequest;
pop
21: return
end local 6 end local 5 end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lio/vertx/ext/web/handler/impl/BodyHandlerImpl$BHandler;
0 22 2 context Lio/vertx/ext/web/RoutingContext;
0 22 3 contentLength J
6 22 5 fileUploads Ljava/util/Set<Lio/vertx/ext/web/FileUpload;>;
7 22 6 contentType Ljava/lang/String;
12 14 7 lowerCaseContentType Ljava/lang/String;
MethodParameters:
Name Flags
this$0 final
context
contentLength
private void initBodyBuffer(long);
descriptor: (J)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: lload 1
lconst_0
lcmp
ifge 3
1: sipush 1024
istore 3
start local 3 2: goto 7
end local 3 3: StackMap locals:
StackMap stack:
lload 1
ldc 65535
lcmp
ifle 6
4: ldc 65535
istore 3
start local 3 5: goto 7
end local 3 6: StackMap locals:
StackMap stack:
lload 1
l2i
istore 3
start local 3 7: StackMap locals: int
StackMap stack:
aload 0
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.this$0:Lio/vertx/ext/web/handler/impl/BodyHandlerImpl;
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl.bodyLimit:J
ldc -1
lcmp
ifeq 9
8: iload 3
i2l
aload 0
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.this$0:Lio/vertx/ext/web/handler/impl/BodyHandlerImpl;
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl.bodyLimit:J
invokestatic java.lang.Math.min:(JJ)J
l2i
istore 3
9: StackMap locals:
StackMap stack:
aload 0
iload 3
invokestatic io.vertx.core.buffer.Buffer.buffer:(I)Lio/vertx/core/buffer/Buffer;
putfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.body:Lio/vertx/core/buffer/Buffer;
10: return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lio/vertx/ext/web/handler/impl/BodyHandlerImpl$BHandler;
0 11 1 contentLength J
2 3 3 initialBodyBufferSize I
5 6 3 initialBodyBufferSize I
7 11 3 initialBodyBufferSize I
MethodParameters:
Name Flags
contentLength
private void makeUploadDir(io.vertx.core.file.FileSystem);
descriptor: (Lio/vertx/core/file/FileSystem;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.this$0:Lio/vertx/ext/web/handler/impl/BodyHandlerImpl;
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl.uploadsDir:Ljava/lang/String;
invokeinterface io.vertx.core.file.FileSystem.existsBlocking:(Ljava/lang/String;)Z
ifne 2
1: aload 1
aload 0
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.this$0:Lio/vertx/ext/web/handler/impl/BodyHandlerImpl;
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl.uploadsDir:Ljava/lang/String;
invokeinterface io.vertx.core.file.FileSystem.mkdirsBlocking:(Ljava/lang/String;)Lio/vertx/core/file/FileSystem;
pop
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/ext/web/handler/impl/BodyHandlerImpl$BHandler;
0 3 1 fileSystem Lio/vertx/core/file/FileSystem;
MethodParameters:
Name Flags
fileSystem
public void handle(io.vertx.core.buffer.Buffer);
descriptor: (Lio/vertx/core/buffer/Buffer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.failed:Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
dup
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.uploadSize:J
aload 1
invokeinterface io.vertx.core.buffer.Buffer.length:()I
i2l
ladd
putfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.uploadSize:J
3: aload 0
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.this$0:Lio/vertx/ext/web/handler/impl/BodyHandlerImpl;
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl.bodyLimit:J
ldc -1
lcmp
ifeq 8
aload 0
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.uploadSize:J
aload 0
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.this$0:Lio/vertx/ext/web/handler/impl/BodyHandlerImpl;
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl.bodyLimit:J
lcmp
ifle 8
4: aload 0
iconst_1
putfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.failed:Z
5: aload 0
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.context:Lio/vertx/ext/web/RoutingContext;
sipush 413
invokeinterface io.vertx.ext.web.RoutingContext.fail:(I)V
6: aload 0
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.context:Lio/vertx/ext/web/RoutingContext;
invokeinterface io.vertx.ext.web.RoutingContext.vertx:()Lio/vertx/core/Vertx;
aload 0
invokedynamic handle(Lio/vertx/ext/web/handler/impl/BodyHandlerImpl$BHandler;)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/BodyHandlerImpl$BHandler.lambda$4(Ljava/lang/Void;)V (7)
(Ljava/lang/Void;)V
invokeinterface io.vertx.core.Vertx.runOnContext:(Lio/vertx/core/Handler;)V
7: goto 10
8: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.isMultipart:Z
ifne 10
9: aload 0
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.body:Lio/vertx/core/buffer/Buffer;
aload 1
invokeinterface io.vertx.core.buffer.Buffer.appendBuffer:(Lio/vertx/core/buffer/Buffer;)Lio/vertx/core/buffer/Buffer;
pop
10: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lio/vertx/ext/web/handler/impl/BodyHandlerImpl$BHandler;
0 11 1 buff Lio/vertx/core/buffer/Buffer;
MethodParameters:
Name Flags
buff
void uploadEnded();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.uploadCount:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.decrementAndGet:()I
istore 1
start local 1 1: aload 0
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.ended:Z
ifeq 3
iload 1
ifne 3
2: aload 0
invokevirtual io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.doEnd:()V
3: StackMap locals: int
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/ext/web/handler/impl/BodyHandlerImpl$BHandler;
1 4 1 count I
void end();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
putfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.ended:Z
1: aload 0
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.uploadCount:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
ifne 3
2: aload 0
invokevirtual io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.doEnd:()V
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/ext/web/handler/impl/BodyHandlerImpl$BHandler;
void doEnd();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.failed:Z
ifeq 3
1: aload 0
invokevirtual io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.deleteFileUploads:()V
2: return
3: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.this$0:Lio/vertx/ext/web/handler/impl/BodyHandlerImpl;
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl.deleteUploadedFilesOnEnd:Z
ifeq 5
4: aload 0
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.context:Lio/vertx/ext/web/RoutingContext;
aload 0
invokedynamic handle(Lio/vertx/ext/web/handler/impl/BodyHandlerImpl$BHandler;)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/BodyHandlerImpl$BHandler.lambda$5(Ljava/lang/Void;)V (7)
(Ljava/lang/Void;)V
invokeinterface io.vertx.ext.web.RoutingContext.addBodyEndHandler:(Lio/vertx/core/Handler;)I
pop
5: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.context:Lio/vertx/ext/web/RoutingContext;
invokeinterface io.vertx.ext.web.RoutingContext.request:()Lio/vertx/core/http/HttpServerRequest;
astore 1
start local 1 6: aload 0
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.this$0:Lio/vertx/ext/web/handler/impl/BodyHandlerImpl;
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl.mergeFormAttributes:Z
ifeq 8
aload 1
invokeinterface io.vertx.core.http.HttpServerRequest.isExpectMultipart:()Z
ifeq 8
7: aload 1
invokeinterface io.vertx.core.http.HttpServerRequest.params:()Lio/vertx/core/MultiMap;
aload 1
invokeinterface io.vertx.core.http.HttpServerRequest.formAttributes:()Lio/vertx/core/MultiMap;
invokeinterface io.vertx.core.MultiMap.addAll:(Lio/vertx/core/MultiMap;)Lio/vertx/core/MultiMap;
pop
8: StackMap locals: io.vertx.core.http.HttpServerRequest
StackMap stack:
aload 0
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.context:Lio/vertx/ext/web/RoutingContext;
aload 0
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.body:Lio/vertx/core/buffer/Buffer;
invokeinterface io.vertx.ext.web.RoutingContext.setBody:(Lio/vertx/core/buffer/Buffer;)V
9: aload 0
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.context:Lio/vertx/ext/web/RoutingContext;
invokeinterface io.vertx.ext.web.RoutingContext.next:()V
10: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lio/vertx/ext/web/handler/impl/BodyHandlerImpl$BHandler;
6 11 1 req Lio/vertx/core/http/HttpServerRequest;
private void deleteFileUploads();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=1
start local 0 0: aload 0
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.cleanup:Ljava/util/concurrent/atomic/AtomicBoolean;
iconst_0
iconst_1
invokevirtual java.util.concurrent.atomic.AtomicBoolean.compareAndSet:(ZZ)Z
ifeq 7
aload 0
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.this$0:Lio/vertx/ext/web/handler/impl/BodyHandlerImpl;
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl.handleFileUploads:Z
ifeq 7
1: aload 0
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.context:Lio/vertx/ext/web/RoutingContext;
invokeinterface io.vertx.ext.web.RoutingContext.fileUploads:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 2
goto 6
StackMap locals: io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler top java.util.Iterator
StackMap stack:
2: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast io.vertx.ext.web.FileUpload
astore 1
start local 1 3: aload 0
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.context:Lio/vertx/ext/web/RoutingContext;
invokeinterface io.vertx.ext.web.RoutingContext.vertx:()Lio/vertx/core/Vertx;
invokeinterface io.vertx.core.Vertx.fileSystem:()Lio/vertx/core/file/FileSystem;
astore 3
start local 3 4: aload 1
invokeinterface io.vertx.ext.web.FileUpload.uploadedFileName:()Ljava/lang/String;
astore 4
start local 4 5: aload 3
aload 4
aload 4
aload 3
invokedynamic handle(Ljava/lang/String;Lio/vertx/core/file/FileSystem;)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/BodyHandlerImpl$BHandler.lambda$6(Ljava/lang/String;Lio/vertx/core/file/FileSystem;Lio/vertx/core/AsyncResult;)V (6)
(Lio/vertx/core/AsyncResult;)V
invokeinterface io.vertx.core.file.FileSystem.exists:(Ljava/lang/String;Lio/vertx/core/Handler;)Lio/vertx/core/file/FileSystem;
pop
end local 4 end local 3 end local 1 6: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
7: StackMap locals: io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lio/vertx/ext/web/handler/impl/BodyHandlerImpl$BHandler;
3 6 1 fileUpload Lio/vertx/ext/web/FileUpload;
4 6 3 fileSystem Lio/vertx/core/file/FileSystem;
5 6 4 uploadedFileName Ljava/lang/String;
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.core.buffer.Buffer
invokevirtual io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.handle:(Lio/vertx/core/buffer/Buffer;)V
return
LocalVariableTable:
Start End Slot Name Signature
private void lambda$0(io.vertx.ext.web.RoutingContext, java.util.Set, io.vertx.core.http.HttpServerFileUpload);
descriptor: (Lio/vertx/ext/web/RoutingContext;Ljava/util/Set;Lio/vertx/core/http/HttpServerFileUpload;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=4, locals=6, args_size=4
start local 0 start local 3 0: aload 0
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.this$0:Lio/vertx/ext/web/handler/impl/BodyHandlerImpl;
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl.bodyLimit:J
ldc -1
lcmp
ifeq 6
aload 3
invokeinterface io.vertx.core.http.HttpServerFileUpload.isSizeAvailable:()Z
ifeq 6
1: aload 0
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.uploadSize:J
aload 3
invokeinterface io.vertx.core.http.HttpServerFileUpload.size:()J
ladd
lstore 4
start local 4 2: lload 4
aload 0
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.this$0:Lio/vertx/ext/web/handler/impl/BodyHandlerImpl;
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl.bodyLimit:J
lcmp
ifle 6
3: aload 0
iconst_1
putfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.failed:Z
4: aload 1
sipush 413
invokeinterface io.vertx.ext.web.RoutingContext.fail:(I)V
5: return
end local 4 6: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.this$0:Lio/vertx/ext/web/handler/impl/BodyHandlerImpl;
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl.handleFileUploads:Z
ifeq 14
7: aload 0
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.uploadCount:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.incrementAndGet:()I
pop
8: new java.io.File
dup
aload 0
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.this$0:Lio/vertx/ext/web/handler/impl/BodyHandlerImpl;
getfield io.vertx.ext.web.handler.impl.BodyHandlerImpl.uploadsDir:Ljava/lang/String;
invokestatic java.util.UUID.randomUUID:()Ljava/util/UUID;
invokevirtual java.util.UUID.toString:()Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;Ljava/lang/String;)V
invokevirtual java.io.File.getPath:()Ljava/lang/String;
astore 4
start local 4 9: aload 3
aload 4
invokeinterface io.vertx.core.http.HttpServerFileUpload.streamToFileSystem:(Ljava/lang/String;)Lio/vertx/core/http/HttpServerFileUpload;
pop
10: new io.vertx.ext.web.impl.FileUploadImpl
dup
aload 4
aload 3
invokespecial io.vertx.ext.web.impl.FileUploadImpl.<init>:(Ljava/lang/String;Lio/vertx/core/http/HttpServerFileUpload;)V
astore 5
start local 5 11: aload 2
aload 5
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
12: aload 3
aload 0
aload 1
invokedynamic handle(Lio/vertx/ext/web/handler/impl/BodyHandlerImpl$BHandler;Lio/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/BodyHandlerImpl$BHandler.lambda$1(Lio/vertx/ext/web/RoutingContext;Ljava/lang/Throwable;)V (7)
(Ljava/lang/Throwable;)V
invokeinterface io.vertx.core.http.HttpServerFileUpload.exceptionHandler:(Lio/vertx/core/Handler;)Lio/vertx/core/http/HttpServerFileUpload;
pop
13: aload 3
aload 0
invokedynamic handle(Lio/vertx/ext/web/handler/impl/BodyHandlerImpl$BHandler;)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/BodyHandlerImpl$BHandler.lambda$2(Ljava/lang/Void;)V (7)
(Ljava/lang/Void;)V
invokeinterface io.vertx.core.http.HttpServerFileUpload.endHandler:(Lio/vertx/core/Handler;)Lio/vertx/core/http/HttpServerFileUpload;
pop
end local 5 end local 4 14: StackMap locals:
StackMap stack:
return
end local 3 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lio/vertx/ext/web/handler/impl/BodyHandlerImpl$BHandler;
0 15 3 upload Lio/vertx/core/http/HttpServerFileUpload;
2 6 4 size J
9 14 4 uploadedFileName Ljava/lang/String;
11 14 5 fileUpload Lio/vertx/ext/web/impl/FileUploadImpl;
private void lambda$3(io.vertx.ext.web.RoutingContext, java.lang.Throwable);
descriptor: (Lio/vertx/ext/web/RoutingContext;Ljava/lang/Throwable;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 2 0: aload 0
invokevirtual io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.deleteFileUploads:()V
1: aload 1
aload 2
invokeinterface io.vertx.ext.web.RoutingContext.fail:(Ljava/lang/Throwable;)V
2: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/ext/web/handler/impl/BodyHandlerImpl$BHandler;
0 3 2 t Ljava/lang/Throwable;
private void lambda$4(java.lang.Void);
descriptor: (Ljava/lang/Void;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.deleteFileUploads:()V
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/ext/web/handler/impl/BodyHandlerImpl$BHandler;
0 1 1 v Ljava/lang/Void;
private void lambda$5(java.lang.Void);
descriptor: (Ljava/lang/Void;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.deleteFileUploads:()V
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/ext/web/handler/impl/BodyHandlerImpl$BHandler;
0 1 1 x Ljava/lang/Void;
private static void lambda$6(java.lang.String, io.vertx.core.file.FileSystem, io.vertx.core.AsyncResult);
descriptor: (Ljava/lang/String;Lio/vertx/core/file/FileSystem;Lio/vertx/core/AsyncResult;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=3, args_size=3
start local 2 0: aload 2
invokeinterface io.vertx.core.AsyncResult.failed:()Z
ifeq 3
1: getstatic io.vertx.ext.web.handler.impl.BodyHandlerImpl.log:Lio/vertx/core/logging/Logger;
new java.lang.StringBuilder
dup
ldc "Could not detect if uploaded file exists, not deleting: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
invokeinterface io.vertx.core.AsyncResult.cause:()Ljava/lang/Throwable;
invokevirtual io.vertx.core.logging.Logger.warn:(Ljava/lang/Object;Ljava/lang/Throwable;)V
2: goto 5
StackMap locals:
StackMap stack:
3: aload 2
invokeinterface io.vertx.core.AsyncResult.result:()Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 5
4: aload 1
aload 0
aload 0
invokedynamic handle(Ljava/lang/String;)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/BodyHandlerImpl$BHandler.lambda$7(Ljava/lang/String;Lio/vertx/core/AsyncResult;)V (6)
(Lio/vertx/core/AsyncResult;)V
invokeinterface io.vertx.core.file.FileSystem.delete:(Ljava/lang/String;Lio/vertx/core/Handler;)Lio/vertx/core/file/FileSystem;
pop
5: StackMap locals:
StackMap stack:
return
end local 2 LocalVariableTable:
Start End Slot Name Signature
0 6 2 existResult Lio/vertx/core/AsyncResult<Ljava/lang/Boolean;>;
private void lambda$1(io.vertx.ext.web.RoutingContext, java.lang.Throwable);
descriptor: (Lio/vertx/ext/web/RoutingContext;Ljava/lang/Throwable;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 2 0: aload 0
invokevirtual io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.deleteFileUploads:()V
1: aload 1
aload 2
invokeinterface io.vertx.ext.web.RoutingContext.fail:(Ljava/lang/Throwable;)V
2: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/ext/web/handler/impl/BodyHandlerImpl$BHandler;
0 3 2 t Ljava/lang/Throwable;
private void lambda$2(java.lang.Void);
descriptor: (Ljava/lang/Void;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.uploadEnded:()V
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/ext/web/handler/impl/BodyHandlerImpl$BHandler;
0 1 1 v Ljava/lang/Void;
private static void lambda$7(java.lang.String, io.vertx.core.AsyncResult);
descriptor: (Ljava/lang/String;Lio/vertx/core/AsyncResult;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=2, args_size=2
start local 1 0: aload 1
invokeinterface io.vertx.core.AsyncResult.failed:()Z
ifeq 2
1: getstatic io.vertx.ext.web.handler.impl.BodyHandlerImpl.log:Lio/vertx/core/logging/Logger;
new java.lang.StringBuilder
dup
ldc "Delete of uploaded file failed: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 1
invokeinterface io.vertx.core.AsyncResult.cause:()Ljava/lang/Throwable;
invokevirtual io.vertx.core.logging.Logger.warn:(Ljava/lang/Object;Ljava/lang/Throwable;)V
2: StackMap locals:
StackMap stack:
return
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 3 1 deleteResult Lio/vertx/core/AsyncResult<Ljava/lang/Void;>;
}
Signature: Ljava/lang/Object;Lio/vertx/core/Handler<Lio/vertx/core/buffer/Buffer;>;
SourceFile: "BodyHandlerImpl.java"
NestHost: io.vertx.ext.web.handler.impl.BodyHandlerImpl
InnerClasses:
private BHandler = io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler of io.vertx.ext.web.handler.impl.BodyHandlerImpl
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles