abstract class jdk.internal.net.http.ExchangeImpl<T>
minor version: 0
major version: 59
flags: flags: (0x0420) ACC_SUPER, ACC_ABSTRACT
this_class: jdk.internal.net.http.ExchangeImpl
super_class: java.lang.Object
{
private static final jdk.internal.net.http.common.Logger debug;
descriptor: Ljdk/internal/net/http/common/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
final jdk.internal.net.http.Exchange<T> exchange;
descriptor: Ljdk/internal/net/http/Exchange;
flags: (0x0010) ACC_FINAL
Signature: Ljdk/internal/net/http/Exchange<TT;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc "ExchangeImpl"
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.internal.net.http.common.Utils.DEBUG:Z
invokestatic jdk.internal.net.http.common.Utils.getDebugLogger:(Ljava/util/function/Supplier;Z)Ljdk/internal/net/http/common/Logger;
1: putstatic jdk.internal.net.http.ExchangeImpl.debug:Ljdk/internal/net/http/common/Logger;
2: return
LocalVariableTable:
Start End Slot Name Signature
void <init>(jdk.internal.net.http.Exchange<T>);
descriptor: (Ljdk/internal/net/http/Exchange;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield jdk.internal.net.http.ExchangeImpl.exchange:Ljdk/internal/net/http/Exchange;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/net/http/ExchangeImpl<TT;>;
0 3 1 e Ljdk/internal/net/http/Exchange<TT;>;
Signature: (Ljdk/internal/net/http/Exchange<TT;>;)V
MethodParameters:
Name Flags
e
final jdk.internal.net.http.Exchange<T> getExchange();
descriptor: ()Ljdk/internal/net/http/Exchange;
flags: (0x0010) ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.ExchangeImpl.exchange:Ljdk/internal/net/http/Exchange;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/ExchangeImpl<TT;>;
Signature: ()Ljdk/internal/net/http/Exchange<TT;>;
java.net.http.HttpClient client();
descriptor: ()Ljava/net/http/HttpClient;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.ExchangeImpl.exchange:Ljdk/internal/net/http/Exchange;
invokevirtual jdk.internal.net.http.Exchange.client:()Ljdk/internal/net/http/HttpClientImpl;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/ExchangeImpl<TT;>;
abstract jdk.internal.net.http.HttpConnection connection();
descriptor: ()Ljdk/internal/net/http/HttpConnection;
flags: (0x0400) ACC_ABSTRACT
static <U> java.util.concurrent.CompletableFuture<? extends jdk.internal.net.http.ExchangeImpl<U>> get(jdk.internal.net.http.Exchange<U>, jdk.internal.net.http.HttpConnection);
descriptor: (Ljdk/internal/net/http/Exchange;Ljdk/internal/net/http/HttpConnection;)Ljava/util/concurrent/CompletableFuture;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=2, args_size=2
0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tType mismatch: cannot convert from CompletableFuture<capture#1-of ? extends ExchangeImpl<U>> to CompletableFuture<ExchangeImpl<U>>\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
LocalVariableTable:
Start End Slot Name Signature
Signature: <U:Ljava/lang/Object;>(Ljdk/internal/net/http/Exchange<TU;>;Ljdk/internal/net/http/HttpConnection;)Ljava/util/concurrent/CompletableFuture<+Ljdk/internal/net/http/ExchangeImpl<TU;>;>;
MethodParameters:
Name Flags
exchange
connection
private static <U> java.util.concurrent.CompletableFuture<? extends jdk.internal.net.http.ExchangeImpl<U>> createExchangeImpl(jdk.internal.net.http.Http2Connection, java.lang.Throwable, jdk.internal.net.http.Exchange<U>, jdk.internal.net.http.HttpConnection);
descriptor: (Ljdk/internal/net/http/Http2Connection;Ljava/lang/Throwable;Ljdk/internal/net/http/Exchange;Ljdk/internal/net/http/HttpConnection;)Ljava/util/concurrent/CompletableFuture;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: getstatic jdk.internal.net.http.ExchangeImpl.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 2
1: getstatic jdk.internal.net.http.ExchangeImpl.debug:Ljdk/internal/net/http/common/Logger;
ldc "handling HTTP/2 connection creation result"
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
2: StackMap locals:
StackMap stack:
aload 2
invokevirtual jdk.internal.net.http.Exchange.request:()Ljdk/internal/net/http/HttpRequestImpl;
invokevirtual jdk.internal.net.http.HttpRequestImpl.secure:()Z
istore 4
start local 4 3: aload 1
ifnull 22
4: getstatic jdk.internal.net.http.ExchangeImpl.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 8
5: getstatic jdk.internal.net.http.ExchangeImpl.debug:Ljdk/internal/net/http/common/Logger;
ldc "handling HTTP/2 connection creation failed: %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
6: aload 1
aastore
7: invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;[Ljava/lang/Object;)V
8: StackMap locals: int
StackMap stack:
aload 1
invokestatic jdk.internal.net.http.common.Utils.getCompletionCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
astore 1
9: aload 1
instanceof jdk.internal.net.http.Http2Connection$ALPNException
ifeq 17
10: aload 1
checkcast jdk.internal.net.http.Http2Connection$ALPNException
astore 5
start local 5 11: aload 5
invokevirtual jdk.internal.net.http.Http2Connection$ALPNException.getConnection:()Ljdk/internal/net/http/AbstractAsyncSSLConnection;
astore 6
start local 6 12: getstatic jdk.internal.net.http.ExchangeImpl.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 14
13: getstatic jdk.internal.net.http.ExchangeImpl.debug:Ljdk/internal/net/http/common/Logger;
ldc "downgrading to HTTP/1.1 with: %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 6
aastore
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;[Ljava/lang/Object;)V
14: StackMap locals: jdk.internal.net.http.Http2Connection$ALPNException jdk.internal.net.http.AbstractAsyncSSLConnection
StackMap stack:
aload 2
aload 6
invokestatic jdk.internal.net.http.ExchangeImpl.createHttp1Exchange:(Ljdk/internal/net/http/Exchange;Ljdk/internal/net/http/HttpConnection;)Ljava/util/concurrent/CompletableFuture;
15: astore 7
start local 7 16: aload 7
areturn
end local 7 end local 6 end local 5 17: StackMap locals:
StackMap stack:
getstatic jdk.internal.net.http.ExchangeImpl.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 21
18: getstatic jdk.internal.net.http.ExchangeImpl.debug:Ljdk/internal/net/http/common/Logger;
ldc "HTTP/2 connection creation failed with unexpected exception: %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
19: aload 1
aastore
20: invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;[Ljava/lang/Object;)V
21: StackMap locals:
StackMap stack:
aload 1
invokestatic jdk.internal.net.http.common.MinimalFuture.failedFuture:(Ljava/lang/Throwable;)Ljava/util/concurrent/CompletableFuture;
areturn
22: StackMap locals:
StackMap stack:
iload 4
ifeq 28
aload 0
ifnonnull 28
23: getstatic jdk.internal.net.http.ExchangeImpl.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 25
24: getstatic jdk.internal.net.http.ExchangeImpl.debug:Ljdk/internal/net/http/common/Logger;
ldc "downgrading to HTTP/1.1 "
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
25: StackMap locals:
StackMap stack:
aload 2
aconst_null
invokestatic jdk.internal.net.http.ExchangeImpl.createHttp1Exchange:(Ljdk/internal/net/http/Exchange;Ljdk/internal/net/http/HttpConnection;)Ljava/util/concurrent/CompletableFuture;
26: astore 5
start local 5 27: aload 5
areturn
end local 5 28: StackMap locals:
StackMap stack:
aload 0
ifnonnull 34
29: getstatic jdk.internal.net.http.ExchangeImpl.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 31
30: getstatic jdk.internal.net.http.ExchangeImpl.debug:Ljdk/internal/net/http/common/Logger;
ldc "new Http1Exchange, try to upgrade"
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
31: StackMap locals:
StackMap stack:
aload 2
aload 3
invokestatic jdk.internal.net.http.ExchangeImpl.createHttp1Exchange:(Ljdk/internal/net/http/Exchange;Ljdk/internal/net/http/HttpConnection;)Ljava/util/concurrent/CompletableFuture;
32: aload 2
invokedynamic apply(Ljdk/internal/net/http/Exchange;)Ljava/util/function/Function;
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;
jdk/internal/net/http/ExchangeImpl.lambda$2(Ljdk/internal/net/http/Exchange;Ljdk/internal/net/http/Http1Exchange;)Ljdk/internal/net/http/Http1Exchange; (6)
(Ljdk/internal/net/http/Http1Exchange;)Ljdk/internal/net/http/Http1Exchange;
invokevirtual java.util.concurrent.CompletableFuture.thenApply:(Ljava/util/function/Function;)Ljava/util/concurrent/CompletableFuture;
33: areturn
34: StackMap locals:
StackMap stack:
getstatic jdk.internal.net.http.ExchangeImpl.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 35
getstatic jdk.internal.net.http.ExchangeImpl.debug:Ljdk/internal/net/http/common/Logger;
ldc "creating HTTP/2 streams"
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
35: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual jdk.internal.net.http.Http2Connection.createStream:(Ljdk/internal/net/http/Exchange;)Ljdk/internal/net/http/Stream;
astore 5
start local 5 36: aload 5
invokestatic jdk.internal.net.http.common.MinimalFuture.completedFuture:(Ljava/lang/Object;)Ljdk/internal/net/http/common/MinimalFuture;
astore 6
start local 6 37: aload 6
areturn
end local 6 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 38 0 c Ljdk/internal/net/http/Http2Connection;
0 38 1 t Ljava/lang/Throwable;
0 38 2 exchange Ljdk/internal/net/http/Exchange<TU;>;
0 38 3 connection Ljdk/internal/net/http/HttpConnection;
3 38 4 secure Z
11 17 5 ee Ljdk/internal/net/http/Http2Connection$ALPNException;
12 17 6 as Ljdk/internal/net/http/AbstractAsyncSSLConnection;
16 17 7 ex Ljava/util/concurrent/CompletableFuture<+Ljdk/internal/net/http/ExchangeImpl<TU;>;>;
27 28 5 ex Ljava/util/concurrent/CompletableFuture<+Ljdk/internal/net/http/ExchangeImpl<TU;>;>;
36 38 5 s Ljdk/internal/net/http/Stream<TU;>;
37 38 6 ex Ljava/util/concurrent/CompletableFuture<+Ljdk/internal/net/http/ExchangeImpl<TU;>;>;
Signature: <U:Ljava/lang/Object;>(Ljdk/internal/net/http/Http2Connection;Ljava/lang/Throwable;Ljdk/internal/net/http/Exchange<TU;>;Ljdk/internal/net/http/HttpConnection;)Ljava/util/concurrent/CompletableFuture<+Ljdk/internal/net/http/ExchangeImpl<TU;>;>;
MethodParameters:
Name Flags
c
t
exchange
connection
private static <T> java.util.concurrent.CompletableFuture<jdk.internal.net.http.Http1Exchange<T>> createHttp1Exchange(jdk.internal.net.http.Exchange<T>, jdk.internal.net.http.HttpConnection);
descriptor: (Ljdk/internal/net/http/Exchange;Ljdk/internal/net/http/HttpConnection;)Ljava/util/concurrent/CompletableFuture;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: new jdk.internal.net.http.Http1Exchange
dup
aload 0
aload 1
invokespecial jdk.internal.net.http.Http1Exchange.<init>:(Ljdk/internal/net/http/Exchange;Ljdk/internal/net/http/HttpConnection;)V
invokestatic jdk.internal.net.http.common.MinimalFuture.completedFuture:(Ljava/lang/Object;)Ljdk/internal/net/http/common/MinimalFuture;
1: areturn
2: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
start local 2 3: aload 2
invokestatic jdk.internal.net.http.common.MinimalFuture.failedFuture:(Ljava/lang/Throwable;)Ljava/util/concurrent/CompletableFuture;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 ex Ljdk/internal/net/http/Exchange<TT;>;
0 4 1 as Ljdk/internal/net/http/HttpConnection;
3 4 2 e Ljava/lang/Throwable;
Exception table:
from to target type
0 1 2 Class java.lang.Throwable
Signature: <T:Ljava/lang/Object;>(Ljdk/internal/net/http/Exchange<TT;>;Ljdk/internal/net/http/HttpConnection;)Ljava/util/concurrent/CompletableFuture<Ljdk/internal/net/http/Http1Exchange<TT;>;>;
MethodParameters:
Name Flags
ex
as
abstract java.util.concurrent.CompletableFuture<jdk.internal.net.http.ExchangeImpl<T>> sendHeadersAsync();
descriptor: ()Ljava/util/concurrent/CompletableFuture;
flags: (0x0400) ACC_ABSTRACT
Signature: ()Ljava/util/concurrent/CompletableFuture<Ljdk/internal/net/http/ExchangeImpl<TT;>;>;
abstract java.util.concurrent.CompletableFuture<jdk.internal.net.http.ExchangeImpl<T>> sendBodyAsync();
descriptor: ()Ljava/util/concurrent/CompletableFuture;
flags: (0x0400) ACC_ABSTRACT
Signature: ()Ljava/util/concurrent/CompletableFuture<Ljdk/internal/net/http/ExchangeImpl<TT;>;>;
abstract java.util.concurrent.CompletableFuture<T> readBodyAsync(java.net.http.HttpResponse$BodyHandler<T>, boolean, java.util.concurrent.Executor);
descriptor: (Ljava/net/http/HttpResponse$BodyHandler;ZLjava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
flags: (0x0400) ACC_ABSTRACT
Signature: (Ljava/net/http/HttpResponse$BodyHandler<TT;>;ZLjava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture<TT;>;
MethodParameters:
Name Flags
handler
returnConnectionToPool
executor
abstract java.util.concurrent.CompletableFuture<java.lang.Void> ignoreBody();
descriptor: ()Ljava/util/concurrent/CompletableFuture;
flags: (0x0400) ACC_ABSTRACT
Signature: ()Ljava/util/concurrent/CompletableFuture<Ljava/lang/Void;>;
abstract java.util.concurrent.CompletableFuture<jdk.internal.net.http.Response> getResponseAsync(java.util.concurrent.Executor);
descriptor: (Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
flags: (0x0400) ACC_ABSTRACT
Signature: (Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture<Ljdk/internal/net/http/Response;>;
MethodParameters:
Name Flags
executor
abstract void cancel();
descriptor: ()V
flags: (0x0400) ACC_ABSTRACT
abstract void cancel(java.io.IOException);
descriptor: (Ljava/io/IOException;)V
flags: (0x0400) ACC_ABSTRACT
MethodParameters:
Name Flags
cause
abstract void released();
descriptor: ()V
flags: (0x0400) ACC_ABSTRACT
abstract void completed();
descriptor: ()V
flags: (0x0400) ACC_ABSTRACT
abstract boolean isCanceled();
descriptor: ()Z
flags: (0x0400) ACC_ABSTRACT
abstract java.lang.Throwable getCancelCause();
descriptor: ()Ljava/lang/Throwable;
flags: (0x0400) ACC_ABSTRACT
private static jdk.internal.net.http.Http1Exchange lambda$2(jdk.internal.net.http.Exchange, jdk.internal.net.http.Http1Exchange);
descriptor: (Ljdk/internal/net/http/Exchange;Ljdk/internal/net/http/Http1Exchange;)Ljdk/internal/net/http/Http1Exchange;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=2, args_size=2
start local 1 0: aload 0
invokevirtual jdk.internal.net.http.Exchange.h2Upgrade:()V
1: aload 1
areturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 2 1 e Ljdk/internal/net/http/Http1Exchange<TU;>;
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;
SourceFile: "ExchangeImpl.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract BodyHandler = java.net.http.HttpResponse$BodyHandler of java.net.http.HttpResponse
final ALPNException = jdk.internal.net.http.Http2Connection$ALPNException of jdk.internal.net.http.Http2Connection