class jdk.incubator.http.SSLTunnelConnection extends jdk.incubator.http.HttpConnection
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.incubator.http.SSLTunnelConnection
super_class: jdk.incubator.http.HttpConnection
{
final jdk.incubator.http.PlainTunnelingConnection delegate;
descriptor: Ljdk/incubator/http/PlainTunnelingConnection;
flags: (0x0010) ACC_FINAL
protected jdk.incubator.http.SSLDelegate sslDelegate;
descriptor: Ljdk/incubator/http/SSLDelegate;
flags: (0x0004) ACC_PROTECTED
private volatile boolean connected;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
public void connect();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.SSLTunnelConnection.delegate:Ljdk/incubator/http/PlainTunnelingConnection;
invokevirtual jdk.incubator.http.PlainTunnelingConnection.connect:()V
1: aload 0
new jdk.incubator.http.SSLDelegate
dup
aload 0
getfield jdk.incubator.http.SSLTunnelConnection.delegate:Ljdk/incubator/http/PlainTunnelingConnection;
invokevirtual jdk.incubator.http.PlainTunnelingConnection.channel:()Ljava/nio/channels/SocketChannel;
aload 0
getfield jdk.incubator.http.SSLTunnelConnection.client:Ljdk/incubator/http/HttpClientImpl;
aconst_null
invokespecial jdk.incubator.http.SSLDelegate.<init>:(Ljava/nio/channels/SocketChannel;Ljdk/incubator/http/HttpClientImpl;[Ljava/lang/String;)V
putfield jdk.incubator.http.SSLTunnelConnection.sslDelegate:Ljdk/incubator/http/SSLDelegate;
2: aload 0
iconst_1
putfield jdk.incubator.http.SSLTunnelConnection.connected:Z
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/incubator/http/SSLTunnelConnection;
Exceptions:
throws java.io.IOException, java.lang.InterruptedException
boolean connected();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.SSLTunnelConnection.connected:Z
ifeq 1
aload 0
getfield jdk.incubator.http.SSLTunnelConnection.delegate:Ljdk/incubator/http/PlainTunnelingConnection;
invokevirtual jdk.incubator.http.PlainTunnelingConnection.connected:()Z
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/incubator/http/SSLTunnelConnection;
public java.util.concurrent.CompletableFuture<java.lang.Void> connectAsync();
descriptor: ()Ljava/util/concurrent/CompletableFuture;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.SSLTunnelConnection.delegate:Ljdk/incubator/http/PlainTunnelingConnection;
invokevirtual jdk.incubator.http.PlainTunnelingConnection.connectAsync:()Ljava/util/concurrent/CompletableFuture;
1: aload 0
invokedynamic accept(Ljdk/incubator/http/SSLTunnelConnection;)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/SSLTunnelConnection.lambda$0(Ljava/lang/Void;)V (7)
(Ljava/lang/Void;)V
invokevirtual java.util.concurrent.CompletableFuture.thenAccept:(Ljava/util/function/Consumer;)Ljava/util/concurrent/CompletableFuture;
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/incubator/http/SSLTunnelConnection;
Signature: ()Ljava/util/concurrent/CompletableFuture<Ljava/lang/Void;>;
void <init>(java.net.InetSocketAddress, jdk.incubator.http.HttpClientImpl, java.net.InetSocketAddress);
descriptor: (Ljava/net/InetSocketAddress;Ljdk/incubator/http/HttpClientImpl;Ljava/net/InetSocketAddress;)V
flags: (0x0000)
Code:
stack=6, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
invokespecial jdk.incubator.http.HttpConnection.<init>:(Ljava/net/InetSocketAddress;Ljdk/incubator/http/HttpClientImpl;)V
1: aload 0
new jdk.incubator.http.PlainTunnelingConnection
dup
aload 1
aload 3
aload 2
invokespecial jdk.incubator.http.PlainTunnelingConnection.<init>:(Ljava/net/InetSocketAddress;Ljava/net/InetSocketAddress;Ljdk/incubator/http/HttpClientImpl;)V
putfield jdk.incubator.http.SSLTunnelConnection.delegate:Ljdk/incubator/http/PlainTunnelingConnection;
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/incubator/http/SSLTunnelConnection;
0 3 1 addr Ljava/net/InetSocketAddress;
0 3 2 client Ljdk/incubator/http/HttpClientImpl;
0 3 3 proxy Ljava/net/InetSocketAddress;
MethodParameters:
Name Flags
addr
client
proxy
javax.net.ssl.SSLParameters sslParameters();
descriptor: ()Ljavax/net/ssl/SSLParameters;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.SSLTunnelConnection.sslDelegate:Ljdk/incubator/http/SSLDelegate;
invokevirtual jdk.incubator.http.SSLDelegate.getSSLParameters:()Ljavax/net/ssl/SSLParameters;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/SSLTunnelConnection;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "SSLTunnelConnection: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokespecial jdk.incubator.http.HttpConnection.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/SSLTunnelConnection;
private static long countBytes(java.nio.ByteBuffer[], int, int);
descriptor: ([Ljava/nio/ByteBuffer;II)J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: lconst_0
lstore 3
start local 3 1: iconst_0
istore 5
start local 5 2: goto 5
3: StackMap locals: long int
StackMap stack:
lload 3
aload 0
iload 1
iload 5
iadd
aaload
invokevirtual java.nio.ByteBuffer.remaining:()I
i2l
ladd
lstore 3
4: iinc 5 1
StackMap locals:
StackMap stack:
5: iload 5
iload 2
if_icmplt 3
end local 5 6: lload 3
lreturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 buffers [Ljava/nio/ByteBuffer;
0 7 1 start I
0 7 2 number I
1 7 3 c J
2 6 5 i I
MethodParameters:
Name Flags
buffers
start
number
jdk.incubator.http.ConnectionPool$CacheKey cacheKey();
descriptor: ()Ljdk/incubator/http/ConnectionPool$CacheKey;
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.SSLTunnelConnection.address:Ljava/net/InetSocketAddress;
aload 0
getfield jdk.incubator.http.SSLTunnelConnection.delegate:Ljdk/incubator/http/PlainTunnelingConnection;
getfield jdk.incubator.http.PlainTunnelingConnection.proxyAddr:Ljava/net/InetSocketAddress;
invokestatic jdk.incubator.http.ConnectionPool.cacheKey:(Ljava/net/InetSocketAddress;Ljava/net/InetSocketAddress;)Ljdk/incubator/http/ConnectionPool$CacheKey;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/SSLTunnelConnection;
long write(java.nio.ByteBuffer[], int, int);
descriptor: ([Ljava/nio/ByteBuffer;II)J
flags: (0x0000)
Code:
stack=4, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
iload 2
iload 3
invokestatic jdk.incubator.http.SSLTunnelConnection.countBytes:([Ljava/nio/ByteBuffer;II)J
lstore 4
start local 4 1: aload 0
getfield jdk.incubator.http.SSLTunnelConnection.sslDelegate:Ljdk/incubator/http/SSLDelegate;
aload 1
iload 2
iload 3
invokevirtual jdk.incubator.http.SSLDelegate.sendData:([Ljava/nio/ByteBuffer;II)Ljdk/incubator/http/SSLDelegate$WrapperResult;
astore 6
start local 6 2: aload 6
getfield jdk.incubator.http.SSLDelegate$WrapperResult.result:Ljavax/net/ssl/SSLEngineResult;
invokevirtual javax.net.ssl.SSLEngineResult.getStatus:()Ljavax/net/ssl/SSLEngineResult$Status;
getstatic javax.net.ssl.SSLEngineResult$Status.CLOSED:Ljavax/net/ssl/SSLEngineResult$Status;
if_acmpne 5
3: lload 4
lconst_0
lcmp
ifle 5
4: new java.io.IOException
dup
ldc "SSLHttpConnection closed"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: long jdk.incubator.http.SSLDelegate$WrapperResult
StackMap stack:
lload 4
lreturn
end local 6 end local 4 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/SSLTunnelConnection;
0 6 1 buffers [Ljava/nio/ByteBuffer;
0 6 2 start I
0 6 3 number I
1 6 4 l J
2 6 6 r Ljdk/incubator/http/SSLDelegate$WrapperResult;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
buffers
start
number
long write(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)J
flags: (0x0000)
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
i2l
lstore 2
start local 2 1: aload 0
getfield jdk.incubator.http.SSLTunnelConnection.sslDelegate:Ljdk/incubator/http/SSLDelegate;
aload 1
invokevirtual jdk.incubator.http.SSLDelegate.sendData:(Ljava/nio/ByteBuffer;)Ljdk/incubator/http/SSLDelegate$WrapperResult;
astore 4
start local 4 2: aload 4
getfield jdk.incubator.http.SSLDelegate$WrapperResult.result:Ljavax/net/ssl/SSLEngineResult;
invokevirtual javax.net.ssl.SSLEngineResult.getStatus:()Ljavax/net/ssl/SSLEngineResult$Status;
getstatic javax.net.ssl.SSLEngineResult$Status.CLOSED:Ljavax/net/ssl/SSLEngineResult$Status;
if_acmpne 5
3: lload 2
lconst_0
lcmp
ifle 5
4: new java.io.IOException
dup
ldc "SSLHttpConnection closed"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: long jdk.incubator.http.SSLDelegate$WrapperResult
StackMap stack:
lload 2
lreturn
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/incubator/http/SSLTunnelConnection;
0 6 1 buffer Ljava/nio/ByteBuffer;
1 6 2 l J
2 6 4 r Ljdk/incubator/http/SSLDelegate$WrapperResult;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
buffer
void writeAsync(jdk.incubator.http.internal.common.ByteBufferReference[]);
descriptor: ([Ljdk/incubator/http/internal/common/ByteBufferReference;)V
flags: (0x0000)
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic jdk.incubator.http.internal.common.ByteBufferReference.toBuffers:([Ljdk/incubator/http/internal/common/ByteBufferReference;)[Ljava/nio/ByteBuffer;
iconst_0
aload 1
arraylength
invokevirtual jdk.incubator.http.SSLTunnelConnection.write:([Ljava/nio/ByteBuffer;II)J
pop2
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/incubator/http/SSLTunnelConnection;
0 2 1 buffers [Ljdk/incubator/http/internal/common/ByteBufferReference;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
buffers
void writeAsyncUnordered(jdk.incubator.http.internal.common.ByteBufferReference[]);
descriptor: ([Ljdk/incubator/http/internal/common/ByteBufferReference;)V
flags: (0x0000)
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic jdk.incubator.http.internal.common.ByteBufferReference.toBuffers:([Ljdk/incubator/http/internal/common/ByteBufferReference;)[Ljava/nio/ByteBuffer;
iconst_0
aload 1
arraylength
invokevirtual jdk.incubator.http.SSLTunnelConnection.write:([Ljava/nio/ByteBuffer;II)J
pop2
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/incubator/http/SSLTunnelConnection;
0 2 1 buffers [Ljdk/incubator/http/internal/common/ByteBufferReference;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
buffers
void flushAsync();
descriptor: ()V
flags: (0x0000)
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/SSLTunnelConnection;
Exceptions:
throws java.io.IOException
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: iconst_1
anewarray java.io.Closeable
dup
iconst_0
1: aload 0
getfield jdk.incubator.http.SSLTunnelConnection.delegate:Ljdk/incubator/http/PlainTunnelingConnection;
invokevirtual jdk.incubator.http.PlainTunnelingConnection.channel:()Ljava/nio/channels/SocketChannel;
aastore
invokestatic jdk.incubator.http.internal.common.Utils.close:([Ljava/io/Closeable;)V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/incubator/http/SSLTunnelConnection;
void shutdownInput();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.SSLTunnelConnection.delegate:Ljdk/incubator/http/PlainTunnelingConnection;
invokevirtual jdk.incubator.http.PlainTunnelingConnection.channel:()Ljava/nio/channels/SocketChannel;
invokevirtual java.nio.channels.SocketChannel.shutdownInput:()Ljava/nio/channels/SocketChannel;
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/incubator/http/SSLTunnelConnection;
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.SSLTunnelConnection.delegate:Ljdk/incubator/http/PlainTunnelingConnection;
invokevirtual jdk.incubator.http.PlainTunnelingConnection.channel:()Ljava/nio/channels/SocketChannel;
invokevirtual java.nio.channels.SocketChannel.shutdownOutput:()Ljava/nio/channels/SocketChannel;
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/incubator/http/SSLTunnelConnection;
Exceptions:
throws java.io.IOException
protected java.nio.ByteBuffer readImpl();
descriptor: ()Ljava/nio/ByteBuffer;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=1
start local 0 0: invokestatic jdk.incubator.http.internal.common.Utils.getBuffer:()Ljava/nio/ByteBuffer;
astore 1
start local 1 1: aload 0
getfield jdk.incubator.http.SSLTunnelConnection.sslDelegate:Ljdk/incubator/http/SSLDelegate;
aload 1
invokevirtual jdk.incubator.http.SSLDelegate.recvData:(Ljava/nio/ByteBuffer;)Ljdk/incubator/http/SSLDelegate$WrapperResult;
astore 2
start local 2 2: aload 2
getfield jdk.incubator.http.SSLDelegate$WrapperResult.buf:Ljava/nio/ByteBuffer;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/incubator/http/SSLTunnelConnection;
1 3 1 buf Ljava/nio/ByteBuffer;
2 3 2 r Ljdk/incubator/http/SSLDelegate$WrapperResult;
Exceptions:
throws java.io.IOException
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.SSLTunnelConnection.delegate:Ljdk/incubator/http/PlainTunnelingConnection;
invokevirtual jdk.incubator.http.PlainTunnelingConnection.channel:()Ljava/nio/channels/SocketChannel;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/SSLTunnelConnection;
java.util.concurrent.CompletableFuture<java.lang.Void> whenReceivingResponse();
descriptor: ()Ljava/util/concurrent/CompletableFuture;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.SSLTunnelConnection.delegate:Ljdk/incubator/http/PlainTunnelingConnection;
invokevirtual jdk.incubator.http.PlainTunnelingConnection.whenReceivingResponse:()Ljava/util/concurrent/CompletableFuture;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/SSLTunnelConnection;
Signature: ()Ljava/util/concurrent/CompletableFuture<Ljava/lang/Void;>;
boolean isSecure();
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/SSLTunnelConnection;
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/SSLTunnelConnection;
private void lambda$0(java.lang.Void);
descriptor: (Ljava/lang/Void;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 0
new jdk.incubator.http.SSLDelegate
dup
aload 0
getfield jdk.incubator.http.SSLTunnelConnection.delegate:Ljdk/incubator/http/PlainTunnelingConnection;
invokevirtual jdk.incubator.http.PlainTunnelingConnection.channel:()Ljava/nio/channels/SocketChannel;
1: aload 0
getfield jdk.incubator.http.SSLTunnelConnection.client:Ljdk/incubator/http/HttpClientImpl;
2: aconst_null
invokespecial jdk.incubator.http.SSLDelegate.<init>:(Ljava/nio/channels/SocketChannel;Ljdk/incubator/http/HttpClientImpl;[Ljava/lang/String;)V
3: putfield jdk.incubator.http.SSLTunnelConnection.sslDelegate:Ljdk/incubator/http/SSLDelegate;
4: aload 0
iconst_1
putfield jdk.incubator.http.SSLTunnelConnection.connected:Z
5: goto 8
StackMap locals:
StackMap stack: java.io.IOException
6: astore 2
start local 2 7: new java.io.UncheckedIOException
dup
aload 2
invokespecial java.io.UncheckedIOException.<init>:(Ljava/io/IOException;)V
athrow
end local 2 8: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/incubator/http/SSLTunnelConnection;
0 9 1 v Ljava/lang/Void;
7 8 2 e Ljava/io/IOException;
Exception table:
from to target type
0 5 6 Class java.io.IOException
}
SourceFile: "SSLTunnelConnection.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public final Status = javax.net.ssl.SSLEngineResult$Status of javax.net.ssl.SSLEngineResult
CacheKey = jdk.incubator.http.ConnectionPool$CacheKey of jdk.incubator.http.ConnectionPool
WrapperResult = jdk.incubator.http.SSLDelegate$WrapperResult of jdk.incubator.http.SSLDelegate