final class jdk.incubator.http.PlainTunnelingConnection extends jdk.incubator.http.HttpConnection
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.incubator.http.PlainTunnelingConnection
super_class: jdk.incubator.http.HttpConnection
{
final jdk.incubator.http.PlainHttpConnection delegate;
descriptor: Ljdk/incubator/http/PlainHttpConnection;
flags: (0x0010) ACC_FINAL
protected final java.net.InetSocketAddress proxyAddr;
descriptor: Ljava/net/InetSocketAddress;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
private volatile boolean connected;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Ljdk/incubator/http/PlainTunnelingConnection;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic jdk.incubator.http.PlainTunnelingConnection.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
protected void <init>(java.net.InetSocketAddress, java.net.InetSocketAddress, jdk.incubator.http.HttpClientImpl);
descriptor: (Ljava/net/InetSocketAddress;Ljava/net/InetSocketAddress;Ljdk/incubator/http/HttpClientImpl;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 3
invokespecial jdk.incubator.http.HttpConnection.<init>:(Ljava/net/InetSocketAddress;Ljdk/incubator/http/HttpClientImpl;)V
1: aload 0
aload 2
putfield jdk.incubator.http.PlainTunnelingConnection.proxyAddr:Ljava/net/InetSocketAddress;
2: aload 0
new jdk.incubator.http.PlainHttpConnection
dup
aload 2
aload 3
invokespecial jdk.incubator.http.PlainHttpConnection.<init>:(Ljava/net/InetSocketAddress;Ljdk/incubator/http/HttpClientImpl;)V
putfield jdk.incubator.http.PlainTunnelingConnection.delegate:Ljdk/incubator/http/PlainHttpConnection;
3: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/incubator/http/PlainTunnelingConnection;
0 4 1 addr Ljava/net/InetSocketAddress;
0 4 2 proxy Ljava/net/InetSocketAddress;
0 4 3 client Ljdk/incubator/http/HttpClientImpl;
MethodParameters:
Name Flags
addr
proxy
client
public java.util.concurrent.CompletableFuture<java.lang.Void> connectAsync();
descriptor: ()Ljava/util/concurrent/CompletableFuture;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.PlainTunnelingConnection.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
ldc "Connecting plain connection"
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;)V
1: aload 0
getfield jdk.incubator.http.PlainTunnelingConnection.delegate:Ljdk/incubator/http/PlainHttpConnection;
invokevirtual jdk.incubator.http.PlainHttpConnection.connectAsync:()Ljava/util/concurrent/CompletableFuture;
2: aload 0
invokedynamic apply(Ljdk/incubator/http/PlainTunnelingConnection;)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/PlainTunnelingConnection.lambda$0(Ljava/lang/Void;)Ljava/util/concurrent/CompletionStage; (7)
(Ljava/lang/Void;)Ljava/util/concurrent/CompletionStage;
invokevirtual java.util.concurrent.CompletableFuture.thenCompose:(Ljava/util/function/Function;)Ljava/util/concurrent/CompletableFuture;
3: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/incubator/http/PlainTunnelingConnection;
Signature: ()Ljava/util/concurrent/CompletableFuture<Ljava/lang/Void;>;
jdk.incubator.http.HttpConnection$HttpPublisher publisher();
descriptor: ()Ljdk/incubator/http/HttpConnection$HttpPublisher;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.PlainTunnelingConnection.delegate:Ljdk/incubator/http/PlainHttpConnection;
invokevirtual jdk.incubator.http.PlainHttpConnection.publisher:()Ljdk/incubator/http/HttpConnection$HttpPublisher;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/PlainTunnelingConnection;
boolean connected();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.PlainTunnelingConnection.connected:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/PlainTunnelingConnection;
java.nio.channels.SocketChannel channel();
descriptor: ()Ljava/nio/channels/SocketChannel;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.PlainTunnelingConnection.delegate:Ljdk/incubator/http/PlainHttpConnection;
invokevirtual jdk.incubator.http.PlainHttpConnection.channel:()Ljava/nio/channels/SocketChannel;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/PlainTunnelingConnection;
jdk.incubator.http.internal.common.FlowTube getConnectionFlow();
descriptor: ()Ljdk/incubator/http/internal/common/FlowTube;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.PlainTunnelingConnection.delegate:Ljdk/incubator/http/PlainHttpConnection;
invokevirtual jdk.incubator.http.PlainHttpConnection.getConnectionFlow:()Ljdk/incubator/http/internal/common/FlowTube;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/PlainTunnelingConnection;
jdk.incubator.http.ConnectionPool$CacheKey cacheKey();
descriptor: ()Ljdk/incubator/http/ConnectionPool$CacheKey;
flags: (0x0000)
Code:
stack=4, locals=1, args_size=1
start local 0 0: new jdk.incubator.http.ConnectionPool$CacheKey
dup
aconst_null
aload 0
getfield jdk.incubator.http.PlainTunnelingConnection.proxyAddr:Ljava/net/InetSocketAddress;
invokespecial jdk.incubator.http.ConnectionPool$CacheKey.<init>:(Ljava/net/InetSocketAddress;Ljava/net/InetSocketAddress;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/PlainTunnelingConnection;
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.PlainTunnelingConnection.delegate:Ljdk/incubator/http/PlainHttpConnection;
invokevirtual jdk.incubator.http.PlainHttpConnection.close:()V
1: aload 0
iconst_0
putfield jdk.incubator.http.PlainTunnelingConnection.connected:Z
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/incubator/http/PlainTunnelingConnection;
void shutdownInput();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.PlainTunnelingConnection.delegate:Ljdk/incubator/http/PlainHttpConnection;
invokevirtual jdk.incubator.http.PlainHttpConnection.shutdownInput:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/incubator/http/PlainTunnelingConnection;
Exceptions:
throws java.io.IOException
void shutdownOutput();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.PlainTunnelingConnection.delegate:Ljdk/incubator/http/PlainHttpConnection;
invokevirtual jdk.incubator.http.PlainHttpConnection.shutdownOutput:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/incubator/http/PlainTunnelingConnection;
Exceptions:
throws java.io.IOException
boolean isSecure();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/PlainTunnelingConnection;
boolean isProxied();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/PlainTunnelingConnection;
jdk.incubator.http.HttpConnection$DetachedConnectionChannel detachChannel();
descriptor: ()Ljdk/incubator/http/HttpConnection$DetachedConnectionChannel;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.PlainTunnelingConnection.delegate:Ljdk/incubator/http/PlainHttpConnection;
invokevirtual jdk.incubator.http.PlainHttpConnection.detachChannel:()Ljdk/incubator/http/HttpConnection$DetachedConnectionChannel;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/PlainTunnelingConnection;
private java.util.concurrent.CompletionStage lambda$0(java.lang.Void);
descriptor: (Ljava/lang/Void;)Ljava/util/concurrent/CompletionStage;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=7, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.http.PlainTunnelingConnection.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
ldc "sending HTTP/1.1 CONNECT"
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;)V
1: aload 0
invokevirtual jdk.incubator.http.PlainTunnelingConnection.client:()Ljdk/incubator/http/HttpClientImpl;
astore 2
start local 2 2: getstatic jdk.incubator.http.PlainTunnelingConnection.$assertionsDisabled:Z
ifne 3
aload 2
ifnonnull 3
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals: jdk.incubator.http.HttpClientImpl
StackMap stack:
new jdk.incubator.http.HttpRequestImpl
dup
ldc "CONNECT"
aload 0
getfield jdk.incubator.http.PlainTunnelingConnection.address:Ljava/net/InetSocketAddress;
invokespecial jdk.incubator.http.HttpRequestImpl.<init>:(Ljava/lang/String;Ljava/net/InetSocketAddress;)V
astore 3
start local 3 4: new jdk.incubator.http.MultiExchange
dup
aconst_null
aload 3
aload 2
aconst_null
invokestatic jdk.incubator.http.HttpResponse$BodyHandler.discard:(Ljava/lang/Object;)Ljdk/incubator/http/HttpResponse$BodyHandler;
aconst_null
invokespecial jdk.incubator.http.MultiExchange.<init>:(Ljdk/incubator/http/HttpRequest;Ljdk/incubator/http/HttpRequestImpl;Ljdk/incubator/http/HttpClientImpl;Ljdk/incubator/http/HttpResponse$BodyHandler;Ljava/security/AccessControlContext;)V
astore 4
start local 4 5: new jdk.incubator.http.Exchange
dup
aload 3
aload 4
invokespecial jdk.incubator.http.Exchange.<init>:(Ljdk/incubator/http/HttpRequestImpl;Ljdk/incubator/http/MultiExchange;)V
astore 5
start local 5 6: aload 5
7: aload 0
getfield jdk.incubator.http.PlainTunnelingConnection.delegate:Ljdk/incubator/http/PlainHttpConnection;
invokevirtual jdk.incubator.http.Exchange.responseAsyncImpl:(Ljdk/incubator/http/HttpConnection;)Ljava/util/concurrent/CompletableFuture;
8: aload 0
aload 5
invokedynamic apply(Ljdk/incubator/http/PlainTunnelingConnection;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/PlainTunnelingConnection.lambda$1(Ljdk/incubator/http/Exchange;Ljdk/incubator/http/Response;)Ljava/util/concurrent/CompletionStage; (7)
(Ljdk/incubator/http/Response;)Ljava/util/concurrent/CompletionStage;
invokevirtual java.util.concurrent.CompletableFuture.thenCompose:(Ljava/util/function/Function;)Ljava/util/concurrent/CompletableFuture;
9: 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 10 0 this Ljdk/incubator/http/PlainTunnelingConnection;
0 10 1 v Ljava/lang/Void;
2 10 2 client Ljdk/incubator/http/HttpClientImpl;
4 10 3 req Ljdk/incubator/http/HttpRequestImpl;
5 10 4 mulEx Ljdk/incubator/http/MultiExchange<Ljava/lang/Void;Ljava/lang/Void;>;
6 10 5 connectExchange Ljdk/incubator/http/Exchange<Ljava/lang/Void;>;
private java.util.concurrent.CompletionStage lambda$1(jdk.incubator.http.Exchange, jdk.incubator.http.Response);
descriptor: (Ljdk/incubator/http/Exchange;Ljdk/incubator/http/Response;)Ljava/util/concurrent/CompletionStage;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=7, locals=6, args_size=3
start local 0 start local 2 0: new jdk.incubator.http.internal.common.MinimalFuture
dup
invokespecial jdk.incubator.http.internal.common.MinimalFuture.<init>:()V
astore 3
start local 3 1: aload 0
getfield jdk.incubator.http.PlainTunnelingConnection.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
ldc "got response: %d"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
invokevirtual jdk.incubator.http.Response.statusCode:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;[Ljava/lang/Object;)V
2: aload 2
invokevirtual jdk.incubator.http.Response.statusCode:()I
sipush 200
if_icmpeq 7
3: aload 3
new java.io.IOException
dup
4: new java.lang.StringBuilder
dup
ldc "Tunnel failed, got: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual jdk.incubator.http.Response.statusCode:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
5: invokevirtual java.util.concurrent.CompletableFuture.completeExceptionally:(Ljava/lang/Throwable;)Z
pop
6: goto 12
7: StackMap locals: java.util.concurrent.CompletableFuture
StackMap stack:
aload 1
getfield jdk.incubator.http.Exchange.exchImpl:Ljdk/incubator/http/ExchangeImpl;
checkcast jdk.incubator.http.Http1Exchange
invokevirtual jdk.incubator.http.Http1Exchange.drainLeftOverBytes:()Ljava/nio/ByteBuffer;
astore 4
start local 4 8: aload 4
invokevirtual java.nio.ByteBuffer.remaining:()I
istore 5
start local 5 9: getstatic jdk.incubator.http.PlainTunnelingConnection.$assertionsDisabled:Z
ifne 10
iload 5
ifeq 10
new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
ldc "Unexpected remaining: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 5
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
10: StackMap locals: java.nio.ByteBuffer int
StackMap stack:
aload 0
iconst_1
putfield jdk.incubator.http.PlainTunnelingConnection.connected:Z
11: aload 3
aconst_null
invokevirtual java.util.concurrent.CompletableFuture.complete:(Ljava/lang/Object;)Z
pop
end local 5 end local 4 12: StackMap locals:
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljdk/incubator/http/PlainTunnelingConnection;
0 13 2 resp Ljdk/incubator/http/Response;
1 13 3 cf Ljava/util/concurrent/CompletableFuture<Ljava/lang/Void;>;
8 12 4 b Ljava/nio/ByteBuffer;
9 12 5 remaining I
}
SourceFile: "PlainTunnelingConnection.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
CacheKey = jdk.incubator.http.ConnectionPool$CacheKey of jdk.incubator.http.ConnectionPool
abstract DetachedConnectionChannel = jdk.incubator.http.HttpConnection$DetachedConnectionChannel of jdk.incubator.http.HttpConnection
abstract HttpPublisher = jdk.incubator.http.HttpConnection$HttpPublisher of jdk.incubator.http.HttpConnection
public abstract BodyHandler = jdk.incubator.http.HttpResponse$BodyHandler of jdk.incubator.http.HttpResponse