final class io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler implements io.undertow.server.handlers.form.FormDataParser, io.undertow.util.MultipartParser$PartHandler
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler
super_class: java.lang.Object
{
private final io.undertow.server.HttpServerExchange exchange;
descriptor: Lio/undertow/server/HttpServerExchange;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.undertow.server.handlers.form.FormData data;
descriptor: Lio/undertow/server/handlers/form/FormData;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.List<java.nio.file.Path> createdFiles;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Ljava/nio/file/Path;>;
private final long maxIndividualFileSize;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.lang.String defaultEncoding;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private final java.io.ByteArrayOutputStream contentBytes;
descriptor: Ljava/io/ByteArrayOutputStream;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.lang.String currentName;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String fileName;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.nio.file.Path file;
descriptor: Ljava/nio/file/Path;
flags: (0x0002) ACC_PRIVATE
private java.nio.channels.FileChannel fileChannel;
descriptor: Ljava/nio/channels/FileChannel;
flags: (0x0002) ACC_PRIVATE
private io.undertow.util.HeaderMap headers;
descriptor: Lio/undertow/util/HeaderMap;
flags: (0x0002) ACC_PRIVATE
private io.undertow.server.HttpHandler handler;
descriptor: Lio/undertow/server/HttpHandler;
flags: (0x0002) ACC_PRIVATE
private long currentFileSize;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private final io.undertow.util.MultipartParser$ParseState parser;
descriptor: Lio/undertow/util/MultipartParser$ParseState;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
final io.undertow.server.handlers.form.MultiPartParserDefinition this$0;
descriptor: Lio/undertow/server/handlers/form/MultiPartParserDefinition;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
private void <init>(io.undertow.server.handlers.form.MultiPartParserDefinition, io.undertow.server.HttpServerExchange, java.lang.String, long, java.lang.String);
descriptor: (Lio/undertow/server/handlers/form/MultiPartParserDefinition;Lio/undertow/server/HttpServerExchange;Ljava/lang/String;JLjava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=10, args_size=6
start local 0 start local 2 start local 3 start local 4 start local 6 0: aload 0
aload 1
putfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.this$0:Lio/undertow/server/handlers/form/MultiPartParserDefinition;
aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.createdFiles:Ljava/util/List;
2: aload 0
new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
putfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.contentBytes:Ljava/io/ByteArrayOutputStream;
3: aload 0
aload 2
putfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.exchange:Lio/undertow/server/HttpServerExchange;
4: aload 0
lload 4
putfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.maxIndividualFileSize:J
5: aload 0
aload 6
putfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.defaultEncoding:Ljava/lang/String;
6: aload 0
new io.undertow.server.handlers.form.FormData
dup
aload 2
invokevirtual io.undertow.server.HttpServerExchange.getConnection:()Lio/undertow/server/ServerConnection;
invokevirtual io.undertow.server.ServerConnection.getUndertowOptions:()Lorg/xnio/OptionMap;
getstatic io.undertow.UndertowOptions.MAX_PARAMETERS:Lorg/xnio/Option;
sipush 1000
invokevirtual org.xnio.OptionMap.get:(Lorg/xnio/Option;I)I
invokespecial io.undertow.server.handlers.form.FormData.<init>:(I)V
putfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.data:Lio/undertow/server/handlers/form/FormData;
7: aload 6
astore 7
start local 7 8: aload 2
invokevirtual io.undertow.server.HttpServerExchange.getRequestHeaders:()Lio/undertow/util/HeaderMap;
getstatic io.undertow.util.Headers.CONTENT_TYPE:Lio/undertow/util/HttpString;
invokevirtual io.undertow.util.HeaderMap.getFirst:(Lio/undertow/util/HttpString;)Ljava/lang/String;
astore 8
start local 8 9: aload 8
ifnull 13
10: aload 8
ldc "charset"
invokestatic io.undertow.util.Headers.extractQuotedValueFromHeader:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 9
start local 9 11: aload 9
ifnull 13
12: aload 9
astore 7
end local 9 13: StackMap locals: io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler io.undertow.server.handlers.form.MultiPartParserDefinition io.undertow.server.HttpServerExchange java.lang.String long java.lang.String java.lang.String java.lang.String
StackMap stack:
aload 0
aload 2
invokevirtual io.undertow.server.HttpServerExchange.getConnection:()Lio/undertow/server/ServerConnection;
invokevirtual io.undertow.server.ServerConnection.getByteBufferPool:()Lio/undertow/connector/ByteBufferPool;
aload 0
aload 3
getstatic java.nio.charset.StandardCharsets.US_ASCII:Ljava/nio/charset/Charset;
invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
aload 7
invokestatic io.undertow.util.MultipartParser.beginParse:(Lio/undertow/connector/ByteBufferPool;Lio/undertow/util/MultipartParser$PartHandler;[BLjava/lang/String;)Lio/undertow/util/MultipartParser$ParseState;
putfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.parser:Lio/undertow/util/MultipartParser$ParseState;
14: return
end local 8 end local 7 end local 6 end local 4 end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lio/undertow/server/handlers/form/MultiPartParserDefinition$MultiPartUploadHandler;
0 15 2 exchange Lio/undertow/server/HttpServerExchange;
0 15 3 boundary Ljava/lang/String;
0 15 4 maxIndividualFileSize J
0 15 6 defaultEncoding Ljava/lang/String;
8 15 7 charset Ljava/lang/String;
9 15 8 contentType Ljava/lang/String;
11 13 9 value Ljava/lang/String;
MethodParameters:
Name Flags
this$0 final
exchange final
boundary final
maxIndividualFileSize final
defaultEncoding final
public void parse(io.undertow.server.HttpHandler);
descriptor: (Lio/undertow/server/HttpHandler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.exchange:Lio/undertow/server/HttpServerExchange;
getstatic io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.FORM_DATA:Lio/undertow/util/AttachmentKey;
invokevirtual io.undertow.server.HttpServerExchange.getAttachment:(Lio/undertow/util/AttachmentKey;)Ljava/lang/Object;
ifnull 3
1: aload 1
aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.exchange:Lio/undertow/server/HttpServerExchange;
invokeinterface io.undertow.server.HttpHandler.handleRequest:(Lio/undertow/server/HttpServerExchange;)V
2: return
3: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.handler:Lio/undertow/server/HttpHandler;
4: aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.exchange:Lio/undertow/server/HttpServerExchange;
invokevirtual io.undertow.server.HttpServerExchange.getRequestChannel:()Lorg/xnio/channels/StreamSourceChannel;
astore 2
start local 2 5: aload 2
ifnonnull 7
6: new java.io.IOException
dup
getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
invokeinterface io.undertow.UndertowMessages.requestChannelAlreadyProvided:()Ljava/lang/IllegalStateException;
invokespecial java.io.IOException.<init>:(Ljava/lang/Throwable;)V
athrow
7: StackMap locals: org.xnio.channels.StreamSourceChannel
StackMap stack:
aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.this$0:Lio/undertow/server/handlers/form/MultiPartParserDefinition;
getfield io.undertow.server.handlers.form.MultiPartParserDefinition.executor:Ljava/util/concurrent/Executor;
ifnonnull 10
8: aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.exchange:Lio/undertow/server/HttpServerExchange;
new io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler$NonBlockingParseTask
dup
aload 0
aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.exchange:Lio/undertow/server/HttpServerExchange;
invokevirtual io.undertow.server.HttpServerExchange.getConnection:()Lio/undertow/server/ServerConnection;
invokevirtual io.undertow.server.ServerConnection.getWorker:()Lorg/xnio/XnioWorker;
aload 2
invokespecial io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler$NonBlockingParseTask.<init>:(Lio/undertow/server/handlers/form/MultiPartParserDefinition$MultiPartUploadHandler;Ljava/util/concurrent/Executor;Lorg/xnio/channels/StreamSourceChannel;)V
invokevirtual io.undertow.server.HttpServerExchange.dispatch:(Ljava/lang/Runnable;)Lio/undertow/server/HttpServerExchange;
pop
9: goto 11
10: StackMap locals:
StackMap stack:
aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.exchange:Lio/undertow/server/HttpServerExchange;
aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.this$0:Lio/undertow/server/handlers/form/MultiPartParserDefinition;
getfield io.undertow.server.handlers.form.MultiPartParserDefinition.executor:Ljava/util/concurrent/Executor;
new io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler$NonBlockingParseTask
dup
aload 0
aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.this$0:Lio/undertow/server/handlers/form/MultiPartParserDefinition;
getfield io.undertow.server.handlers.form.MultiPartParserDefinition.executor:Ljava/util/concurrent/Executor;
aload 2
invokespecial io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler$NonBlockingParseTask.<init>:(Lio/undertow/server/handlers/form/MultiPartParserDefinition$MultiPartUploadHandler;Ljava/util/concurrent/Executor;Lorg/xnio/channels/StreamSourceChannel;)V
invokevirtual io.undertow.server.HttpServerExchange.dispatch:(Ljava/util/concurrent/Executor;Ljava/lang/Runnable;)Lio/undertow/server/HttpServerExchange;
pop
11: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lio/undertow/server/handlers/form/MultiPartParserDefinition$MultiPartUploadHandler;
0 12 1 handler Lio/undertow/server/HttpHandler;
5 12 2 requestChannel Lorg/xnio/channels/StreamSourceChannel;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
handler final
public io.undertow.server.handlers.form.FormData parseBlocking();
descriptor: ()Lio/undertow/server/handlers/form/FormData;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=8, args_size=1
start local 0 0: aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.exchange:Lio/undertow/server/HttpServerExchange;
getstatic io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.FORM_DATA:Lio/undertow/util/AttachmentKey;
invokevirtual io.undertow.server.HttpServerExchange.getAttachment:(Lio/undertow/util/AttachmentKey;)Ljava/lang/Object;
checkcast io.undertow.server.handlers.form.FormData
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
areturn
3: StackMap locals: io.undertow.server.handlers.form.FormData
StackMap stack:
aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.exchange:Lio/undertow/server/HttpServerExchange;
invokevirtual io.undertow.server.HttpServerExchange.getInputStream:()Ljava/io/InputStream;
astore 2
start local 2 4: aload 2
ifnonnull 6
5: new java.io.IOException
dup
getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
invokeinterface io.undertow.UndertowMessages.requestChannelAlreadyProvided:()Ljava/lang/IllegalStateException;
invokespecial java.io.IOException.<init>:(Ljava/lang/Throwable;)V
athrow
6: StackMap locals: java.io.InputStream
StackMap stack:
aconst_null
astore 3
aconst_null
astore 4
7: aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.exchange:Lio/undertow/server/HttpServerExchange;
invokevirtual io.undertow.server.HttpServerExchange.getConnection:()Lio/undertow/server/ServerConnection;
invokevirtual io.undertow.server.ServerConnection.getByteBufferPool:()Lio/undertow/connector/ByteBufferPool;
invokeinterface io.undertow.connector.ByteBufferPool.getArrayBackedPool:()Lio/undertow/connector/ByteBufferPool;
invokeinterface io.undertow.connector.ByteBufferPool.allocate:()Lio/undertow/connector/PooledByteBuffer;
astore 5
start local 5 8: aload 5
invokeinterface io.undertow.connector.PooledByteBuffer.getBuffer:()Ljava/nio/ByteBuffer;
astore 6
start local 6 9: StackMap locals: io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler io.undertow.server.handlers.form.FormData java.io.InputStream java.lang.Throwable java.lang.Throwable io.undertow.connector.PooledByteBuffer java.nio.ByteBuffer
StackMap stack:
aload 6
invokevirtual java.nio.ByteBuffer.clear:()Ljava/nio/Buffer;
pop
10: aload 2
aload 6
invokevirtual java.nio.ByteBuffer.array:()[B
aload 6
invokevirtual java.nio.ByteBuffer.arrayOffset:()I
aload 6
invokevirtual java.nio.ByteBuffer.remaining:()I
invokevirtual java.io.InputStream.read:([BII)I
istore 7
start local 7 11: iload 7
iconst_m1
if_icmpne 15
12: aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.parser:Lio/undertow/util/MultipartParser$ParseState;
invokevirtual io.undertow.util.MultipartParser$ParseState.isComplete:()Z
ifeq 14
13: goto 19
14: StackMap locals: int
StackMap stack:
getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
invokeinterface io.undertow.UndertowMessages.connectionTerminatedReadingMultiPartData:()Ljava/io/IOException;
athrow
15: StackMap locals:
StackMap stack:
iload 7
ifeq 9
16: aload 6
iload 7
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/Buffer;
pop
17: aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.parser:Lio/undertow/util/MultipartParser$ParseState;
aload 6
invokevirtual io.undertow.util.MultipartParser$ParseState.parse:(Ljava/nio/ByteBuffer;)V
end local 7 18: goto 9
19: StackMap locals:
StackMap stack:
aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.exchange:Lio/undertow/server/HttpServerExchange;
getstatic io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.FORM_DATA:Lio/undertow/util/AttachmentKey;
aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.data:Lio/undertow/server/handlers/form/FormData;
invokevirtual io.undertow.server.HttpServerExchange.putAttachment:(Lio/undertow/util/AttachmentKey;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 6 20: aload 5
ifnull 28
aload 5
invokeinterface io.undertow.connector.PooledByteBuffer.close:()V
goto 28
StackMap locals: io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler io.undertow.server.handlers.form.FormData java.io.InputStream java.lang.Throwable java.lang.Throwable io.undertow.connector.PooledByteBuffer
StackMap stack: java.lang.Throwable
21: astore 3
aload 5
ifnull 22
aload 5
invokeinterface io.undertow.connector.PooledByteBuffer.close:()V
end local 5 StackMap locals:
StackMap stack:
22: aload 3
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
23: astore 4
aload 3
ifnonnull 24
aload 4
astore 3
goto 25
StackMap locals:
StackMap stack:
24: aload 3
aload 4
if_acmpeq 25
aload 3
aload 4
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
25: aload 3
athrow
StackMap locals: io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler io.undertow.server.handlers.form.FormData java.io.InputStream
StackMap stack: io.undertow.util.MalformedMessageException
26: astore 3
start local 3 27: new java.io.IOException
dup
aload 3
invokespecial java.io.IOException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 28: StackMap locals:
StackMap stack:
aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.exchange:Lio/undertow/server/HttpServerExchange;
getstatic io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.FORM_DATA:Lio/undertow/util/AttachmentKey;
invokevirtual io.undertow.server.HttpServerExchange.getAttachment:(Lio/undertow/util/AttachmentKey;)Ljava/lang/Object;
checkcast io.undertow.server.handlers.form.FormData
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Lio/undertow/server/handlers/form/MultiPartParserDefinition$MultiPartUploadHandler;
1 29 1 existing Lio/undertow/server/handlers/form/FormData;
4 29 2 inputStream Ljava/io/InputStream;
8 22 5 pooled Lio/undertow/connector/PooledByteBuffer;
9 20 6 buf Ljava/nio/ByteBuffer;
11 18 7 c I
27 28 3 e Lio/undertow/util/MalformedMessageException;
Exception table:
from to target type
8 20 21 any
7 23 23 any
6 26 26 Class io.undertow.util.MalformedMessageException
Exceptions:
throws java.io.IOException
public void beginPart(io.undertow.util.HeaderMap);
descriptor: (Lio/undertow/util/HeaderMap;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aload 0
lconst_0
putfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.currentFileSize:J
1: aload 0
aload 1
putfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.headers:Lio/undertow/util/HeaderMap;
2: aload 1
getstatic io.undertow.util.Headers.CONTENT_DISPOSITION:Lio/undertow/util/HttpString;
invokevirtual io.undertow.util.HeaderMap.getFirst:(Lio/undertow/util/HttpString;)Ljava/lang/String;
astore 2
start local 2 3: aload 2
ifnull 17
4: aload 2
ldc "form-data"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 17
5: aload 0
aload 2
ldc "name"
invokestatic io.undertow.util.Headers.extractQuotedValueFromHeader:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
putfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.currentName:Ljava/lang/String;
6: aload 0
aload 2
ldc "filename"
invokestatic io.undertow.util.Headers.extractQuotedValueFromHeaderWithEncoding:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
putfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.fileName:Ljava/lang/String;
7: aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.fileName:Ljava/lang/String;
ifnull 17
8: aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.this$0:Lio/undertow/server/handlers/form/MultiPartParserDefinition;
getfield io.undertow.server.handlers.form.MultiPartParserDefinition.tempFileLocation:Ljava/nio/file/Path;
ifnull 11
9: aload 0
aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.this$0:Lio/undertow/server/handlers/form/MultiPartParserDefinition;
getfield io.undertow.server.handlers.form.MultiPartParserDefinition.tempFileLocation:Ljava/nio/file/Path;
ldc "undertow"
ldc "upload"
iconst_0
anewarray java.nio.file.attribute.FileAttribute
invokestatic java.nio.file.Files.createTempFile:(Ljava/nio/file/Path;Ljava/lang/String;Ljava/lang/String;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;
putfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.file:Ljava/nio/file/Path;
10: goto 12
11: StackMap locals: java.lang.String
StackMap stack:
aload 0
ldc "undertow"
ldc "upload"
iconst_0
anewarray java.nio.file.attribute.FileAttribute
invokestatic java.nio.file.Files.createTempFile:(Ljava/lang/String;Ljava/lang/String;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;
putfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.file:Ljava/nio/file/Path;
12: StackMap locals:
StackMap stack:
aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.createdFiles:Ljava/util/List;
aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.file:Ljava/nio/file/Path;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
13: aload 0
aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.file:Ljava/nio/file/Path;
iconst_2
anewarray java.nio.file.OpenOption
dup
iconst_0
getstatic java.nio.file.StandardOpenOption.READ:Ljava/nio/file/StandardOpenOption;
aastore
dup
iconst_1
getstatic java.nio.file.StandardOpenOption.WRITE:Ljava/nio/file/StandardOpenOption;
aastore
invokestatic java.nio.channels.FileChannel.open:(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/nio/channels/FileChannel;
putfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.fileChannel:Ljava/nio/channels/FileChannel;
14: goto 17
StackMap locals:
StackMap stack: java.io.IOException
15: astore 3
start local 3 16: new java.lang.RuntimeException
dup
aload 3
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 17: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lio/undertow/server/handlers/form/MultiPartParserDefinition$MultiPartUploadHandler;
0 18 1 headers Lio/undertow/util/HeaderMap;
3 18 2 disposition Ljava/lang/String;
16 17 3 e Ljava/io/IOException;
Exception table:
from to target type
8 14 15 Class java.io.IOException
MethodParameters:
Name Flags
headers final
public void data(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
dup
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.currentFileSize:J
aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
i2l
ladd
putfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.currentFileSize:J
1: aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.maxIndividualFileSize:J
lconst_0
lcmp
ifle 3
aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.currentFileSize:J
aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.maxIndividualFileSize:J
lcmp
ifle 3
2: getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.maxIndividualFileSize:J
invokeinterface io.undertow.UndertowMessages.maxFileSizeExceeded:(J)Lio/undertow/server/handlers/form/MultiPartParserDefinition$FileTooLargeException;
athrow
3: StackMap locals:
StackMap stack:
aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.file:Ljava/nio/file/Path;
ifnonnull 8
4: goto 6
5: StackMap locals:
StackMap stack:
aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.contentBytes:Ljava/io/ByteArrayOutputStream;
aload 1
invokevirtual java.nio.ByteBuffer.get:()B
invokevirtual java.io.ByteArrayOutputStream.write:(I)V
6: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifne 5
7: goto 9
8: StackMap locals:
StackMap stack:
aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.fileChannel:Ljava/nio/channels/FileChannel;
aload 1
invokevirtual java.nio.channels.FileChannel.write:(Ljava/nio/ByteBuffer;)I
pop
9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lio/undertow/server/handlers/form/MultiPartParserDefinition$MultiPartUploadHandler;
0 10 1 buffer Ljava/nio/ByteBuffer;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
buffer final
public void endPart();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=1
start local 0 0: aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.file:Ljava/nio/file/Path;
ifnull 8
1: aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.data:Lio/undertow/server/handlers/form/FormData;
aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.currentName:Ljava/lang/String;
aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.file:Ljava/nio/file/Path;
aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.fileName:Ljava/lang/String;
aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.headers:Lio/undertow/util/HeaderMap;
invokevirtual io.undertow.server.handlers.form.FormData.add:(Ljava/lang/String;Ljava/nio/file/Path;Ljava/lang/String;Lio/undertow/util/HeaderMap;)V
2: aload 0
aconst_null
putfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.file:Ljava/nio/file/Path;
3: aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.fileChannel:Ljava/nio/channels/FileChannel;
invokevirtual java.nio.channels.FileChannel.close:()V
4: aload 0
aconst_null
putfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.fileChannel:Ljava/nio/channels/FileChannel;
5: goto 19
StackMap locals:
StackMap stack: java.io.IOException
6: astore 1
start local 1 7: new java.lang.RuntimeException
dup
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 8: StackMap locals:
StackMap stack:
aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.defaultEncoding:Ljava/lang/String;
astore 1
start local 1 9: aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.headers:Lio/undertow/util/HeaderMap;
getstatic io.undertow.util.Headers.CONTENT_TYPE:Lio/undertow/util/HttpString;
invokevirtual io.undertow.util.HeaderMap.getFirst:(Lio/undertow/util/HttpString;)Ljava/lang/String;
astore 2
start local 2 10: aload 2
ifnull 14
11: aload 2
ldc "charset"
invokestatic io.undertow.util.Headers.extractQuotedValueFromHeader:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 12: aload 3
ifnull 14
13: aload 3
astore 1
end local 3 14: StackMap locals: java.lang.String java.lang.String
StackMap stack:
aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.data:Lio/undertow/server/handlers/form/FormData;
aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.currentName:Ljava/lang/String;
new java.lang.String
dup
aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.contentBytes:Ljava/io/ByteArrayOutputStream;
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
aload 1
invokespecial java.lang.String.<init>:([BLjava/lang/String;)V
aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.headers:Lio/undertow/util/HeaderMap;
invokevirtual io.undertow.server.handlers.form.FormData.add:(Ljava/lang/String;Ljava/lang/String;Lio/undertow/util/HeaderMap;)V
end local 2 end local 1 15: goto 18
StackMap locals: io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler
StackMap stack: java.io.UnsupportedEncodingException
16: astore 1
start local 1 17: new java.lang.RuntimeException
dup
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 18: StackMap locals:
StackMap stack:
aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.contentBytes:Ljava/io/ByteArrayOutputStream;
invokevirtual java.io.ByteArrayOutputStream.reset:()V
19: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lio/undertow/server/handlers/form/MultiPartParserDefinition$MultiPartUploadHandler;
7 8 1 e Ljava/io/IOException;
9 15 1 charset Ljava/lang/String;
10 15 2 contentType Ljava/lang/String;
12 14 3 cs Ljava/lang/String;
17 18 1 e Ljava/io/UnsupportedEncodingException;
Exception table:
from to target type
3 5 6 Class java.io.IOException
8 15 16 Class java.io.UnsupportedEncodingException
public java.util.List<java.nio.file.Path> getCreatedFiles();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.createdFiles:Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/undertow/server/handlers/form/MultiPartParserDefinition$MultiPartUploadHandler;
Signature: ()Ljava/util/List<Ljava/nio/file/Path;>;
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.fileChannel:Ljava/nio/channels/FileChannel;
invokestatic org.xnio.IoUtils.safeClose:(Ljava/io/Closeable;)V
1: new java.util.ArrayList
dup
aload 0
invokevirtual io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.getCreatedFiles:()Ljava/util/List;
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
astore 1
start local 1 2: aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.exchange:Lio/undertow/server/HttpServerExchange;
invokevirtual io.undertow.server.HttpServerExchange.getConnection:()Lio/undertow/server/ServerConnection;
invokevirtual io.undertow.server.ServerConnection.getWorker:()Lorg/xnio/XnioWorker;
new io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler$1
dup
aload 0
aload 1
invokespecial io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler$1.<init>:(Lio/undertow/server/handlers/form/MultiPartParserDefinition$MultiPartUploadHandler;Ljava/util/List;)V
invokevirtual org.xnio.XnioWorker.execute:(Ljava/lang/Runnable;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/undertow/server/handlers/form/MultiPartParserDefinition$MultiPartUploadHandler;
2 4 1 files Ljava/util/List<Ljava/nio/file/Path;>;
Exceptions:
throws java.io.IOException
public void setCharacterEncoding(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.defaultEncoding:Ljava/lang/String;
1: aload 0
getfield io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler.parser:Lio/undertow/util/MultipartParser$ParseState;
aload 1
invokevirtual io.undertow.util.MultipartParser$ParseState.setCharacterEncoding:(Ljava/lang/String;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/undertow/server/handlers/form/MultiPartParserDefinition$MultiPartUploadHandler;
0 3 1 encoding Ljava/lang/String;
MethodParameters:
Name Flags
encoding final
}
SourceFile: "MultiPartParserDefinition.java"
NestHost: io.undertow.server.handlers.form.MultiPartParserDefinition
InnerClasses:
public FileTooLargeException = io.undertow.server.handlers.form.MultiPartParserDefinition$FileTooLargeException of io.undertow.server.handlers.form.MultiPartParserDefinition
private final MultiPartUploadHandler = io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler of io.undertow.server.handlers.form.MultiPartParserDefinition
io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler$1
private final NonBlockingParseTask = io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler$NonBlockingParseTask of io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler
public ParseState = io.undertow.util.MultipartParser$ParseState of io.undertow.util.MultipartParser
public abstract PartHandler = io.undertow.util.MultipartParser$PartHandler of io.undertow.util.MultipartParser