public class sun.net.spi.DefaultProxySelector extends java.net.ProxySelector
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.net.spi.DefaultProxySelector
super_class: java.net.ProxySelector
{
static final java.lang.String[][] props;
descriptor: [[Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
private static final java.lang.String SOCKS_PROXY_VERSION;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "socksProxyVersion"
private static boolean hasSystemProxies;
descriptor: Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static final java.util.List<java.net.Proxy> NO_PROXY_LIST;
descriptor: Ljava/util/List;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/List<Ljava/net/Proxy;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=7, locals=1, args_size=0
0: iconst_4
anewarray java.lang.String[]
dup
iconst_0
1: iconst_4
anewarray java.lang.String
dup
iconst_0
ldc "http"
aastore
dup
iconst_1
ldc "http.proxy"
aastore
dup
iconst_2
ldc "proxy"
aastore
dup
iconst_3
ldc "socksProxy"
aastore
aastore
dup
iconst_1
2: iconst_4
anewarray java.lang.String
dup
iconst_0
ldc "https"
aastore
dup
iconst_1
ldc "https.proxy"
aastore
dup
iconst_2
ldc "proxy"
aastore
dup
iconst_3
ldc "socksProxy"
aastore
aastore
dup
iconst_2
3: iconst_5
anewarray java.lang.String
dup
iconst_0
ldc "ftp"
aastore
dup
iconst_1
ldc "ftp.proxy"
aastore
dup
iconst_2
ldc "ftpProxy"
aastore
dup
iconst_3
ldc "proxy"
aastore
dup
iconst_4
ldc "socksProxy"
aastore
aastore
dup
iconst_3
4: iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "socket"
aastore
dup
iconst_1
ldc "socksProxy"
aastore
aastore
5: putstatic sun.net.spi.DefaultProxySelector.props:[[Ljava/lang/String;
6: iconst_0
putstatic sun.net.spi.DefaultProxySelector.hasSystemProxies:Z
7: getstatic java.net.Proxy.NO_PROXY:Ljava/net/Proxy;
invokestatic java.util.List.of:(Ljava/lang/Object;)Ljava/util/List;
putstatic sun.net.spi.DefaultProxySelector.NO_PROXY_LIST:Ljava/util/List;
8: new sun.net.spi.DefaultProxySelector$1
dup
invokespecial sun.net.spi.DefaultProxySelector$1.<init>:()V
9: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.Boolean
astore 0
start local 0 10: aload 0
ifnull 13
aload 0
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 13
11: ldc "net"
invokestatic jdk.internal.loader.BootLoader.loadLibrary:(Ljava/lang/String;)V
12: invokestatic sun.net.spi.DefaultProxySelector.init:()Z
putstatic sun.net.spi.DefaultProxySelector.hasSystemProxies:Z
end local 0 13: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
10 13 0 b Ljava/lang/Boolean;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.net.ProxySelector.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/spi/DefaultProxySelector;
public static int socksProxyVersion();
descriptor: ()I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new sun.net.spi.DefaultProxySelector$2
dup
invokespecial sun.net.spi.DefaultProxySelector$2.<init>:()V
1: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
ireturn
LocalVariableTable:
Start End Slot Name Signature
public java.util.List<java.net.Proxy> select(java.net.URI);
descriptor: (Ljava/net/URI;)Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=9, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.IllegalArgumentException
dup
ldc "URI can't be null."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.net.URI.getScheme:()Ljava/lang/String;
astore 2
start local 2 3: aload 1
invokevirtual java.net.URI.getHost:()Ljava/lang/String;
astore 3
start local 3 4: aload 3
ifnonnull 14
5: aload 1
invokevirtual java.net.URI.getAuthority:()Ljava/lang/String;
astore 4
start local 4 6: aload 4
ifnull 14
7: aload 4
bipush 64
invokevirtual java.lang.String.indexOf:(I)I
istore 5
start local 5 8: iload 5
iflt 10
9: aload 4
iload 5
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 4
10: StackMap locals: sun.net.spi.DefaultProxySelector java.net.URI java.lang.String java.lang.String java.lang.String int
StackMap stack:
aload 4
bipush 58
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 5
11: iload 5
iflt 13
12: aload 4
iconst_0
iload 5
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 4
13: StackMap locals:
StackMap stack:
aload 4
astore 3
end local 5 end local 4 14: StackMap locals:
StackMap stack:
aload 2
ifnull 15
aload 3
ifnonnull 16
15: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "protocol = "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " host = "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
16: StackMap locals:
StackMap stack:
aconst_null
astore 4
start local 4 17: ldc "http"
aload 2
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 20
18: getstatic sun.net.spi.DefaultProxySelector$NonProxyInfo.httpNonProxyInfo:Lsun/net/spi/DefaultProxySelector$NonProxyInfo;
astore 4
19: goto 28
StackMap locals: sun.net.spi.DefaultProxySelector$NonProxyInfo
StackMap stack:
20: ldc "https"
aload 2
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 23
21: getstatic sun.net.spi.DefaultProxySelector$NonProxyInfo.httpNonProxyInfo:Lsun/net/spi/DefaultProxySelector$NonProxyInfo;
astore 4
22: goto 28
StackMap locals:
StackMap stack:
23: ldc "ftp"
aload 2
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 26
24: getstatic sun.net.spi.DefaultProxySelector$NonProxyInfo.ftpNonProxyInfo:Lsun/net/spi/DefaultProxySelector$NonProxyInfo;
astore 4
25: goto 28
StackMap locals:
StackMap stack:
26: ldc "socket"
aload 2
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 28
27: getstatic sun.net.spi.DefaultProxySelector$NonProxyInfo.socksNonProxyInfo:Lsun/net/spi/DefaultProxySelector$NonProxyInfo;
astore 4
28: StackMap locals:
StackMap stack:
aload 2
astore 5
start local 5 29: aload 4
astore 6
start local 6 30: aload 3
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
astore 7
start local 7 31: new sun.net.spi.DefaultProxySelector$3
dup
aload 0
aload 5
aload 7
aload 6
invokespecial sun.net.spi.DefaultProxySelector$3.<init>:(Lsun/net/spi/DefaultProxySelector;Ljava/lang/String;Ljava/lang/String;Lsun/net/spi/DefaultProxySelector$NonProxyInfo;)V
32: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.net.Proxy[]
astore 8
start local 8 33: aload 8
ifnull 37
34: aload 8
invokestatic java.util.stream.Stream.of:([Ljava/lang/Object;)Ljava/util/stream/Stream;
invokeinterface java.util.stream.Stream.distinct:()Ljava/util/stream/Stream;
35: invokestatic java.util.stream.Collectors.toList:()Ljava/util/stream/Collector;
invokedynamic apply()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;
java/util/Collections.unmodifiableList(Ljava/util/List;)Ljava/util/List; (6)
(Ljava/util/List;)Ljava/util/List;
invokestatic java.util.stream.Collectors.collectingAndThen:(Ljava/util/stream/Collector;Ljava/util/function/Function;)Ljava/util/stream/Collector;
36: invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.util.List
areturn
37: StackMap locals: sun.net.spi.DefaultProxySelector java.net.URI java.lang.String java.lang.String sun.net.spi.DefaultProxySelector$NonProxyInfo java.lang.String sun.net.spi.DefaultProxySelector$NonProxyInfo java.lang.String java.net.Proxy[]
StackMap stack:
getstatic sun.net.spi.DefaultProxySelector.NO_PROXY_LIST:Ljava/util/List;
areturn
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 38 0 this Lsun/net/spi/DefaultProxySelector;
0 38 1 uri Ljava/net/URI;
3 38 2 protocol Ljava/lang/String;
4 38 3 host Ljava/lang/String;
6 14 4 auth Ljava/lang/String;
8 14 5 i I
17 38 4 pinfo Lsun/net/spi/DefaultProxySelector$NonProxyInfo;
29 38 5 proto Ljava/lang/String;
30 38 6 nprop Lsun/net/spi/DefaultProxySelector$NonProxyInfo;
31 38 7 urlhost Ljava/lang/String;
33 38 8 proxyArray [Ljava/net/Proxy;
Signature: (Ljava/net/URI;)Ljava/util/List<Ljava/net/Proxy;>;
MethodParameters:
Name Flags
uri
public void connectFailed(java.net.URI, java.net.SocketAddress, java.io.IOException);
descriptor: (Ljava/net/URI;Ljava/net/SocketAddress;Ljava/io/IOException;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
ifnull 1
aload 2
ifnull 1
aload 3
ifnonnull 2
1: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "Arguments can't be null."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/net/spi/DefaultProxySelector;
0 3 1 uri Ljava/net/URI;
0 3 2 sa Ljava/net/SocketAddress;
0 3 3 ioe Ljava/io/IOException;
MethodParameters:
Name Flags
uri
sa
ioe
private int defaultPort(java.lang.String);
descriptor: (Ljava/lang/String;)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: ldc "http"
aload 1
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 2
1: bipush 80
ireturn
2: StackMap locals:
StackMap stack:
ldc "https"
aload 1
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 4
3: sipush 443
ireturn
4: StackMap locals:
StackMap stack:
ldc "ftp"
aload 1
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 6
5: bipush 80
ireturn
6: StackMap locals:
StackMap stack:
ldc "socket"
aload 1
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 8
7: sipush 1080
ireturn
8: StackMap locals:
StackMap stack:
iconst_m1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/net/spi/DefaultProxySelector;
0 9 1 protocol Ljava/lang/String;
MethodParameters:
Name Flags
protocol
private static native boolean init();
descriptor: ()Z
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
private synchronized native java.net.Proxy[] getSystemProxies(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)[Ljava/net/Proxy;
flags: (0x0122) ACC_PRIVATE, ACC_SYNCHRONIZED, ACC_NATIVE
MethodParameters:
Name Flags
protocol
host
static boolean shouldNotUseProxyFor(java.util.regex.Pattern, java.lang.String);
descriptor: (Ljava/util/regex/Pattern;Ljava/lang/String;)Z
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
ifnull 1
aload 1
invokevirtual java.lang.String.isEmpty:()Z
ifeq 2
1: StackMap locals:
StackMap stack:
iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
invokevirtual java.util.regex.Matcher.matches:()Z
istore 2
start local 2 3: iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 pattern Ljava/util/regex/Pattern;
0 4 1 urlhost Ljava/lang/String;
3 4 2 matches Z
MethodParameters:
Name Flags
pattern
urlhost
static java.util.regex.Pattern toPattern(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/regex/Pattern;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=8, args_size=1
start local 0 0: iconst_1
istore 1
start local 1 1: new java.util.StringJoiner
dup
ldc "|"
invokespecial java.util.StringJoiner.<init>:(Ljava/lang/CharSequence;)V
astore 2
start local 2 2: aload 0
ldc "\\|"
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 10
StackMap locals: java.lang.String int java.util.StringJoiner top int int java.lang.String[]
StackMap stack:
3: aload 6
iload 4
aaload
astore 3
start local 3 4: aload 3
invokevirtual java.lang.String.isEmpty:()Z
ifeq 6
5: goto 9
6: StackMap locals: java.lang.String int java.util.StringJoiner java.lang.String int int java.lang.String[]
StackMap stack:
iconst_0
istore 1
7: aload 3
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
invokestatic sun.net.spi.DefaultProxySelector.disjunctToRegex:(Ljava/lang/String;)Ljava/lang/String;
astore 7
start local 7 8: aload 2
aload 7
invokevirtual java.util.StringJoiner.add:(Ljava/lang/CharSequence;)Ljava/util/StringJoiner;
pop
end local 7 end local 3 9: StackMap locals: java.lang.String int java.util.StringJoiner top int int java.lang.String[]
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
10: iload 4
iload 5
if_icmplt 3
11: iload 1
ifeq 12
aconst_null
goto 13
StackMap locals: java.lang.String int java.util.StringJoiner
StackMap stack:
12: aload 2
invokevirtual java.util.StringJoiner.toString:()Ljava/lang/String;
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
StackMap locals:
StackMap stack: java.util.regex.Pattern
13: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 mask Ljava/lang/String;
1 14 1 disjunctionEmpty Z
2 14 2 joiner Ljava/util/StringJoiner;
4 9 3 disjunct Ljava/lang/String;
8 9 7 regex Ljava/lang/String;
MethodParameters:
Name Flags
mask
static java.lang.String disjunctToRegex(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: aload 0
ldc "*"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 3
1: ldc ".*"
astore 1
start local 1 2: goto 13
end local 1 StackMap locals:
StackMap stack:
3: aload 0
ldc "*"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 6
aload 0
ldc "*"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 6
4: new java.lang.StringBuilder
dup
ldc ".*"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
iconst_1
aload 0
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokestatic java.util.regex.Pattern.quote:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ".*"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 1
start local 1 5: goto 13
end local 1 StackMap locals:
StackMap stack:
6: aload 0
ldc "*"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 9
7: new java.lang.StringBuilder
dup
ldc ".*"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokestatic java.util.regex.Pattern.quote:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 1
start local 1 8: goto 13
end local 1 StackMap locals:
StackMap stack:
9: aload 0
ldc "*"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 12
10: new java.lang.StringBuilder
dup
aload 0
iconst_0
aload 0
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokestatic java.util.regex.Pattern.quote:(Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".*"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 1
start local 1 11: goto 13
end local 1 12: StackMap locals:
StackMap stack:
aload 0
invokestatic java.util.regex.Pattern.quote:(Ljava/lang/String;)Ljava/lang/String;
astore 1
start local 1 13: StackMap locals: java.lang.String
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 disjunct Ljava/lang/String;
2 3 1 regex Ljava/lang/String;
5 6 1 regex Ljava/lang/String;
8 9 1 regex Ljava/lang/String;
11 12 1 regex Ljava/lang/String;
13 14 1 regex Ljava/lang/String;
MethodParameters:
Name Flags
disjunct
}
SourceFile: "DefaultProxySelector.java"
NestMembers:
sun.net.spi.DefaultProxySelector$1 sun.net.spi.DefaultProxySelector$2 sun.net.spi.DefaultProxySelector$3 sun.net.spi.DefaultProxySelector$NonProxyInfo
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
sun.net.spi.DefaultProxySelector$1
sun.net.spi.DefaultProxySelector$2
sun.net.spi.DefaultProxySelector$3
NonProxyInfo = sun.net.spi.DefaultProxySelector$NonProxyInfo of sun.net.spi.DefaultProxySelector