class jdk.incubator.http.Http2ClientImpl
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.incubator.http.Http2ClientImpl
super_class: java.lang.Object
{
static final boolean DEBUG;
descriptor: Z
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final java.lang.System$Logger debug;
descriptor: Ljava/lang/System$Logger;
flags: (0x0018) ACC_STATIC, ACC_FINAL
private final jdk.incubator.http.HttpClientImpl client;
descriptor: Ljdk/incubator/http/HttpClientImpl;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Map<java.lang.String, jdk.incubator.http.Http2Connection> connections;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljdk/incubator/http/Http2Connection;>;
private final java.util.Set<java.lang.String> failures;
descriptor: Ljava/util/Set;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Set<Ljava/lang/String;>;
private static final int K;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1024
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: getstatic jdk.incubator.http.internal.common.Utils.DEBUG:Z
putstatic jdk.incubator.http.Http2ClientImpl.DEBUG:Z
1: ldc "Http2ClientImpl"
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic get(Ljava/lang/String;)Ljava/util/function/Supplier;
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;
java/lang/String.toString()Ljava/lang/String; (5)
()Ljava/lang/String;
getstatic jdk.incubator.http.Http2ClientImpl.DEBUG:Z
invokestatic jdk.incubator.http.internal.common.Utils.getDebugLogger:(Ljava/util/function/Supplier;Z)Ljava/lang/System$Logger;
2: putstatic jdk.incubator.http.Http2ClientImpl.debug:Ljava/lang/System$Logger;
3: return
LocalVariableTable:
Start End Slot Name Signature
void <init>(jdk.incubator.http.HttpClientImpl);
descriptor: (Ljdk/incubator/http/HttpClientImpl;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putfield jdk.incubator.http.Http2ClientImpl.connections:Ljava/util/Map;
2: aload 0
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
invokestatic java.util.Collections.synchronizedSet:(Ljava/util/Set;)Ljava/util/Set;
putfield jdk.incubator.http.Http2ClientImpl.failures:Ljava/util/Set;
3: aload 0
aload 1
putfield jdk.incubator.http.Http2ClientImpl.client:Ljdk/incubator/http/HttpClientImpl;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/incubator/http/Http2ClientImpl;
0 5 1 client Ljdk/incubator/http/HttpClientImpl;
MethodParameters:
Name Flags
client
java.util.concurrent.CompletableFuture<jdk.incubator.http.Http2Connection> getConnectionFor(jdk.incubator.http.HttpRequestImpl);
descriptor: (Ljdk/incubator/http/HttpRequestImpl;)Ljava/util/concurrent/CompletableFuture;
flags: (0x0000)
Code:
stack=3, locals=7, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual jdk.incubator.http.HttpRequestImpl.uri:()Ljava/net/URI;
astore 2
start local 2 1: aload 1
invokevirtual jdk.incubator.http.HttpRequestImpl.proxy:()Ljava/net/InetSocketAddress;
astore 3
start local 3 2: aload 2
aload 3
invokestatic jdk.incubator.http.Http2Connection.keyFor:(Ljava/net/URI;Ljava/net/InetSocketAddress;)Ljava/lang/String;
astore 4
start local 4 3: aload 0
dup
astore 5
monitorenter
4: aload 0
getfield jdk.incubator.http.Http2ClientImpl.connections:Ljava/util/Map;
aload 4
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.incubator.http.Http2Connection
astore 6
start local 6 5: aload 6
ifnull 8
6: aload 6
invokestatic java.util.concurrent.CompletableFuture.completedFuture:(Ljava/lang/Object;)Ljava/util/concurrent/CompletableFuture;
aload 5
monitorexit
7: areturn
8: StackMap locals: jdk.incubator.http.Http2ClientImpl jdk.incubator.http.HttpRequestImpl java.net.URI java.net.InetSocketAddress java.lang.String jdk.incubator.http.Http2ClientImpl jdk.incubator.http.Http2Connection
StackMap stack:
aload 1
invokevirtual jdk.incubator.http.HttpRequestImpl.secure:()Z
ifeq 9
aload 0
getfield jdk.incubator.http.Http2ClientImpl.failures:Ljava/util/Set;
aload 4
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 11
9: StackMap locals:
StackMap stack:
aconst_null
invokestatic jdk.incubator.http.internal.common.MinimalFuture.completedFuture:(Ljava/lang/Object;)Ljdk/incubator/http/internal/common/MinimalFuture;
aload 5
monitorexit
10: areturn
end local 6 11: StackMap locals:
StackMap stack:
aload 5
monitorexit
12: goto 15
StackMap locals:
StackMap stack: java.lang.Throwable
13: aload 5
monitorexit
14: athrow
15: StackMap locals:
StackMap stack:
aload 1
aload 0
invokestatic jdk.incubator.http.Http2Connection.createAsync:(Ljdk/incubator/http/HttpRequestImpl;Ljdk/incubator/http/Http2ClientImpl;)Ljava/util/concurrent/CompletableFuture;
16: aload 0
aload 4
invokedynamic accept(Ljdk/incubator/http/Http2ClientImpl;Ljava/lang/String;)Ljava/util/function/BiConsumer;
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;Ljava/lang/Object;)V
jdk/incubator/http/Http2ClientImpl.lambda$1(Ljava/lang/String;Ljdk/incubator/http/Http2Connection;Ljava/lang/Throwable;)V (7)
(Ljdk/incubator/http/Http2Connection;Ljava/lang/Throwable;)V
invokevirtual java.util.concurrent.CompletableFuture.whenComplete:(Ljava/util/function/BiConsumer;)Ljava/util/concurrent/CompletableFuture;
17: areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Ljdk/incubator/http/Http2ClientImpl;
0 18 1 req Ljdk/incubator/http/HttpRequestImpl;
1 18 2 uri Ljava/net/URI;
2 18 3 proxy Ljava/net/InetSocketAddress;
3 18 4 key Ljava/lang/String;
5 11 6 connection Ljdk/incubator/http/Http2Connection;
Exception table:
from to target type
4 7 13 any
8 10 13 any
11 12 13 any
13 14 13 any
Signature: (Ljdk/incubator/http/HttpRequestImpl;)Ljava/util/concurrent/CompletableFuture<Ljdk/incubator/http/Http2Connection;>;
MethodParameters:
Name Flags
req
boolean offerConnection(jdk.incubator.http.Http2Connection);
descriptor: (Ljdk/incubator/http/Http2Connection;)Z
flags: (0x0000)
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual jdk.incubator.http.Http2Connection.key:()Ljava/lang/String;
astore 2
start local 2 1: aload 0
getfield jdk.incubator.http.Http2ClientImpl.connections:Ljava/util/Map;
aload 2
aload 1
invokeinterface java.util.Map.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.incubator.http.Http2Connection
astore 3
start local 3 2: aload 3
ifnull 5
3: aload 1
iconst_1
invokevirtual jdk.incubator.http.Http2Connection.setSingleStream:(Z)V
4: iconst_0
ireturn
5: StackMap locals: java.lang.String jdk.incubator.http.Http2Connection
StackMap stack:
iconst_1
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/incubator/http/Http2ClientImpl;
0 6 1 c Ljdk/incubator/http/Http2Connection;
1 6 2 key Ljava/lang/String;
2 6 3 c1 Ljdk/incubator/http/Http2Connection;
MethodParameters:
Name Flags
c
void deleteConnection(jdk.incubator.http.Http2Connection);
descriptor: (Ljdk/incubator/http/Http2Connection;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.http.Http2ClientImpl.connections:Ljava/util/Map;
aload 1
invokevirtual jdk.incubator.http.Http2Connection.key:()Ljava/lang/String;
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/incubator/http/Http2ClientImpl;
0 2 1 c Ljdk/incubator/http/Http2Connection;
MethodParameters:
Name Flags
c
void stop();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: getstatic jdk.incubator.http.Http2ClientImpl.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
ldc "stopping"
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;)V
1: aload 0
getfield jdk.incubator.http.Http2ClientImpl.connections:Ljava/util/Map;
invokeinterface java.util.Map.values:()Ljava/util/Collection;
aload 0
invokedynamic accept(Ljdk/incubator/http/Http2ClientImpl;)Ljava/util/function/Consumer;
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
jdk/incubator/http/Http2ClientImpl.close(Ljdk/incubator/http/Http2Connection;)V (7)
(Ljdk/incubator/http/Http2Connection;)V
invokeinterface java.util.Collection.forEach:(Ljava/util/function/Consumer;)V
2: aload 0
getfield jdk.incubator.http.Http2ClientImpl.connections:Ljava/util/Map;
invokeinterface java.util.Map.clear:()V
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/incubator/http/Http2ClientImpl;
private void close(jdk.incubator.http.Http2Connection);
descriptor: (Ljdk/incubator/http/Http2Connection;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual jdk.incubator.http.Http2Connection.close:()V
1: goto 3
StackMap locals:
StackMap stack: java.lang.Throwable
2: pop
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/incubator/http/Http2ClientImpl;
0 4 1 h2c Ljdk/incubator/http/Http2Connection;
Exception table:
from to target type
0 1 2 Class java.lang.Throwable
MethodParameters:
Name Flags
h2c
jdk.incubator.http.HttpClientImpl client();
descriptor: ()Ljdk/incubator/http/HttpClientImpl;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.Http2ClientImpl.client:Ljdk/incubator/http/HttpClientImpl;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/Http2ClientImpl;
java.lang.String getSettingsString();
descriptor: ()Ljava/lang/String;
flags: (0x0000)
Code:
stack=2, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual jdk.incubator.http.Http2ClientImpl.getClientSettings:()Ljdk/incubator/http/internal/frame/SettingsFrame;
astore 1
start local 1 1: aload 1
invokevirtual jdk.incubator.http.internal.frame.SettingsFrame.toByteArray:()[B
astore 2
start local 2 2: invokestatic java.util.Base64.getUrlEncoder:()Ljava/util/Base64$Encoder;
3: invokevirtual java.util.Base64$Encoder.withoutPadding:()Ljava/util/Base64$Encoder;
4: astore 3
start local 3 5: aload 3
aload 2
invokevirtual java.util.Base64$Encoder.encodeToString:([B)Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/incubator/http/Http2ClientImpl;
1 6 1 sf Ljdk/incubator/http/internal/frame/SettingsFrame;
2 6 2 settings [B
5 6 3 encoder Ljava/util/Base64$Encoder;
private static int getParameter(java.lang.String, int, int, int);
descriptor: (Ljava/lang/String;III)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
iload 3
invokestatic jdk.incubator.http.internal.common.Utils.getIntegerNetProperty:(Ljava/lang/String;I)I
istore 4
start local 4 1: iload 4
iload 1
if_icmplt 2
iload 4
iload 2
if_icmple 6
2: StackMap locals: int
StackMap stack:
ldc "Property value for {0}={1} not in [{2}..{3}]: using default={4}"
iconst_5
anewarray java.lang.Object
dup
iconst_0
3: aload 0
aastore
dup
iconst_1
iload 4
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_3
iload 2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_4
iload 3
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
4: invokestatic jdk.incubator.http.internal.common.Log.logError:(Ljava/lang/String;[Ljava/lang/Object;)V
5: iload 3
istore 4
6: StackMap locals:
StackMap stack:
iload 4
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 property Ljava/lang/String;
0 7 1 min I
0 7 2 max I
0 7 3 defaultValue I
1 7 4 value I
MethodParameters:
Name Flags
property
min
max
defaultValue
int getConnectionWindowSize(jdk.incubator.http.internal.frame.SettingsFrame);
descriptor: (Ljdk/incubator/http/internal/frame/SettingsFrame;)I
flags: (0x0000)
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 1
iconst_4
invokevirtual jdk.incubator.http.internal.frame.SettingsFrame.getParameter:(I)I
istore 2
start local 2 1: ldc 2147483647
2: iload 2
ldc 33554432
invokestatic java.lang.Math.max:(II)I
3: invokestatic java.lang.Math.min:(II)I
istore 3
start local 3 4: ldc "jdk.httpclient.connectionWindowSize"
5: iload 2
ldc 2147483647
iload 3
6: invokestatic jdk.incubator.http.Http2ClientImpl.getParameter:(Ljava/lang/String;III)I
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/incubator/http/Http2ClientImpl;
0 7 1 clientSettings Ljdk/incubator/http/internal/frame/SettingsFrame;
1 7 2 streamWindow I
4 7 3 defaultValue I
MethodParameters:
Name Flags
clientSettings
jdk.incubator.http.internal.frame.SettingsFrame getClientSettings();
descriptor: ()Ljdk/incubator/http/internal/frame/SettingsFrame;
flags: (0x0000)
Code:
stack=6, locals=2, args_size=1
start local 0 0: new jdk.incubator.http.internal.frame.SettingsFrame
dup
invokespecial jdk.incubator.http.internal.frame.SettingsFrame.<init>:()V
astore 1
start local 1 1: aload 1
iconst_1
2: ldc "jdk.httpclient.hpack.maxheadertablesize"
3: iconst_0
ldc 2147483647
sipush 16384
4: invokestatic jdk.incubator.http.Http2ClientImpl.getParameter:(Ljava/lang/String;III)I
invokevirtual jdk.incubator.http.internal.frame.SettingsFrame.setParameter:(II)Ljdk/incubator/http/internal/frame/SettingsFrame;
pop
5: aload 1
iconst_2
6: ldc "jdk.httpclient.enablepush"
7: iconst_0
iconst_1
iconst_1
8: invokestatic jdk.incubator.http.Http2ClientImpl.getParameter:(Ljava/lang/String;III)I
invokevirtual jdk.incubator.http.internal.frame.SettingsFrame.setParameter:(II)Ljdk/incubator/http/internal/frame/SettingsFrame;
pop
9: aload 1
iconst_3
10: ldc "jdk.httpclient.maxstreams"
11: iconst_1
ldc 2147483647
bipush 100
12: invokestatic jdk.incubator.http.Http2ClientImpl.getParameter:(Ljava/lang/String;III)I
invokevirtual jdk.incubator.http.internal.frame.SettingsFrame.setParameter:(II)Ljdk/incubator/http/internal/frame/SettingsFrame;
pop
13: aload 1
iconst_4
14: ldc "jdk.httpclient.windowsize"
15: sipush 16384
ldc 2147483647
ldc 16777216
16: invokestatic jdk.incubator.http.Http2ClientImpl.getParameter:(Ljava/lang/String;III)I
invokevirtual jdk.incubator.http.internal.frame.SettingsFrame.setParameter:(II)Ljdk/incubator/http/internal/frame/SettingsFrame;
pop
17: aload 1
iconst_5
18: ldc "jdk.httpclient.maxframesize"
19: sipush 16384
ldc 16777215
sipush 16384
20: invokestatic jdk.incubator.http.Http2ClientImpl.getParameter:(Ljava/lang/String;III)I
invokevirtual jdk.incubator.http.internal.frame.SettingsFrame.setParameter:(II)Ljdk/incubator/http/internal/frame/SettingsFrame;
pop
21: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Ljdk/incubator/http/Http2ClientImpl;
1 22 1 frame Ljdk/incubator/http/internal/frame/SettingsFrame;
private void lambda$1(java.lang.String, jdk.incubator.http.Http2Connection, java.lang.Throwable);
descriptor: (Ljava/lang/String;Ljdk/incubator/http/Http2Connection;Ljava/lang/Throwable;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=6, args_size=4
start local 0 start local 2 start local 3 0: aload 0
dup
astore 4
monitorenter
1: aload 2
ifnull 4
2: aload 0
aload 2
invokevirtual jdk.incubator.http.Http2ClientImpl.offerConnection:(Ljdk/incubator/http/Http2Connection;)Z
pop
3: goto 7
4: StackMap locals: jdk.incubator.http.Http2ClientImpl
StackMap stack:
aload 3
invokestatic jdk.incubator.http.internal.common.Utils.getCompletionCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
astore 5
start local 5 5: aload 5
instanceof jdk.incubator.http.Http2Connection$ALPNException
ifeq 7
6: aload 0
getfield jdk.incubator.http.Http2ClientImpl.failures:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
end local 5 7: StackMap locals:
StackMap stack:
aload 4
monitorexit
8: goto 11
StackMap locals:
StackMap stack: java.lang.Throwable
9: aload 4
monitorexit
10: athrow
11: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljdk/incubator/http/Http2ClientImpl;
0 12 2 conn Ljdk/incubator/http/Http2Connection;
0 12 3 t Ljava/lang/Throwable;
5 7 5 cause Ljava/lang/Throwable;
Exception table:
from to target type
1 8 9 any
9 10 9 any
}
SourceFile: "Http2ClientImpl.java"
InnerClasses:
public abstract Logger = java.lang.System$Logger of java.lang.System
public final Level = java.lang.System$Logger$Level of java.lang.System$Logger
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public Encoder = java.util.Base64$Encoder of java.util.Base64
final ALPNException = jdk.incubator.http.Http2Connection$ALPNException of jdk.incubator.http.Http2Connection