final class org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector implements java.lang.Runnable
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector
super_class: java.lang.Object
{
private final java.lang.String proxySpec;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.net.URL url;
descriptor: Ljava/net/URL;
flags: (0x0002) ACC_PRIVATE
private org.graalvm.component.installer.remote.ProxyConnectionFactory$ConnectionContext context;
descriptor: Lorg/graalvm/component/installer/remote/ProxyConnectionFactory$ConnectionContext;
flags: (0x0002) ACC_PRIVATE
final org.graalvm.component.installer.remote.ProxyConnectionFactory this$0;
descriptor: Lorg/graalvm/component/installer/remote/ProxyConnectionFactory;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>(org.graalvm.component.installer.remote.ProxyConnectionFactory, java.lang.String);
descriptor: (Lorg/graalvm/component/installer/remote/ProxyConnectionFactory;Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 2 0: aload 0
aload 1
putfield org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector.this$0:Lorg/graalvm/component/installer/remote/ProxyConnectionFactory;
aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 2
putfield org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector.proxySpec:Ljava/lang/String;
2: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/graalvm/component/installer/remote/ProxyConnectionFactory$Connector;
0 3 2 proxySpec Ljava/lang/String;
MethodParameters:
Name Flags
this$0 final
proxySpec
boolean isDirect();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector.proxySpec:Ljava/lang/String;
ifnonnull 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 Lorg/graalvm/component/installer/remote/ProxyConnectionFactory$Connector;
boolean accepts(java.net.URL);
descriptor: (Ljava/net/URL;)Z
flags: (0x0000)
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
dup
astore 2
monitorenter
1: aload 1
invokevirtual java.net.URL.getAuthority:()Ljava/lang/String;
aload 0
getfield org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector.url:Ljava/net/URL;
invokevirtual java.net.URL.getAuthority:()Ljava/lang/String;
invokestatic java.util.Objects.equals:(Ljava/lang/Object;Ljava/lang/Object;)Z
aload 2
monitorexit
2: ireturn
3: StackMap locals: org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector java.net.URL org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector
StackMap stack: java.lang.Throwable
aload 2
monitorexit
4: athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/graalvm/component/installer/remote/ProxyConnectionFactory$Connector;
0 5 1 u Ljava/net/URL;
Exception table:
from to target type
1 2 3 any
3 4 3 any
MethodParameters:
Name Flags
u
org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector bind(org.graalvm.component.installer.remote.ProxyConnectionFactory$ConnectionContext);
descriptor: (Lorg/graalvm/component/installer/remote/ProxyConnectionFactory$ConnectionContext;)Lorg/graalvm/component/installer/remote/ProxyConnectionFactory$Connector;
flags: (0x0000)
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
dup
astore 2
monitorenter
1: aload 0
aload 1
putfield org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector.context:Lorg/graalvm/component/installer/remote/ProxyConnectionFactory$ConnectionContext;
2: aload 0
aload 1
getfield org.graalvm.component.installer.remote.ProxyConnectionFactory$ConnectionContext.url:Ljava/net/URL;
putfield org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector.url:Ljava/net/URL;
3: aload 2
monitorexit
4: goto 7
StackMap locals: org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector org.graalvm.component.installer.remote.ProxyConnectionFactory$ConnectionContext org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector
StackMap stack: java.lang.Throwable
5: aload 2
monitorexit
6: athrow
7: StackMap locals:
StackMap stack:
aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/graalvm/component/installer/remote/ProxyConnectionFactory$Connector;
0 8 1 ctx Lorg/graalvm/component/installer/remote/ProxyConnectionFactory$ConnectionContext;
Exception table:
from to target type
1 4 5 any
5 6 5 any
MethodParameters:
Name Flags
ctx
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
dup
astore 2
monitorenter
1: aload 0
getfield org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector.context:Lorg/graalvm/component/installer/remote/ProxyConnectionFactory$ConnectionContext;
astore 1
start local 1 2: aload 0
aconst_null
putfield org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector.context:Lorg/graalvm/component/installer/remote/ProxyConnectionFactory$ConnectionContext;
3: aload 2
monitorexit
4: goto 7
end local 1 StackMap locals: org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector top org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector
StackMap stack: java.lang.Throwable
5: aload 2
monitorexit
6: athrow
start local 1 7: StackMap locals: org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector org.graalvm.component.installer.remote.ProxyConnectionFactory$ConnectionContext
StackMap stack:
aload 0
aload 1
invokevirtual org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector.runWithContext:(Lorg/graalvm/component/installer/remote/ProxyConnectionFactory$ConnectionContext;)V
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/graalvm/component/installer/remote/ProxyConnectionFactory$Connector;
2 5 1 ctx Lorg/graalvm/component/installer/remote/ProxyConnectionFactory$ConnectionContext;
7 9 1 ctx Lorg/graalvm/component/installer/remote/ProxyConnectionFactory$ConnectionContext;
Exception table:
from to target type
1 4 5 any
5 6 5 any
void runWithContext(org.graalvm.component.installer.remote.ProxyConnectionFactory$ConnectionContext);
descriptor: (Lorg/graalvm/component/installer/remote/ProxyConnectionFactory$ConnectionContext;)V
flags: (0x0000)
Code:
stack=8, locals=11, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector.isDirect:()Z
ifeq 3
1: aconst_null
astore 2
start local 2 2: goto 16
end local 2 3: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector.proxySpec:Ljava/lang/String;
ifnull 4
aload 0
getfield org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector.proxySpec:Ljava/lang/String;
invokevirtual java.lang.String.isEmpty:()Z
ifeq 5
4: StackMap locals:
StackMap stack:
return
5: StackMap locals:
StackMap stack:
new java.net.URI
dup
aload 0
getfield org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector.proxySpec:Ljava/lang/String;
invokespecial java.net.URI.<init>:(Ljava/lang/String;)V
astore 3
start local 3 6: aload 3
invokevirtual java.net.URI.getScheme:()Ljava/lang/String;
ifnull 7
aload 3
invokevirtual java.net.URI.getHost:()Ljava/lang/String;
ifnonnull 10
7: StackMap locals: org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector org.graalvm.component.installer.remote.ProxyConnectionFactory$ConnectionContext top java.net.URI
StackMap stack:
new java.net.URI
dup
new java.lang.StringBuilder
dup
ldc "http://"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector.proxySpec:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.net.URI.<init>:(Ljava/lang/String;)V
astore 3
8: goto 10
StackMap locals:
StackMap stack: java.net.URISyntaxException
9: pop
10: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.net.URI.getHost:()Ljava/lang/String;
aload 3
invokevirtual java.net.URI.getPort:()I
invokestatic java.net.InetSocketAddress.createUnresolved:(Ljava/lang/String;I)Ljava/net/InetSocketAddress;
astore 4
start local 4 11: new java.net.Proxy
dup
getstatic java.net.Proxy$Type.HTTP:Ljava/net/Proxy$Type;
aload 4
invokespecial java.net.Proxy.<init>:(Ljava/net/Proxy$Type;Ljava/net/SocketAddress;)V
astore 2
end local 4 end local 3 start local 2 12: goto 16
end local 2 StackMap locals: org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector org.graalvm.component.installer.remote.ProxyConnectionFactory$ConnectionContext
StackMap stack: java.net.URISyntaxException
13: astore 3
start local 3 14: aload 1
iconst_0
new java.io.IOException
dup
aload 3
invokevirtual java.net.URISyntaxException.getLocalizedMessage:()Ljava/lang/String;
aload 3
invokespecial java.io.IOException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
invokevirtual org.graalvm.component.installer.remote.ProxyConnectionFactory$ConnectionContext.setOutcome:(ZLjava/io/IOException;)V
15: return
end local 3 start local 2 16: StackMap locals: java.net.Proxy
StackMap stack:
aload 1
getfield org.graalvm.component.installer.remote.ProxyConnectionFactory$ConnectionContext.configCallback:Ljava/util/function/Consumer;
astore 3
start local 3 17: iconst_0
istore 4
start local 4 18: aconst_null
astore 5
start local 5 19: aload 2
ifnonnull 20
aload 0
getfield org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector.url:Ljava/net/URL;
invokevirtual java.net.URL.openConnection:()Ljava/net/URLConnection;
goto 21
StackMap locals: java.util.function.Consumer int java.net.URLConnection
StackMap stack:
20: aload 0
getfield org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector.url:Ljava/net/URL;
aload 2
invokevirtual java.net.URL.openConnection:(Ljava/net/Proxy;)Ljava/net/URLConnection;
StackMap locals:
StackMap stack: java.net.URLConnection
21: astore 5
22: aload 3
ifnull 24
23: aload 3
aload 5
invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
24: StackMap locals:
StackMap stack:
aload 5
invokevirtual java.net.URLConnection.connect:()V
25: aload 5
instanceof java.net.HttpURLConnection
ifeq 37
26: aload 5
checkcast java.net.HttpURLConnection
astore 6
start local 6 27: aload 6
invokevirtual java.net.HttpURLConnection.getResponseCode:()I
istore 7
start local 7 28: iload 7
sipush 400
if_icmplt 37
29: aload 5
invokevirtual java.net.URLConnection.getInputStream:()Ljava/io/InputStream;
astore 8
start local 8 30: aload 8
invokevirtual java.io.InputStream.close:()V
31: goto 35
StackMap locals: org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector org.graalvm.component.installer.remote.ProxyConnectionFactory$ConnectionContext java.net.Proxy java.util.function.Consumer int java.net.URLConnection java.net.HttpURLConnection int java.io.InputStream
StackMap stack: java.io.IOException
32: astore 9
start local 9 33: aload 0
invokevirtual org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector.isDirect:()Z
ifeq 35
34: aload 9
athrow
end local 9 35: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector.isDirect:()Z
ifne 37
36: new java.io.IOException
dup
aload 0
getfield org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector.this$0:Lorg/graalvm/component/installer/remote/ProxyConnectionFactory;
getfield org.graalvm.component.installer.remote.ProxyConnectionFactory.feedback:Lorg/graalvm/component/installer/Feedback;
ldc "EXC_ProxyFailed"
iconst_1
anewarray java.lang.Object
dup
iconst_0
iload 7
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokeinterface org.graalvm.component.installer.Feedback.l10n:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 8 end local 7 end local 6 37: StackMap locals:
StackMap stack:
aload 1
aload 0
aload 5
invokevirtual org.graalvm.component.installer.remote.ProxyConnectionFactory$ConnectionContext.setOutcome:(Lorg/graalvm/component/installer/remote/ProxyConnectionFactory$Connector;Ljava/net/URLConnection;)Z
istore 4
38: goto 49
StackMap locals:
StackMap stack: java.io.IOException
39: astore 6
start local 6 40: aload 1
aload 0
invokevirtual org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector.isDirect:()Z
aload 6
invokevirtual org.graalvm.component.installer.remote.ProxyConnectionFactory$ConnectionContext.setOutcome:(ZLjava/io/IOException;)V
end local 6 41: iload 4
ifne 52
42: aload 5
instanceof java.net.HttpURLConnection
ifeq 52
43: aload 5
checkcast java.net.HttpURLConnection
invokevirtual java.net.HttpURLConnection.disconnect:()V
goto 52
44: StackMap locals:
StackMap stack: java.lang.Throwable
astore 10
45: iload 4
ifne 48
46: aload 5
instanceof java.net.HttpURLConnection
ifeq 48
47: aload 5
checkcast java.net.HttpURLConnection
invokevirtual java.net.HttpURLConnection.disconnect:()V
48: StackMap locals: org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector org.graalvm.component.installer.remote.ProxyConnectionFactory$ConnectionContext java.net.Proxy java.util.function.Consumer int java.net.URLConnection top top top top java.lang.Throwable
StackMap stack:
aload 10
athrow
49: StackMap locals: org.graalvm.component.installer.remote.ProxyConnectionFactory$Connector org.graalvm.component.installer.remote.ProxyConnectionFactory$ConnectionContext java.net.Proxy java.util.function.Consumer int java.net.URLConnection
StackMap stack:
iload 4
ifne 52
50: aload 5
instanceof java.net.HttpURLConnection
ifeq 52
51: aload 5
checkcast java.net.HttpURLConnection
invokevirtual java.net.HttpURLConnection.disconnect:()V
52: StackMap locals:
StackMap stack:
return
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 53 0 this Lorg/graalvm/component/installer/remote/ProxyConnectionFactory$Connector;
0 53 1 ctx Lorg/graalvm/component/installer/remote/ProxyConnectionFactory$ConnectionContext;
2 3 2 proxy Ljava/net/Proxy;
12 13 2 proxy Ljava/net/Proxy;
16 53 2 proxy Ljava/net/Proxy;
6 12 3 uri Ljava/net/URI;
11 12 4 address Ljava/net/InetSocketAddress;
14 16 3 ex Ljava/net/URISyntaxException;
17 53 3 configCallback Ljava/util/function/Consumer<Ljava/net/URLConnection;>;
18 53 4 won Z
19 53 5 test Ljava/net/URLConnection;
27 37 6 htest Ljava/net/HttpURLConnection;
28 37 7 rcode I
30 37 8 stm Ljava/io/InputStream;
33 35 9 ex Ljava/io/IOException;
40 41 6 ex Ljava/io/IOException;
Exception table:
from to target type
7 8 9 Class java.net.URISyntaxException
5 12 13 Class java.net.URISyntaxException
30 31 32 Class java.io.IOException
19 38 39 Class java.io.IOException
19 41 44 any
MethodParameters:
Name Flags
ctx
}
SourceFile: "ProxyConnectionFactory.java"
NestHost: org.graalvm.component.installer.remote.ProxyConnectionFactory
InnerClasses:
public final Type = java.net.Proxy$Type of java.net.Proxy
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