abstract class jdk.incubator.http.ExchangeImpl<T>
minor version: 0
major version: 59
flags: flags: (0x0420) ACC_SUPER, ACC_ABSTRACT
this_class: jdk.incubator.http.ExchangeImpl
super_class: java.lang.Object
{
static final boolean DEBUG;
descriptor: Z
flags: (0x0018) ACC_STATIC, ACC_FINAL
private static final java.lang.System$Logger DEBUG_LOGGER;
descriptor: Ljava/lang/System$Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
final jdk.incubator.http.Exchange<T> exchange;
descriptor: Ljdk/incubator/http/Exchange;
flags: (0x0010) ACC_FINAL
Signature: Ljdk/incubator/http/Exchange<TT;>;
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.ExchangeImpl.DEBUG:Z
1: 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.incubator.http.ExchangeImpl.DEBUG:Z
invokestatic jdk.incubator.http.internal.common.Utils.getDebugLogger:(Ljava/util/function/Supplier;Z)Ljava/lang/System$Logger;
2: putstatic jdk.incubator.http.ExchangeImpl.DEBUG_LOGGER:Ljava/lang/System$Logger;
3: return
LocalVariableTable:
Start End Slot Name Signature
void <init>(jdk.incubator.http.Exchange<T>);
descriptor: (Ljdk/incubator/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.incubator.http.ExchangeImpl.exchange:Ljdk/incubator/http/Exchange;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/incubator/http/ExchangeImpl<TT;>;
0 3 1 e Ljdk/incubator/http/Exchange<TT;>;
Signature: (Ljdk/incubator/http/Exchange<TT;>;)V
MethodParameters:
Name Flags
e
final jdk.incubator.http.Exchange<T> getExchange();
descriptor: ()Ljdk/incubator/http/Exchange;
flags: (0x0010) ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.ExchangeImpl.exchange:Ljdk/incubator/http/Exchange;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/ExchangeImpl<TT;>;
Signature: ()Ljdk/incubator/http/Exchange<TT;>;
abstract jdk.incubator.http.HttpConnection connection();
descriptor: ()Ljdk/incubator/http/HttpConnection;
flags: (0x0400) ACC_ABSTRACT
static <U> java.util.concurrent.CompletableFuture<? extends jdk.incubator.http.ExchangeImpl<U>> get(jdk.incubator.http.Exchange<U>, jdk.incubator.http.HttpConnection);
descriptor: (Ljdk/incubator/http/Exchange;Ljdk/incubator/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/incubator/http/Exchange<TU;>;Ljdk/incubator/http/HttpConnection;)Ljava/util/concurrent/CompletableFuture<+Ljdk/incubator/http/ExchangeImpl<TU;>;>;
MethodParameters:
Name Flags
exchange
connection
private static <U> java.util.concurrent.CompletableFuture<? extends jdk.incubator.http.ExchangeImpl<U>> createExchangeImpl(jdk.incubator.http.Http2Connection, java.lang.Throwable, jdk.incubator.http.Exchange<U>, jdk.incubator.http.HttpConnection);
descriptor: (Ljdk/incubator/http/Http2Connection;Ljava/lang/Throwable;Ljdk/incubator/http/Exchange;Ljdk/incubator/http/HttpConnection;)Ljava/util/concurrent/CompletableFuture;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: getstatic jdk.incubator.http.ExchangeImpl.DEBUG_LOGGER:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
ldc "handling HTTP/2 connection creation result"
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;)V
1: aload 2
invokevirtual jdk.incubator.http.Exchange.request:()Ljdk/incubator/http/HttpRequestImpl;
invokevirtual jdk.incubator.http.HttpRequestImpl.secure:()Z
istore 4
start local 4 2: aload 1
ifnull 19
3: getstatic jdk.incubator.http.ExchangeImpl.DEBUG_LOGGER:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
4: ldc "handling HTTP/2 connection creation failed: %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
5: aload 1
aastore
6: invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;[Ljava/lang/Object;)V
7: aload 1
invokestatic jdk.incubator.http.internal.common.Utils.getCompletionCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
astore 1
8: aload 1
instanceof jdk.incubator.http.Http2Connection$ALPNException
ifeq 15
9: aload 1
checkcast jdk.incubator.http.Http2Connection$ALPNException
astore 5
start local 5 10: aload 5
invokevirtual jdk.incubator.http.Http2Connection$ALPNException.getConnection:()Ljdk/incubator/http/AbstractAsyncSSLConnection;
astore 6
start local 6 11: getstatic jdk.incubator.http.ExchangeImpl.DEBUG_LOGGER:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
ldc "downgrading to HTTP/1.1 with: %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 6
aastore
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;[Ljava/lang/Object;)V
12: aload 2
aload 6
invokestatic jdk.incubator.http.ExchangeImpl.createHttp1Exchange:(Ljdk/incubator/http/Exchange;Ljdk/incubator/http/HttpConnection;)Ljava/util/concurrent/CompletableFuture;
13: astore 7
start local 7 14: aload 7
areturn
end local 7 end local 6 end local 5 15: StackMap locals: int
StackMap stack:
getstatic jdk.incubator.http.ExchangeImpl.DEBUG_LOGGER:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
ldc "HTTP/2 connection creation failed with unexpected exception: %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
16: aload 1
aastore
17: invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;[Ljava/lang/Object;)V
18: aload 1
invokestatic java.util.concurrent.CompletableFuture.failedFuture:(Ljava/lang/Throwable;)Ljava/util/concurrent/CompletableFuture;
areturn
19: StackMap locals:
StackMap stack:
iload 4
ifeq 24
aload 0
ifnonnull 24
20: getstatic jdk.incubator.http.ExchangeImpl.DEBUG_LOGGER:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
ldc "downgrading to HTTP/1.1 "
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;)V
21: aload 2
aconst_null
invokestatic jdk.incubator.http.ExchangeImpl.createHttp1Exchange:(Ljdk/incubator/http/Exchange;Ljdk/incubator/http/HttpConnection;)Ljava/util/concurrent/CompletableFuture;
22: astore 5
start local 5 23: aload 5
areturn
end local 5 24: StackMap locals:
StackMap stack:
aload 0
ifnonnull 29
25: getstatic jdk.incubator.http.ExchangeImpl.DEBUG_LOGGER:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
ldc "new Http1Exchange, try to upgrade"
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;)V
26: aload 2
aload 3
invokestatic jdk.incubator.http.ExchangeImpl.createHttp1Exchange:(Ljdk/incubator/http/Exchange;Ljdk/incubator/http/HttpConnection;)Ljava/util/concurrent/CompletableFuture;
27: aload 2
invokedynamic apply(Ljdk/incubator/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/incubator/http/ExchangeImpl.lambda$2(Ljdk/incubator/http/Exchange;Ljdk/incubator/http/Http1Exchange;)Ljdk/incubator/http/Http1Exchange; (6)
(Ljdk/incubator/http/Http1Exchange;)Ljdk/incubator/http/Http1Exchange;
invokevirtual java.util.concurrent.CompletableFuture.thenApply:(Ljava/util/function/Function;)Ljava/util/concurrent/CompletableFuture;
28: areturn
29: StackMap locals:
StackMap stack:
getstatic jdk.incubator.http.ExchangeImpl.DEBUG_LOGGER:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
ldc "creating HTTP/2 streams"
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;)V
30: aload 0
aload 2
invokevirtual jdk.incubator.http.Http2Connection.createStream:(Ljdk/incubator/http/Exchange;)Ljdk/incubator/http/Stream;
astore 5
start local 5 31: aload 5
invokestatic jdk.incubator.http.internal.common.MinimalFuture.completedFuture:(Ljava/lang/Object;)Ljdk/incubator/http/internal/common/MinimalFuture;
astore 6
start local 6 32: 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 33 0 c Ljdk/incubator/http/Http2Connection;
0 33 1 t Ljava/lang/Throwable;
0 33 2 exchange Ljdk/incubator/http/Exchange<TU;>;
0 33 3 connection Ljdk/incubator/http/HttpConnection;
2 33 4 secure Z
10 15 5 ee Ljdk/incubator/http/Http2Connection$ALPNException;
11 15 6 as Ljdk/incubator/http/AbstractAsyncSSLConnection;
14 15 7 ex Ljava/util/concurrent/CompletableFuture<+Ljdk/incubator/http/ExchangeImpl<TU;>;>;
23 24 5 ex Ljava/util/concurrent/CompletableFuture<+Ljdk/incubator/http/ExchangeImpl<TU;>;>;
31 33 5 s Ljdk/incubator/http/Stream<TU;>;
32 33 6 ex Ljava/util/concurrent/CompletableFuture<+Ljdk/incubator/http/ExchangeImpl<TU;>;>;
Signature: <U:Ljava/lang/Object;>(Ljdk/incubator/http/Http2Connection;Ljava/lang/Throwable;Ljdk/incubator/http/Exchange<TU;>;Ljdk/incubator/http/HttpConnection;)Ljava/util/concurrent/CompletableFuture<+Ljdk/incubator/http/ExchangeImpl<TU;>;>;
MethodParameters:
Name Flags
c
t
exchange
connection
private static <T> java.util.concurrent.CompletableFuture<jdk.incubator.http.Http1Exchange<T>> createHttp1Exchange(jdk.incubator.http.Exchange<T>, jdk.incubator.http.HttpConnection);
descriptor: (Ljdk/incubator/http/Exchange;Ljdk/incubator/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.incubator.http.Http1Exchange
dup
aload 0
aload 1
invokespecial jdk.incubator.http.Http1Exchange.<init>:(Ljdk/incubator/http/Exchange;Ljdk/incubator/http/HttpConnection;)V
invokestatic jdk.incubator.http.internal.common.MinimalFuture.completedFuture:(Ljava/lang/Object;)Ljdk/incubator/http/internal/common/MinimalFuture;
1: areturn
2: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
start local 2 3: aload 2
invokestatic jdk.incubator.http.internal.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/incubator/http/Exchange<TT;>;
0 4 1 as Ljdk/incubator/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/incubator/http/Exchange<TT;>;Ljdk/incubator/http/HttpConnection;)Ljava/util/concurrent/CompletableFuture<Ljdk/incubator/http/Http1Exchange<TT;>;>;
MethodParameters:
Name Flags
ex
as
abstract java.util.concurrent.CompletableFuture<jdk.incubator.http.ExchangeImpl<T>> sendHeadersAsync();
descriptor: ()Ljava/util/concurrent/CompletableFuture;
flags: (0x0400) ACC_ABSTRACT
Signature: ()Ljava/util/concurrent/CompletableFuture<Ljdk/incubator/http/ExchangeImpl<TT;>;>;
abstract java.util.concurrent.CompletableFuture<jdk.incubator.http.ExchangeImpl<T>> sendBodyAsync();
descriptor: ()Ljava/util/concurrent/CompletableFuture;
flags: (0x0400) ACC_ABSTRACT
Signature: ()Ljava/util/concurrent/CompletableFuture<Ljdk/incubator/http/ExchangeImpl<TT;>;>;
abstract java.util.concurrent.CompletableFuture<T> readBodyAsync(jdk.incubator.http.HttpResponse$BodyHandler<T>, boolean, java.util.concurrent.Executor);
descriptor: (Ljdk/incubator/http/HttpResponse$BodyHandler;ZLjava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
flags: (0x0400) ACC_ABSTRACT
Signature: (Ljdk/incubator/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.incubator.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/incubator/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.incubator.http.Http1Exchange lambda$2(jdk.incubator.http.Exchange, jdk.incubator.http.Http1Exchange);
descriptor: (Ljdk/incubator/http/Exchange;Ljdk/incubator/http/Http1Exchange;)Ljdk/incubator/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.incubator.http.Exchange.h2Upgrade:()V
1: aload 1
areturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 2 1 e Ljdk/incubator/http/Http1Exchange<TU;>;
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;
SourceFile: "ExchangeImpl.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
final ALPNException = jdk.incubator.http.Http2Connection$ALPNException of jdk.incubator.http.Http2Connection
public abstract BodyHandler = jdk.incubator.http.HttpResponse$BodyHandler of jdk.incubator.http.HttpResponse