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
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=7, locals=1, args_size=0
0: iconst_5
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_3
anewarray java.lang.String
dup
iconst_0
ldc "gopher"
aastore
dup
iconst_1
ldc "gopherProxy"
aastore
dup
iconst_2
ldc "socksProxy"
aastore
aastore
dup
iconst_4
5: iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "socket"
aastore
dup
iconst_1
ldc "socksProxy"
aastore
aastore
6: putstatic sun.net.spi.DefaultProxySelector.props:[[Ljava/lang/String;
7: iconst_0
putstatic sun.net.spi.DefaultProxySelector.hasSystemProxies:Z
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 14
aload 0
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 14
11: new sun.security.action.LoadLibraryAction
dup
ldc "net"
invokespecial sun.security.action.LoadLibraryAction.<init>:(Ljava/lang/String;)V
12: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
pop
13: invokestatic sun.net.spi.DefaultProxySelector.init:()Z
putstatic sun.net.spi.DefaultProxySelector.hasSystemProxies:Z
end local 0 14: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
10 14 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 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=10, 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:
new java.util.ArrayList
dup
iconst_1
invokespecial java.util.ArrayList.<init>:(I)V
astore 4
start local 4 17: aconst_null
astore 5
start local 5 18: ldc "http"
aload 2
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 21
19: getstatic sun.net.spi.DefaultProxySelector$NonProxyInfo.httpNonProxyInfo:Lsun/net/spi/DefaultProxySelector$NonProxyInfo;
astore 5
20: goto 26
StackMap locals: java.util.List sun.net.spi.DefaultProxySelector$NonProxyInfo
StackMap stack:
21: ldc "https"
aload 2
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 24
22: getstatic sun.net.spi.DefaultProxySelector$NonProxyInfo.httpNonProxyInfo:Lsun/net/spi/DefaultProxySelector$NonProxyInfo;
astore 5
23: goto 26
StackMap locals:
StackMap stack:
24: ldc "ftp"
aload 2
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 26
25: getstatic sun.net.spi.DefaultProxySelector$NonProxyInfo.ftpNonProxyInfo:Lsun/net/spi/DefaultProxySelector$NonProxyInfo;
astore 5
26: StackMap locals:
StackMap stack:
aload 2
astore 6
start local 6 27: aload 5
astore 7
start local 7 28: aload 3
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
astore 8
start local 8 29: new sun.net.spi.DefaultProxySelector$2
dup
aload 0
aload 6
aload 8
aload 7
invokespecial sun.net.spi.DefaultProxySelector$2.<init>:(Lsun/net/spi/DefaultProxySelector;Ljava/lang/String;Ljava/lang/String;Lsun/net/spi/DefaultProxySelector$NonProxyInfo;)V
30: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.net.Proxy
astore 9
start local 9 31: aload 4
aload 9
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
32: aload 4
areturn
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 33 0 this Lsun/net/spi/DefaultProxySelector;
0 33 1 uri Ljava/net/URI;
3 33 2 protocol Ljava/lang/String;
4 33 3 host Ljava/lang/String;
6 14 4 auth Ljava/lang/String;
8 14 5 i I
17 33 4 proxyl Ljava/util/List<Ljava/net/Proxy;>;
18 33 5 pinfo Lsun/net/spi/DefaultProxySelector$NonProxyInfo;
27 33 6 proto Ljava/lang/String;
28 33 7 nprop Lsun/net/spi/DefaultProxySelector$NonProxyInfo;
29 33 8 urlhost Ljava/lang/String;
31 33 9 p 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:
ldc "gopher"
aload 1
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 10
9: bipush 80
ireturn
10: StackMap locals:
StackMap stack:
iconst_m1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/net/spi/DefaultProxySelector;
0 11 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 getSystemProxy(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
}
SourceFile: "DefaultProxySelector.java"
NestMembers:
sun.net.spi.DefaultProxySelector$1 sun.net.spi.DefaultProxySelector$2 sun.net.spi.DefaultProxySelector$NonProxyInfo
InnerClasses:
sun.net.spi.DefaultProxySelector$1
sun.net.spi.DefaultProxySelector$2
NonProxyInfo = sun.net.spi.DefaultProxySelector$NonProxyInfo of sun.net.spi.DefaultProxySelector