public abstract class sun.net.www.URLConnection extends java.net.URLConnection
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: sun.net.www.URLConnection
super_class: java.net.URLConnection
{
private java.lang.String contentType;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private int contentLength;
descriptor: I
flags: (0x0002) ACC_PRIVATE
protected sun.net.www.MessageHeader ;
descriptor: Lsun/net/www/MessageHeader;
flags: (0x0004) ACC_PROTECTED
java.util.Map<java.lang.String, java.util.List<java.lang.String>> ;
descriptor: Ljava/util/Map;
flags: (0x0000)
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;>;
private static java.util.HashMap<java.lang.String, java.lang.Void> proxiedHosts;
descriptor: Ljava/util/HashMap;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Signature: Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Void;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putstatic sun.net.www.URLConnection.proxiedHosts:Ljava/util/HashMap;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.net.URL);
descriptor: (Ljava/net/URL;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial java.net.URLConnection.<init>:(Ljava/net/URL;)V
1: aload 0
iconst_m1
putfield sun.net.www.URLConnection.contentLength:I
2: aload 0
new sun.net.www.MessageHeader
dup
invokespecial sun.net.www.MessageHeader.<init>:()V
putfield sun.net.www.URLConnection.properties:Lsun/net/www/MessageHeader;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/net/www/URLConnection;
0 4 1 u Ljava/net/URL;
MethodParameters:
Name Flags
u
public sun.net.www.MessageHeader ();
descriptor: ()Lsun/net/www/MessageHeader;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.www.URLConnection.properties:Lsun/net/www/MessageHeader;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/www/URLConnection;
public void (sun.net.www.MessageHeader);
descriptor: (Lsun/net/www/MessageHeader;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield sun.net.www.URLConnection.properties:Lsun/net/www/MessageHeader;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/net/www/URLConnection;
0 2 1 properties Lsun/net/www/MessageHeader;
MethodParameters:
Name Flags
properties
public void setRequestProperty(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)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
getfield sun.net.www.URLConnection.connected:Z
ifeq 2
1: new java.lang.IllegalAccessError
dup
ldc "Already connected"
invokespecial java.lang.IllegalAccessError.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
ifnonnull 4
3: new java.lang.NullPointerException
dup
ldc "key cannot be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.URLConnection.properties:Lsun/net/www/MessageHeader;
aload 1
aload 2
invokevirtual sun.net.www.MessageHeader.set:(Ljava/lang/String;Ljava/lang/String;)V
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/net/www/URLConnection;
0 6 1 key Ljava/lang/String;
0 6 2 value Ljava/lang/String;
MethodParameters:
Name Flags
key
value
public void addRequestProperty(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)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
getfield sun.net.www.URLConnection.connected:Z
ifeq 2
1: new java.lang.IllegalStateException
dup
ldc "Already connected"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
ifnonnull 4
3: new java.lang.NullPointerException
dup
ldc "key is null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/net/www/URLConnection;
0 5 1 key Ljava/lang/String;
0 5 2 value Ljava/lang/String;
MethodParameters:
Name Flags
key
value
public java.lang.String getRequestProperty(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.net.www.URLConnection.connected:Z
ifeq 2
1: new java.lang.IllegalStateException
dup
ldc "Already connected"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/net/www/URLConnection;
0 3 1 key Ljava/lang/String;
MethodParameters:
Name Flags
key
public java.util.Map<java.lang.String, java.util.List<java.lang.String>> getRequestProperties();
descriptor: ()Ljava/util/Map;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.www.URLConnection.connected:Z
ifeq 2
1: new java.lang.IllegalStateException
dup
ldc "Already connected"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
invokestatic java.util.Collections.emptyMap:()Ljava/util/Map;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/net/www/URLConnection;
Signature: ()Ljava/util/Map<Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;>;
public java.lang.String (java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual sun.net.www.URLConnection.getInputStream:()Ljava/io/InputStream;
pop
1: goto 4
StackMap locals:
StackMap stack: java.lang.Exception
2: pop
3: aconst_null
areturn
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.URLConnection.properties:Lsun/net/www/MessageHeader;
ifnonnull 5
aconst_null
goto 6
StackMap locals:
StackMap stack:
5: aload 0
getfield sun.net.www.URLConnection.properties:Lsun/net/www/MessageHeader;
aload 1
invokevirtual sun.net.www.MessageHeader.findValue:(Ljava/lang/String;)Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
6: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/net/www/URLConnection;
0 7 1 name Ljava/lang/String;
Exception table:
from to target type
0 1 2 Class java.lang.Exception
MethodParameters:
Name Flags
name
public java.util.Map<java.lang.String, java.util.List<java.lang.String>> getHeaderFields();
descriptor: ()Ljava/util/Map;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.www.URLConnection.headerFields:Ljava/util/Map;
ifnonnull 9
1: aload 0
invokevirtual sun.net.www.URLConnection.getInputStream:()Ljava/io/InputStream;
pop
2: aload 0
getfield sun.net.www.URLConnection.properties:Lsun/net/www/MessageHeader;
ifnonnull 5
3: aload 0
aload 0
invokespecial java.net.URLConnection.getHeaderFields:()Ljava/util/Map;
putfield sun.net.www.URLConnection.headerFields:Ljava/util/Map;
4: goto 9
5: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield sun.net.www.URLConnection.properties:Lsun/net/www/MessageHeader;
invokevirtual sun.net.www.MessageHeader.getHeaders:()Ljava/util/Map;
putfield sun.net.www.URLConnection.headerFields:Ljava/util/Map;
6: goto 9
StackMap locals:
StackMap stack: java.io.IOException
7: pop
8: aload 0
invokespecial java.net.URLConnection.getHeaderFields:()Ljava/util/Map;
areturn
9: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.URLConnection.headerFields:Ljava/util/Map;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/net/www/URLConnection;
Exception table:
from to target type
1 6 7 Class java.io.IOException
Signature: ()Ljava/util/Map<Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;>;
public java.lang.String (int);
descriptor: (I)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual sun.net.www.URLConnection.getInputStream:()Ljava/io/InputStream;
pop
1: goto 4
StackMap locals:
StackMap stack: java.lang.Exception
2: pop
3: aconst_null
areturn
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.URLConnection.properties:Lsun/net/www/MessageHeader;
astore 2
start local 2 5: aload 2
ifnonnull 6
aconst_null
goto 7
StackMap locals: sun.net.www.MessageHeader
StackMap stack:
6: aload 2
iload 1
invokevirtual sun.net.www.MessageHeader.getKey:(I)Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
7: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/net/www/URLConnection;
0 8 1 n I
5 8 2 props Lsun/net/www/MessageHeader;
Exception table:
from to target type
0 1 2 Class java.lang.Exception
MethodParameters:
Name Flags
n
public java.lang.String (int);
descriptor: (I)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual sun.net.www.URLConnection.getInputStream:()Ljava/io/InputStream;
pop
1: goto 4
StackMap locals:
StackMap stack: java.lang.Exception
2: pop
3: aconst_null
areturn
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.URLConnection.properties:Lsun/net/www/MessageHeader;
astore 2
start local 2 5: aload 2
ifnonnull 6
aconst_null
goto 7
StackMap locals: sun.net.www.MessageHeader
StackMap stack:
6: aload 2
iload 1
invokevirtual sun.net.www.MessageHeader.getValue:(I)Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
7: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/net/www/URLConnection;
0 8 1 n I
5 8 2 props Lsun/net/www/MessageHeader;
Exception table:
from to target type
0 1 2 Class java.lang.Exception
MethodParameters:
Name Flags
n
public java.lang.String getContentType();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield sun.net.www.URLConnection.contentType:Ljava/lang/String;
ifnonnull 2
1: aload 0
aload 0
ldc "content-type"
invokevirtual sun.net.www.URLConnection.getHeaderField:(Ljava/lang/String;)Ljava/lang/String;
putfield sun.net.www.URLConnection.contentType:Ljava/lang/String;
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.URLConnection.contentType:Ljava/lang/String;
ifnonnull 20
3: aconst_null
astore 1
start local 1 4: aload 0
invokevirtual sun.net.www.URLConnection.getInputStream:()Ljava/io/InputStream;
invokestatic sun.net.www.URLConnection.guessContentTypeFromStream:(Ljava/io/InputStream;)Ljava/lang/String;
astore 1
5: goto 7
StackMap locals: sun.net.www.URLConnection java.lang.String
StackMap stack: java.io.IOException
6: pop
7: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.URLConnection.properties:Lsun/net/www/MessageHeader;
ldc "content-encoding"
invokevirtual sun.net.www.MessageHeader.findValue:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 8: aload 1
ifnonnull 14
9: aload 0
getfield sun.net.www.URLConnection.properties:Lsun/net/www/MessageHeader;
ldc "content-type"
invokevirtual sun.net.www.MessageHeader.findValue:(Ljava/lang/String;)Ljava/lang/String;
astore 1
10: aload 1
ifnonnull 14
11: aload 0
getfield sun.net.www.URLConnection.url:Ljava/net/URL;
invokevirtual java.net.URL.getFile:()Ljava/lang/String;
ldc "/"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 13
12: ldc "text/html"
astore 1
goto 14
13: StackMap locals: java.lang.String
StackMap stack:
aload 0
getfield sun.net.www.URLConnection.url:Ljava/net/URL;
invokevirtual java.net.URL.getFile:()Ljava/lang/String;
invokestatic sun.net.www.URLConnection.guessContentTypeFromName:(Ljava/lang/String;)Ljava/lang/String;
astore 1
14: StackMap locals:
StackMap stack:
aload 1
ifnull 18
aload 2
ifnull 19
15: aload 2
ldc "7bit"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 19
16: aload 2
ldc "8bit"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 19
17: aload 2
ldc "binary"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 19
18: StackMap locals:
StackMap stack:
ldc "content/unknown"
astore 1
19: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual sun.net.www.URLConnection.setContentType:(Ljava/lang/String;)V
end local 2 end local 1 20: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.URLConnection.contentType:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lsun/net/www/URLConnection;
4 20 1 ct Ljava/lang/String;
8 20 2 ce Ljava/lang/String;
Exception table:
from to target type
4 5 6 Class java.io.IOException
public void setContentType(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield sun.net.www.URLConnection.contentType:Ljava/lang/String;
1: aload 0
getfield sun.net.www.URLConnection.properties:Lsun/net/www/MessageHeader;
ldc "content-type"
aload 1
invokevirtual sun.net.www.MessageHeader.set:(Ljava/lang/String;Ljava/lang/String;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/net/www/URLConnection;
0 3 1 type Ljava/lang/String;
MethodParameters:
Name Flags
type
public int getContentLength();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual sun.net.www.URLConnection.getInputStream:()Ljava/io/InputStream;
pop
1: goto 4
StackMap locals:
StackMap stack: java.lang.Exception
2: pop
3: iconst_m1
ireturn
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.URLConnection.contentLength:I
istore 1
start local 1 5: iload 1
ifge 10
6: aload 0
getfield sun.net.www.URLConnection.properties:Lsun/net/www/MessageHeader;
ldc "content-length"
invokevirtual sun.net.www.MessageHeader.findValue:(Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 1
7: aload 0
iload 1
invokevirtual sun.net.www.URLConnection.setContentLength:(I)V
8: goto 10
StackMap locals: sun.net.www.URLConnection int
StackMap stack: java.lang.Exception
9: pop
10: StackMap locals:
StackMap stack:
iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/net/www/URLConnection;
5 11 1 l I
Exception table:
from to target type
0 1 2 Class java.lang.Exception
6 8 9 Class java.lang.Exception
protected void setContentLength(int);
descriptor: (I)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield sun.net.www.URLConnection.contentLength:I
1: aload 0
getfield sun.net.www.URLConnection.properties:Lsun/net/www/MessageHeader;
ldc "content-length"
iload 1
invokestatic java.lang.String.valueOf:(I)Ljava/lang/String;
invokevirtual sun.net.www.MessageHeader.set:(Ljava/lang/String;Ljava/lang/String;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/net/www/URLConnection;
0 3 1 length I
MethodParameters:
Name Flags
length
public boolean canCache();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.www.URLConnection.url:Ljava/net/URL;
invokevirtual java.net.URL.getFile:()Ljava/lang/String;
bipush 63
invokevirtual java.lang.String.indexOf:(I)I
ifge 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 Lsun/net/www/URLConnection;
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
putfield sun.net.www.URLConnection.url:Ljava/net/URL;
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/net/www/URLConnection;
public static synchronized void setProxiedHost(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=1, args_size=1
start local 0 0: getstatic sun.net.www.URLConnection.proxiedHosts:Ljava/util/HashMap;
aload 0
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
aconst_null
invokevirtual java.util.HashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 host Ljava/lang/String;
MethodParameters:
Name Flags
host
public static synchronized boolean isProxiedHost(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic sun.net.www.URLConnection.proxiedHosts:Ljava/util/HashMap;
aload 0
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
invokevirtual java.util.HashMap.containsKey:(Ljava/lang/Object;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 host Ljava/lang/String;
MethodParameters:
Name Flags
host
}
SourceFile: "URLConnection.java"