public class org.graalvm.component.installer.remote.ProxyConnectionFactory implements org.graalvm.component.installer.URLConnectionFactory
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.component.installer.remote.ProxyConnectionFactory
super_class: java.lang.Object
{
private static final int DEFAULT_CONNECT_DELAY;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int DEFAULT_DIRECT_CONNECT_DELAY;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String PROXY_SCHEME_PREFIX;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "http://"
private final org.graalvm.component.installer.Feedback feedback;
descriptor: Lorg/graalvm/component/installer/Feedback;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.net.URL urlBase;
descriptor: Ljava/net/URL;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector winningConnector;
descriptor: Lorg/graalvm/component/installer/remote/ProxyConnectionFactory$Connector;
flags: (0x0002) ACC_PRIVATE
private final java.util.concurrent.ExecutorService connectors;
descriptor: Ljava/util/concurrent/ExecutorService;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
java.lang.String envHttpProxy;
descriptor: Ljava/lang/String;
flags: (0x0000)
java.lang.String envHttpsProxy;
descriptor: Ljava/lang/String;
flags: (0x0000)
private int connectDelay;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int directConnectDelay;
descriptor: I
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc "org.graalvm.component.installer.connectDelaySec"
bipush 10
invokestatic java.lang.Integer.getInteger:(Ljava/lang/String;I)Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
putstatic org.graalvm.component.installer.remote.ProxyConnectionFactory.DEFAULT_CONNECT_DELAY:I
1: ldc "org.graalvm.component.installer.directConnectDelaySec"
bipush 20
invokestatic java.lang.Integer.getInteger:(Ljava/lang/String;I)Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
putstatic org.graalvm.component.installer.remote.ProxyConnectionFactory.DEFAULT_DIRECT_CONNECT_DELAY:I
2: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.graalvm.component.installer.Feedback, java.net.URL);
descriptor: (Lorg/graalvm/component/installer/Feedback;Ljava/net/URL;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
invokestatic java.util.concurrent.Executors.newCachedThreadPool:()Ljava/util/concurrent/ExecutorService;
putfield org.graalvm.component.installer.remote.ProxyConnectionFactory.connectors:Ljava/util/concurrent/ExecutorService;
2: aload 0
ldc "http_proxy"
ldc "http_proxy"
invokestatic java.lang.System.getenv:(Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
putfield org.graalvm.component.installer.remote.ProxyConnectionFactory.envHttpProxy:Ljava/lang/String;
3: aload 0
ldc "https_proxy"
ldc "https_proxy"
invokestatic java.lang.System.getenv:(Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
putfield org.graalvm.component.installer.remote.ProxyConnectionFactory.envHttpsProxy:Ljava/lang/String;
4: aload 0
getstatic org.graalvm.component.installer.remote.ProxyConnectionFactory.DEFAULT_CONNECT_DELAY:I
putfield org.graalvm.component.installer.remote.ProxyConnectionFactory.connectDelay:I
5: aload 0
getstatic org.graalvm.component.installer.remote.ProxyConnectionFactory.DEFAULT_DIRECT_CONNECT_DELAY:I
putfield org.graalvm.component.installer.remote.ProxyConnectionFactory.directConnectDelay:I
6: aload 0
aload 1
ldc Lorg/graalvm/component/installer/remote/ProxyConnectionFactory;
invokeinterface org.graalvm.component.installer.Feedback.withBundle:(Ljava/lang/Class;)Lorg/graalvm/component/installer/Feedback;
putfield org.graalvm.component.installer.remote.ProxyConnectionFactory.feedback:Lorg/graalvm/component/installer/Feedback;
7: aload 0
aload 2
putfield org.graalvm.component.installer.remote.ProxyConnectionFactory.urlBase:Ljava/net/URL;
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/graalvm/component/installer/remote/ProxyConnectionFactory;
0 9 1 feedback Lorg/graalvm/component/installer/Feedback;
0 9 2 urlBase Ljava/net/URL;
MethodParameters:
Name Flags
feedback
urlBase
public void setConnectDelay(int, int);
descriptor: (II)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: iload 1
ifge 2
1: new java.lang.IllegalArgumentException
dup
invokespecial java.lang.IllegalArgumentException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield org.graalvm.component.installer.remote.ProxyConnectionFactory.connectDelay:I
3: iload 2
iflt 6
4: aload 0
iload 2
putfield org.graalvm.component.installer.remote.ProxyConnectionFactory.directConnectDelay:I
5: goto 8
6: StackMap locals:
StackMap stack:
fconst_1
getstatic org.graalvm.component.installer.remote.ProxyConnectionFactory.DEFAULT_DIRECT_CONNECT_DELAY:I
i2f
getstatic org.graalvm.component.installer.remote.ProxyConnectionFactory.DEFAULT_CONNECT_DELAY:I
i2f
fdiv
invokestatic java.lang.Math.min:(FF)F
fstore 3
start local 3 7: aload 0
iload 1
i2f
fload 3
fmul
invokestatic java.lang.Math.round:(F)I
putfield org.graalvm.component.installer.remote.ProxyConnectionFactory.directConnectDelay:I
end local 3 8: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/graalvm/component/installer/remote/ProxyConnectionFactory;
0 9 1 delay I
0 9 2 directDelay I
7 8 3 factor F
MethodParameters:
Name Flags
delay
directDelay
public void setConnectDelayFactor(float);
descriptor: (F)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getstatic org.graalvm.component.installer.remote.ProxyConnectionFactory.DEFAULT_CONNECT_DELAY:I
i2f
fload 1
fmul
invokestatic java.lang.Math.round:(F)I
putfield org.graalvm.component.installer.remote.ProxyConnectionFactory.connectDelay:I
1: aload 0
getstatic org.graalvm.component.installer.remote.ProxyConnectionFactory.DEFAULT_DIRECT_CONNECT_DELAY:I
i2f
fload 1
fmul
invokestatic java.lang.Math.round:(F)I
putfield org.graalvm.component.installer.remote.ProxyConnectionFactory.directConnectDelay:I
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/graalvm/component/installer/remote/ProxyConnectionFactory;
0 3 1 factor F
MethodParameters:
Name Flags
factor
public org.graalvm.component.installer.remote.ProxyConnectionFactory setProxy(boolean, java.lang.String);
descriptor: (ZLjava/lang/String;)Lorg/graalvm/component/installer/remote/ProxyConnectionFactory;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 1
ifeq 3
1: aload 0
aload 2
putfield org.graalvm.component.installer.remote.ProxyConnectionFactory.envHttpsProxy:Ljava/lang/String;
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
aload 2
putfield org.graalvm.component.installer.remote.ProxyConnectionFactory.envHttpProxy:Ljava/lang/String;
4: StackMap locals:
StackMap stack:
aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/graalvm/component/installer/remote/ProxyConnectionFactory;
0 5 1 secure Z
0 5 2 proxyURI Ljava/lang/String;
MethodParameters:
Name Flags
secure
proxyURI
public java.net.URLConnection openConnection(java.net.URI, java.util.function.Consumer<java.net.URLConnection>);
descriptor: (Ljava/net/URI;Ljava/util/function/Consumer;)Ljava/net/URLConnection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnull 5
1: aload 0
aload 0
getfield org.graalvm.component.installer.remote.ProxyConnectionFactory.urlBase:Ljava/net/URL;
invokevirtual java.net.URL.toURI:()Ljava/net/URI;
aload 1
invokevirtual java.net.URI.resolve:(Ljava/net/URI;)Ljava/net/URI;
invokevirtual java.net.URI.toURL:()Ljava/net/URL;
aload 2
invokevirtual org.graalvm.component.installer.remote.ProxyConnectionFactory.openConnectionWithProxies:(Ljava/net/URL;Ljava/util/function/Consumer;)Ljava/net/URLConnection;
2: areturn
3: StackMap locals:
StackMap stack: java.net.URISyntaxException
astore 3
start local 3 4: new java.io.IOException
dup
aload 3
invokespecial java.io.IOException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 5: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield org.graalvm.component.installer.remote.ProxyConnectionFactory.urlBase:Ljava/net/URL;
aload 2
invokevirtual org.graalvm.component.installer.remote.ProxyConnectionFactory.openConnectionWithProxies:(Ljava/net/URL;Ljava/util/function/Consumer;)Ljava/net/URLConnection;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/graalvm/component/installer/remote/ProxyConnectionFactory;
0 6 1 relative Ljava/net/URI;
0 6 2 configCallback Ljava/util/function/Consumer<Ljava/net/URLConnection;>;
4 5 3 ex Ljava/net/URISyntaxException;
Exception table:
from to target type
1 2 3 Class java.net.URISyntaxException
Exceptions:
throws java.io.IOException
Signature: (Ljava/net/URI;Ljava/util/function/Consumer<Ljava/net/URLConnection;>;)Ljava/net/URLConnection;
MethodParameters:
Name Flags
relative
configCallback
private java.net.URLConnection openConnectionWithProxies(java.net.URL, java.util.function.Consumer<java.net.URLConnection>);
descriptor: (Ljava/net/URL;Ljava/util/function/Consumer;)Ljava/net/URLConnection;
flags: (0x0002) ACC_PRIVATE
Code:
stack=8, locals=11, args_size=3
start local 0 start local 1 start local 2 0: new java.util.concurrent.CountDownLatch
dup
iconst_1
invokespecial java.util.concurrent.CountDownLatch.<init>:(I)V
astore 3
start local 3 1: new org.graalvm.component.installer.remote.ProxyConnectionFactory$ConnectionContext
dup
aload 0
aload 1
aload 2
aload 3
invokespecial org.graalvm.component.installer.remote.ProxyConnectionFactory$ConnectionContext.<init>:(Lorg/graalvm/component/installer/remote/ProxyConnectionFactory;Ljava/net/URL;Ljava/util/function/Consumer;Ljava/util/concurrent/CountDownLatch;)V
astore 7
start local 7 2: aload 0
dup
astore 8
monitorenter
3: aload 0
getfield org.graalvm.component.installer.remote.ProxyConnectionFactory.envHttpProxy:Ljava/lang/String;
astore 4
start local 4 4: aload 0
getfield org.graalvm.component.installer.remote.ProxyConnectionFactory.envHttpsProxy:Ljava/lang/String;
astore 5
start local 5 5: aload 0
getfield org.graalvm.component.installer.remote.ProxyConnectionFactory.winningConnector:Lorg/graalvm/component/installer/remote/ProxyConnectionFactory$Connector;
astore 6
start local 6 6: aload 8
monitorexit
7: goto 10
end local 6 end local 5 end local 4 StackMap locals: org.graalvm.component.installer.remote.ProxyConnectionFactory java.net.URL java.util.function.Consumer java.util.concurrent.CountDownLatch top top top org.graalvm.component.installer.remote.ProxyConnectionFactory$ConnectionContext org.graalvm.component.installer.remote.ProxyConnectionFactory
StackMap stack: java.lang.Throwable
8: aload 8
monitorexit
9: athrow
start local 4 start local 5 start local 6 10: StackMap locals: org.graalvm.component.installer.remote.ProxyConnectionFactory java.net.URL java.util.function.Consumer java.util.concurrent.CountDownLatch java.lang.String java.lang.String org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector org.graalvm.component.installer.remote.ProxyConnectionFactory$ConnectionContext
StackMap stack:
iconst_0
istore 8
start local 8 11: aload 6
ifnull 15
aload 6
aload 1
invokevirtual org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector.accepts:(Ljava/net/URL;)Z
ifeq 15
12: aload 6
aload 7
invokevirtual org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector.bind:(Lorg/graalvm/component/installer/remote/ProxyConnectionFactory$ConnectionContext;)Lorg/graalvm/component/installer/remote/ProxyConnectionFactory$Connector;
pop
13: aload 7
aload 6
invokevirtual org.graalvm.component.installer.remote.ProxyConnectionFactory$ConnectionContext.submit:(Lorg/graalvm/component/installer/remote/ProxyConnectionFactory$Connector;)V
14: goto 20
15: StackMap locals: int
StackMap stack:
aload 4
ifnull 17
16: aload 7
new org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector
dup
aload 0
aload 4
invokespecial org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector.<init>:(Lorg/graalvm/component/installer/remote/ProxyConnectionFactory;Ljava/lang/String;)V
aload 7
invokevirtual org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector.bind:(Lorg/graalvm/component/installer/remote/ProxyConnectionFactory$ConnectionContext;)Lorg/graalvm/component/installer/remote/ProxyConnectionFactory$Connector;
invokevirtual org.graalvm.component.installer.remote.ProxyConnectionFactory$ConnectionContext.submit:(Lorg/graalvm/component/installer/remote/ProxyConnectionFactory$Connector;)V
17: StackMap locals:
StackMap stack:
aload 5
ifnull 19
aload 4
aload 5
invokestatic java.util.Objects.equals:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifne 19
18: aload 7
new org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector
dup
aload 0
aload 5
invokespecial org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector.<init>:(Lorg/graalvm/component/installer/remote/ProxyConnectionFactory;Ljava/lang/String;)V
aload 7
invokevirtual org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector.bind:(Lorg/graalvm/component/installer/remote/ProxyConnectionFactory$ConnectionContext;)Lorg/graalvm/component/installer/remote/ProxyConnectionFactory$Connector;
invokevirtual org.graalvm.component.installer.remote.ProxyConnectionFactory$ConnectionContext.submit:(Lorg/graalvm/component/installer/remote/ProxyConnectionFactory$Connector;)V
19: StackMap locals:
StackMap stack:
aload 7
new org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector
dup
aload 0
aconst_null
invokespecial org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector.<init>:(Lorg/graalvm/component/installer/remote/ProxyConnectionFactory;Ljava/lang/String;)V
aload 7
invokevirtual org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector.bind:(Lorg/graalvm/component/installer/remote/ProxyConnectionFactory$ConnectionContext;)Lorg/graalvm/component/installer/remote/ProxyConnectionFactory$Connector;
invokevirtual org.graalvm.component.installer.remote.ProxyConnectionFactory$ConnectionContext.submit:(Lorg/graalvm/component/installer/remote/ProxyConnectionFactory$Connector;)V
20: StackMap locals:
StackMap stack:
aload 7
invokevirtual org.graalvm.component.installer.remote.ProxyConnectionFactory$ConnectionContext.start:()V
21: iload 8
ifeq 22
aload 0
getfield org.graalvm.component.installer.remote.ProxyConnectionFactory.connectDelay:I
goto 23
StackMap locals:
StackMap stack:
22: aload 0
getfield org.graalvm.component.installer.remote.ProxyConnectionFactory.directConnectDelay:I
StackMap locals:
StackMap stack: int
23: istore 9
start local 9 24: aconst_null
astore 10
start local 10 25: iload 9
ifle 30
26: aload 3
iload 9
i2l
getstatic java.util.concurrent.TimeUnit.SECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual java.util.concurrent.CountDownLatch.await:(JLjava/util/concurrent/TimeUnit;)Z
ifne 28
27: aload 7
invokevirtual org.graalvm.component.installer.remote.ProxyConnectionFactory$ConnectionContext.getConnectException:()Ljava/io/IOException;
athrow
28: StackMap locals: int java.net.URLConnection
StackMap stack:
aload 7
invokevirtual org.graalvm.component.installer.remote.ProxyConnectionFactory$ConnectionContext.getConnection:()Ljava/net/URLConnection;
astore 10
29: goto 35
30: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.util.concurrent.CountDownLatch.await:()V
31: aload 7
invokevirtual org.graalvm.component.installer.remote.ProxyConnectionFactory$ConnectionContext.getConnection:()Ljava/net/URLConnection;
astore 10
32: goto 35
StackMap locals:
StackMap stack: java.lang.InterruptedException
33: pop
34: new java.net.ConnectException
dup
aload 0
getfield org.graalvm.component.installer.remote.ProxyConnectionFactory.feedback:Lorg/graalvm/component/installer/Feedback;
ldc "EXC_InterruptedConnectingTo"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokeinterface org.graalvm.component.installer.Feedback.l10n:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.net.ConnectException.<init>:(Ljava/lang/String;)V
athrow
35: StackMap locals:
StackMap stack:
aload 10
areturn
end local 10 end local 9 end local 8 end local 7 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 36 0 this Lorg/graalvm/component/installer/remote/ProxyConnectionFactory;
0 36 1 url Ljava/net/URL;
0 36 2 configCallback Ljava/util/function/Consumer<Ljava/net/URLConnection;>;
1 36 3 connected Ljava/util/concurrent/CountDownLatch;
4 8 4 httpProxy Ljava/lang/String;
10 36 4 httpProxy Ljava/lang/String;
5 8 5 httpsProxy Ljava/lang/String;
10 36 5 httpsProxy Ljava/lang/String;
6 8 6 winner Lorg/graalvm/component/installer/remote/ProxyConnectionFactory$Connector;
10 36 6 winner Lorg/graalvm/component/installer/remote/ProxyConnectionFactory$Connector;
2 36 7 ctx Lorg/graalvm/component/installer/remote/ProxyConnectionFactory$ConnectionContext;
11 36 8 haveProxy Z
24 36 9 shouldDelay I
25 36 10 res Ljava/net/URLConnection;
Exception table:
from to target type
3 7 8 any
8 9 8 any
25 32 33 Class java.lang.InterruptedException
Exceptions:
throws java.io.IOException
Signature: (Ljava/net/URL;Ljava/util/function/Consumer<Ljava/net/URLConnection;>;)Ljava/net/URLConnection;
MethodParameters:
Name Flags
url
configCallback
public java.net.URLConnection createConnection(java.net.URL, java.util.function.Consumer<java.net.URLConnection>);
descriptor: (Ljava/net/URL;Ljava/util/function/Consumer;)Ljava/net/URLConnection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual java.net.URL.toURI:()Ljava/net/URI;
aload 2
invokevirtual org.graalvm.component.installer.remote.ProxyConnectionFactory.openConnection:(Ljava/net/URI;Ljava/util/function/Consumer;)Ljava/net/URLConnection;
1: areturn
2: StackMap locals:
StackMap stack: java.net.URISyntaxException
astore 3
start local 3 3: new java.io.IOException
dup
aload 3
invokespecial java.io.IOException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/graalvm/component/installer/remote/ProxyConnectionFactory;
0 4 1 u Ljava/net/URL;
0 4 2 configCallback Ljava/util/function/Consumer<Ljava/net/URLConnection;>;
3 4 3 ex Ljava/net/URISyntaxException;
Exception table:
from to target type
0 1 2 Class java.net.URISyntaxException
Exceptions:
throws java.io.IOException
Signature: (Ljava/net/URL;Ljava/util/function/Consumer<Ljava/net/URLConnection;>;)Ljava/net/URLConnection;
MethodParameters:
Name Flags
u
configCallback
}
SourceFile: "ProxyConnectionFactory.java"
NestMembers:
org.graalvm.component.installer.remote.ProxyConnectionFactory$ConnectionContext org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector
InnerClasses:
private ConnectionContext = org.graalvm.component.installer.remote.ProxyConnectionFactory$ConnectionContext of org.graalvm.component.installer.remote.ProxyConnectionFactory
final Connector = org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector of org.graalvm.component.installer.remote.ProxyConnectionFactory