public abstract class java.net.HttpURLConnection extends java.net.URLConnection
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: java.net.HttpURLConnection
super_class: java.net.URLConnection
{
protected java.lang.String method;
descriptor: Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
protected int chunkLength;
descriptor: I
flags: (0x0004) ACC_PROTECTED
protected int fixedContentLength;
descriptor: I
flags: (0x0004) ACC_PROTECTED
protected long fixedContentLengthLong;
descriptor: J
flags: (0x0004) ACC_PROTECTED
private static final int DEFAULT_CHUNK_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 4096
protected int responseCode;
descriptor: I
flags: (0x0004) ACC_PROTECTED
protected java.lang.String responseMessage;
descriptor: Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
private static boolean followRedirects;
descriptor: Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
protected boolean instanceFollowRedirects;
descriptor: Z
flags: (0x0004) ACC_PROTECTED
private static final java.lang.String[] methods;
descriptor: [Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
public static final int HTTP_OK;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 200
public static final int HTTP_CREATED;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 201
public static final int HTTP_ACCEPTED;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 202
public static final int HTTP_NOT_AUTHORITATIVE;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 203
public static final int HTTP_NO_CONTENT;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 204
public static final int HTTP_RESET;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 205
public static final int HTTP_PARTIAL;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 206
public static final int HTTP_MULT_CHOICE;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 300
public static final int HTTP_MOVED_PERM;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 301
public static final int HTTP_MOVED_TEMP;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 302
public static final int HTTP_SEE_OTHER;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 303
public static final int HTTP_NOT_MODIFIED;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 304
public static final int HTTP_USE_PROXY;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 305
public static final int HTTP_BAD_REQUEST;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 400
public static final int HTTP_UNAUTHORIZED;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 401
public static final int HTTP_PAYMENT_REQUIRED;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 402
public static final int HTTP_FORBIDDEN;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 403
public static final int HTTP_NOT_FOUND;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 404
public static final int HTTP_BAD_METHOD;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 405
public static final int HTTP_NOT_ACCEPTABLE;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 406
public static final int HTTP_PROXY_AUTH;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 407
public static final int HTTP_CLIENT_TIMEOUT;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 408
public static final int HTTP_CONFLICT;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 409
public static final int HTTP_GONE;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 410
public static final int HTTP_LENGTH_REQUIRED;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 411
public static final int HTTP_PRECON_FAILED;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 412
public static final int HTTP_ENTITY_TOO_LARGE;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 413
public static final int HTTP_REQ_TOO_LONG;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 414
public static final int HTTP_UNSUPPORTED_TYPE;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 415
public static final int HTTP_SERVER_ERROR;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 500
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public static final int HTTP_INTERNAL_ERROR;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 500
public static final int HTTP_NOT_IMPLEMENTED;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 501
public static final int HTTP_BAD_GATEWAY;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 502
public static final int HTTP_UNAVAILABLE;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 503
public static final int HTTP_GATEWAY_TIMEOUT;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 504
public static final int HTTP_VERSION;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 505
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: iconst_1
putstatic java.net.HttpURLConnection.followRedirects:Z
1: bipush 7
anewarray java.lang.String
dup
iconst_0
2: ldc "GET"
aastore
dup
iconst_1
ldc "POST"
aastore
dup
iconst_2
ldc "HEAD"
aastore
dup
iconst_3
ldc "OPTIONS"
aastore
dup
iconst_4
ldc "PUT"
aastore
dup
iconst_5
ldc "DELETE"
aastore
dup
bipush 6
ldc "TRACE"
aastore
3: putstatic java.net.HttpURLConnection.methods:[Ljava/lang/String;
4: return
LocalVariableTable:
Start End Slot Name Signature
public void setAuthenticator(java.net.Authenticator);
descriptor: (Ljava/net/Authenticator;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.UnsupportedOperationException
dup
new java.lang.StringBuilder
dup
ldc "Supplying an authenticator is not supported by "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
1: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
2: invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/net/HttpURLConnection;
0 3 1 auth Ljava/net/Authenticator;
MethodParameters:
Name Flags
auth
public java.lang.String (int);
descriptor: (I)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/net/HttpURLConnection;
0 1 1 n I
MethodParameters:
Name Flags
n
public void setFixedLengthStreamingMode(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield java.net.HttpURLConnection.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 0
getfield java.net.HttpURLConnection.chunkLength:I
iconst_m1
if_icmpeq 4
3: new java.lang.IllegalStateException
dup
ldc "Chunked encoding streaming mode set"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
iload 1
ifge 6
5: new java.lang.IllegalArgumentException
dup
ldc "invalid content length"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield java.net.HttpURLConnection.fixedContentLength:I
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljava/net/HttpURLConnection;
0 8 1 contentLength I
MethodParameters:
Name Flags
contentLength
public void setFixedLengthStreamingMode(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield java.net.HttpURLConnection.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 0
getfield java.net.HttpURLConnection.chunkLength:I
iconst_m1
if_icmpeq 6
3: new java.lang.IllegalStateException
dup
4: ldc "Chunked encoding streaming mode set"
5: invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
lload 1
lconst_0
lcmp
ifge 8
7: new java.lang.IllegalArgumentException
dup
ldc "invalid content length"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
aload 0
lload 1
putfield java.net.HttpURLConnection.fixedContentLengthLong:J
9: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljava/net/HttpURLConnection;
0 10 1 contentLength J
MethodParameters:
Name Flags
contentLength
public void setChunkedStreamingMode(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield java.net.HttpURLConnection.connected:Z
ifeq 2
1: new java.lang.IllegalStateException
dup
ldc "Can't set streaming mode: already connected"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield java.net.HttpURLConnection.fixedContentLength:I
iconst_m1
if_icmpne 3
aload 0
getfield java.net.HttpURLConnection.fixedContentLengthLong:J
ldc -1
lcmp
ifeq 4
3: StackMap locals:
StackMap stack:
new java.lang.IllegalStateException
dup
ldc "Fixed length streaming mode set"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
iload 1
ifgt 5
sipush 4096
goto 6
StackMap locals:
StackMap stack: java.net.HttpURLConnection
5: iload 1
StackMap locals: java.net.HttpURLConnection int
StackMap stack: java.net.HttpURLConnection int
6: putfield java.net.HttpURLConnection.chunkLength:I
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljava/net/HttpURLConnection;
0 8 1 chunklen I
MethodParameters:
Name Flags
chunklen
public java.lang.String (int);
descriptor: (I)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/net/HttpURLConnection;
0 1 1 n I
MethodParameters:
Name Flags
n
protected void <init>(java.net.URL);
descriptor: (Ljava/net/URL;)V
flags: (0x0004) ACC_PROTECTED
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
ldc "GET"
putfield java.net.HttpURLConnection.method:Ljava/lang/String;
2: aload 0
iconst_m1
putfield java.net.HttpURLConnection.chunkLength:I
3: aload 0
iconst_m1
putfield java.net.HttpURLConnection.fixedContentLength:I
4: aload 0
ldc -1
putfield java.net.HttpURLConnection.fixedContentLengthLong:J
5: aload 0
iconst_m1
putfield java.net.HttpURLConnection.responseCode:I
6: aload 0
aconst_null
putfield java.net.HttpURLConnection.responseMessage:Ljava/lang/String;
7: aload 0
getstatic java.net.HttpURLConnection.followRedirects:Z
putfield java.net.HttpURLConnection.instanceFollowRedirects:Z
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljava/net/HttpURLConnection;
0 9 1 u Ljava/net/URL;
MethodParameters:
Name Flags
u
public static void setFollowRedirects(boolean);
descriptor: (Z)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
invokevirtual java.lang.SecurityManager.checkSetFactory:()V
3: StackMap locals: java.lang.SecurityManager
StackMap stack:
iload 0
putstatic java.net.HttpURLConnection.followRedirects:Z
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 set Z
1 5 1 sec Ljava/lang/SecurityManager;
MethodParameters:
Name Flags
set
public static boolean getFollowRedirects();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic java.net.HttpURLConnection.followRedirects:Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
public void setInstanceFollowRedirects(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield java.net.HttpURLConnection.instanceFollowRedirects:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/net/HttpURLConnection;
0 2 1 followRedirects Z
MethodParameters:
Name Flags
followRedirects
public boolean getInstanceFollowRedirects();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.net.HttpURLConnection.instanceFollowRedirects:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/net/HttpURLConnection;
public void setRequestMethod(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield java.net.HttpURLConnection.connected:Z
ifeq 2
1: new java.net.ProtocolException
dup
ldc "Can't reset method: already connected"
invokespecial java.net.ProtocolException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iconst_0
istore 2
start local 2 3: goto 12
4: StackMap locals: int
StackMap stack:
getstatic java.net.HttpURLConnection.methods:[Ljava/lang/String;
iload 2
aaload
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 11
5: aload 1
ldc "TRACE"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 9
6: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 3
start local 3 7: aload 3
ifnull 9
8: aload 3
new java.net.NetPermission
dup
ldc "allowHttpTrace"
invokespecial java.net.NetPermission.<init>:(Ljava/lang/String;)V
invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
end local 3 9: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield java.net.HttpURLConnection.method:Ljava/lang/String;
10: return
11: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
12: iload 2
getstatic java.net.HttpURLConnection.methods:[Ljava/lang/String;
arraylength
if_icmplt 4
end local 2 13: new java.net.ProtocolException
dup
new java.lang.StringBuilder
dup
ldc "Invalid HTTP method: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.net.ProtocolException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Ljava/net/HttpURLConnection;
0 14 1 method Ljava/lang/String;
3 13 2 i I
7 9 3 s Ljava/lang/SecurityManager;
Exceptions:
throws java.net.ProtocolException
MethodParameters:
Name Flags
method
public java.lang.String getRequestMethod();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.net.HttpURLConnection.method:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/net/HttpURLConnection;
public int getResponseCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=1
start local 0 0: aload 0
getfield java.net.HttpURLConnection.responseCode:I
iconst_m1
if_icmpeq 2
1: aload 0
getfield java.net.HttpURLConnection.responseCode:I
ireturn
2: StackMap locals:
StackMap stack:
aconst_null
astore 1
start local 1 3: aload 0
invokevirtual java.net.HttpURLConnection.getInputStream:()Ljava/io/InputStream;
pop
4: goto 7
StackMap locals: java.net.HttpURLConnection java.lang.Exception
StackMap stack: java.lang.Exception
5: astore 2
start local 2 6: aload 2
astore 1
end local 2 7: StackMap locals:
StackMap stack:
aload 0
iconst_0
invokevirtual java.net.HttpURLConnection.getHeaderField:(I)Ljava/lang/String;
astore 2
start local 2 8: aload 2
ifnonnull 14
9: aload 1
ifnull 13
10: aload 1
instanceof java.lang.RuntimeException
ifeq 12
11: aload 1
checkcast java.lang.RuntimeException
athrow
12: StackMap locals: java.lang.String
StackMap stack:
aload 1
checkcast java.io.IOException
athrow
13: StackMap locals:
StackMap stack:
iconst_m1
ireturn
14: StackMap locals:
StackMap stack:
aload 2
ldc "HTTP/1."
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 28
15: aload 2
bipush 32
invokevirtual java.lang.String.indexOf:(I)I
istore 3
start local 3 16: iload 3
ifle 28
17: aload 2
bipush 32
iload 3
iconst_1
iadd
invokevirtual java.lang.String.indexOf:(II)I
istore 4
start local 4 18: iload 4
ifle 20
iload 4
aload 2
invokevirtual java.lang.String.length:()I
if_icmpge 20
19: aload 0
aload 2
iload 4
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
putfield java.net.HttpURLConnection.responseMessage:Ljava/lang/String;
20: StackMap locals: int int
StackMap stack:
iload 4
ifge 22
21: aload 2
invokevirtual java.lang.String.length:()I
istore 4
22: StackMap locals:
StackMap stack:
aload 0
23: aload 2
iload 3
iconst_1
iadd
iload 4
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
24: invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
putfield java.net.HttpURLConnection.responseCode:I
25: aload 0
getfield java.net.HttpURLConnection.responseCode:I
26: ireturn
27: StackMap locals:
StackMap stack: java.lang.NumberFormatException
pop
end local 4 end local 3 28: StackMap locals:
StackMap stack:
iconst_m1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Ljava/net/HttpURLConnection;
3 29 1 exc Ljava/lang/Exception;
6 7 2 e Ljava/lang/Exception;
8 29 2 statusLine Ljava/lang/String;
16 28 3 codePos I
18 28 4 phrasePos I
Exception table:
from to target type
3 4 5 Class java.lang.Exception
22 26 27 Class java.lang.NumberFormatException
Exceptions:
throws java.io.IOException
public java.lang.String getResponseMessage();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.net.HttpURLConnection.getResponseCode:()I
pop
1: aload 0
getfield java.net.HttpURLConnection.responseMessage:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/net/HttpURLConnection;
Exceptions:
throws java.io.IOException
public long (java.lang.String, long);
descriptor: (Ljava/lang/String;J)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual java.net.HttpURLConnection.getHeaderField:(Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 1: aload 4
ldc "GMT"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
iconst_m1
if_icmpne 3
2: new java.lang.StringBuilder
dup
aload 4
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " GMT"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 4
3: StackMap locals: java.lang.String
StackMap stack:
aload 4
invokestatic java.util.Date.parse:(Ljava/lang/String;)J
4: lreturn
5: StackMap locals:
StackMap stack: java.lang.Exception
pop
6: lload 2
lreturn
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/net/HttpURLConnection;
0 7 1 name Ljava/lang/String;
0 7 2 Default J
1 7 4 dateString Ljava/lang/String;
Exception table:
from to target type
1 4 5 Class java.lang.Exception
MethodParameters:
Name Flags
name
Default
public abstract void disconnect();
descriptor: ()V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract boolean usingProxy();
descriptor: ()Z
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public java.security.Permission getPermission();
descriptor: ()Ljava/security/Permission;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: aload 0
getfield java.net.HttpURLConnection.url:Ljava/net/URL;
invokevirtual java.net.URL.getPort:()I
istore 1
start local 1 1: iload 1
ifge 2
bipush 80
goto 3
StackMap locals: int
StackMap stack:
2: iload 1
StackMap locals:
StackMap stack: int
3: istore 1
4: new java.lang.StringBuilder
dup
aload 0
getfield java.net.HttpURLConnection.url:Ljava/net/URL;
invokevirtual java.net.URL.getHost:()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;
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
start local 2 5: new java.net.SocketPermission
dup
aload 2
ldc "connect"
invokespecial java.net.SocketPermission.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 3
start local 3 6: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/net/HttpURLConnection;
1 7 1 port I
5 7 2 host Ljava/lang/String;
6 7 3 permission Ljava/security/Permission;
Exceptions:
throws java.io.IOException
public java.io.InputStream getErrorStream();
descriptor: ()Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/net/HttpURLConnection;
}
SourceFile: "HttpURLConnection.java"