class jdk.incubator.http.ResponseProcessors$MultiFile
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.incubator.http.ResponseProcessors$MultiFile
super_class: java.lang.Object
{
final java.nio.file.Path pathRoot;
descriptor: Ljava/nio/file/Path;
flags: (0x0010) ACC_FINAL
void <init>(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)V
flags: (0x0000)
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
invokevirtual java.io.File.isDirectory:()Z
ifne 3
2: new java.io.UncheckedIOException
dup
new java.io.IOException
dup
ldc "destination is not a directory"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
invokespecial java.io.UncheckedIOException.<init>:(Ljava/io/IOException;)V
athrow
3: StackMap locals: jdk.incubator.http.ResponseProcessors$MultiFile java.nio.file.Path
StackMap stack:
aload 0
aload 1
putfield jdk.incubator.http.ResponseProcessors$MultiFile.pathRoot:Ljava/nio/file/Path;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/incubator/http/ResponseProcessors$MultiFile;
0 5 1 destination Ljava/nio/file/Path;
MethodParameters:
Name Flags
destination
java.util.Optional<jdk.incubator.http.HttpResponse$BodyHandler<java.nio.file.Path>> handlePush(jdk.incubator.http.HttpRequest);
descriptor: (Ljdk/incubator/http/HttpRequest;)Ljava/util/Optional;
flags: (0x0000)
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual jdk.incubator.http.HttpRequest.uri:()Ljava/net/URI;
astore 2
start local 2 1: aload 2
invokevirtual java.net.URI.getPath:()Ljava/lang/String;
astore 3
start local 3 2: goto 4
3: StackMap locals: java.net.URI java.lang.String
StackMap stack:
aload 3
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 3
4: StackMap locals:
StackMap stack:
aload 3
ldc "/"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 3
5: aload 0
getfield jdk.incubator.http.ResponseProcessors$MultiFile.pathRoot:Ljava/nio/file/Path;
aload 3
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 4
start local 4 6: invokestatic jdk.incubator.http.internal.common.Log.trace:()Z
ifeq 10
7: ldc "Creating file body processor for URI={0}, path={1}"
iconst_2
anewarray java.lang.Object
dup
iconst_0
8: aload 2
aastore
dup
iconst_1
aload 4
aastore
9: invokestatic jdk.incubator.http.internal.common.Log.logTrace:(Ljava/lang/String;[Ljava/lang/Object;)V
10: StackMap locals: java.nio.file.Path
StackMap stack:
aload 4
invokeinterface java.nio.file.Path.getParent:()Ljava/nio/file/Path;
iconst_0
anewarray java.nio.file.attribute.FileAttribute
invokestatic java.nio.file.Files.createDirectories:(Ljava/nio/file/Path;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;
pop
11: goto 14
StackMap locals:
StackMap stack: java.io.IOException
12: astore 5
start local 5 13: new java.io.UncheckedIOException
dup
aload 5
invokespecial java.io.UncheckedIOException.<init>:(Ljava/io/IOException;)V
athrow
end local 5 14: StackMap locals:
StackMap stack:
aload 4
invokestatic jdk.incubator.http.HttpResponse$BodyHandler.asFile:(Ljava/nio/file/Path;)Ljdk/incubator/http/HttpResponse$BodyHandler;
15: astore 5
start local 5 16: aload 5
invokestatic java.util.Optional.of:(Ljava/lang/Object;)Ljava/util/Optional;
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Ljdk/incubator/http/ResponseProcessors$MultiFile;
0 17 1 request Ljdk/incubator/http/HttpRequest;
1 17 2 uri Ljava/net/URI;
2 17 3 path Ljava/lang/String;
6 17 4 p Ljava/nio/file/Path;
13 14 5 ex Ljava/io/IOException;
16 17 5 proc Ljdk/incubator/http/HttpResponse$BodyHandler<Ljava/nio/file/Path;>;
Exception table:
from to target type
10 11 12 Class java.io.IOException
Signature: (Ljdk/incubator/http/HttpRequest;)Ljava/util/Optional<Ljdk/incubator/http/HttpResponse$BodyHandler<Ljava/nio/file/Path;>;>;
MethodParameters:
Name Flags
request
}
SourceFile: "ResponseProcessors.java"
NestHost: jdk.incubator.http.ResponseProcessors
InnerClasses:
public abstract BodyHandler = jdk.incubator.http.HttpResponse$BodyHandler of jdk.incubator.http.HttpResponse
MultiFile = jdk.incubator.http.ResponseProcessors$MultiFile of jdk.incubator.http.ResponseProcessors