final class org.springframework.http.client.SimpleClientHttpResponse extends org.springframework.http.client.AbstractClientHttpResponse
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.springframework.http.client.SimpleClientHttpResponse
super_class: org.springframework.http.client.AbstractClientHttpResponse
{
private final java.net.HttpURLConnection connection;
descriptor: Ljava/net/HttpURLConnection;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private org.springframework.http.HttpHeaders ;
descriptor: Lorg/springframework/http/HttpHeaders;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private java.io.InputStream responseStream;
descriptor: Ljava/io/InputStream;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
void <init>(java.net.HttpURLConnection);
descriptor: (Ljava/net/HttpURLConnection;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial org.springframework.http.client.AbstractClientHttpResponse.<init>:()V
1: aload 0
aload 1
putfield org.springframework.http.client.SimpleClientHttpResponse.connection:Ljava/net/HttpURLConnection;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/http/client/SimpleClientHttpResponse;
0 3 1 connection Ljava/net/HttpURLConnection;
MethodParameters:
Name Flags
connection
public int getRawStatusCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.http.client.SimpleClientHttpResponse.connection:Ljava/net/HttpURLConnection;
invokevirtual java.net.HttpURLConnection.getResponseCode:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/http/client/SimpleClientHttpResponse;
Exceptions:
throws java.io.IOException
public java.lang.String getStatusText();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.http.client.SimpleClientHttpResponse.connection:Ljava/net/HttpURLConnection;
invokevirtual java.net.HttpURLConnection.getResponseMessage:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/http/client/SimpleClientHttpResponse;
Exceptions:
throws java.io.IOException
public org.springframework.http.HttpHeaders ();
descriptor: ()Lorg/springframework/http/HttpHeaders;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
getfield org.springframework.http.client.SimpleClientHttpResponse.headers:Lorg/springframework/http/HttpHeaders;
ifnonnull 12
1: aload 0
new org.springframework.http.HttpHeaders
dup
invokespecial org.springframework.http.HttpHeaders.<init>:()V
putfield org.springframework.http.client.SimpleClientHttpResponse.headers:Lorg/springframework/http/HttpHeaders;
2: aload 0
getfield org.springframework.http.client.SimpleClientHttpResponse.connection:Ljava/net/HttpURLConnection;
iconst_0
invokevirtual java.net.HttpURLConnection.getHeaderFieldKey:(I)Ljava/lang/String;
astore 1
start local 1 3: aload 1
invokestatic org.springframework.util.StringUtils.hasLength:(Ljava/lang/String;)Z
ifeq 5
4: aload 0
getfield org.springframework.http.client.SimpleClientHttpResponse.headers:Lorg/springframework/http/HttpHeaders;
aload 1
aload 0
getfield org.springframework.http.client.SimpleClientHttpResponse.connection:Ljava/net/HttpURLConnection;
iconst_0
invokevirtual java.net.HttpURLConnection.getHeaderField:(I)Ljava/lang/String;
invokevirtual org.springframework.http.HttpHeaders.add:(Ljava/lang/String;Ljava/lang/String;)V
5: StackMap locals: java.lang.String
StackMap stack:
iconst_1
istore 2
start local 2 6: StackMap locals: int
StackMap stack:
aload 0
getfield org.springframework.http.client.SimpleClientHttpResponse.connection:Ljava/net/HttpURLConnection;
iload 2
invokevirtual java.net.HttpURLConnection.getHeaderFieldKey:(I)Ljava/lang/String;
astore 1
7: aload 1
invokestatic org.springframework.util.StringUtils.hasLength:(Ljava/lang/String;)Z
ifne 9
8: goto 12
9: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.http.client.SimpleClientHttpResponse.headers:Lorg/springframework/http/HttpHeaders;
aload 1
aload 0
getfield org.springframework.http.client.SimpleClientHttpResponse.connection:Ljava/net/HttpURLConnection;
iload 2
invokevirtual java.net.HttpURLConnection.getHeaderField:(I)Ljava/lang/String;
invokevirtual org.springframework.http.HttpHeaders.add:(Ljava/lang/String;Ljava/lang/String;)V
10: iinc 2 1
11: goto 6
end local 2 end local 1 12: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.http.client.SimpleClientHttpResponse.headers:Lorg/springframework/http/HttpHeaders;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/springframework/http/client/SimpleClientHttpResponse;
3 12 1 name Ljava/lang/String;
6 12 2 i I
public java.io.InputStream getBody();
descriptor: ()Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.springframework.http.client.SimpleClientHttpResponse.connection:Ljava/net/HttpURLConnection;
invokevirtual java.net.HttpURLConnection.getErrorStream:()Ljava/io/InputStream;
astore 1
start local 1 1: aload 0
aload 1
ifnull 2
aload 1
goto 3
StackMap locals: org.springframework.http.client.SimpleClientHttpResponse java.io.InputStream
StackMap stack: org.springframework.http.client.SimpleClientHttpResponse
2: aload 0
getfield org.springframework.http.client.SimpleClientHttpResponse.connection:Ljava/net/HttpURLConnection;
invokevirtual java.net.HttpURLConnection.getInputStream:()Ljava/io/InputStream;
StackMap locals: org.springframework.http.client.SimpleClientHttpResponse java.io.InputStream
StackMap stack: org.springframework.http.client.SimpleClientHttpResponse java.io.InputStream
3: putfield org.springframework.http.client.SimpleClientHttpResponse.responseStream:Ljava/io/InputStream;
4: aload 0
getfield org.springframework.http.client.SimpleClientHttpResponse.responseStream:Ljava/io/InputStream;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/http/client/SimpleClientHttpResponse;
1 5 1 errorStream Ljava/io/InputStream;
Exceptions:
throws java.io.IOException
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.http.client.SimpleClientHttpResponse.responseStream:Ljava/io/InputStream;
ifnonnull 2
1: aload 0
invokevirtual org.springframework.http.client.SimpleClientHttpResponse.getBody:()Ljava/io/InputStream;
pop
2: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.http.client.SimpleClientHttpResponse.responseStream:Ljava/io/InputStream;
invokestatic org.springframework.util.StreamUtils.drain:(Ljava/io/InputStream;)I
pop
3: aload 0
getfield org.springframework.http.client.SimpleClientHttpResponse.responseStream:Ljava/io/InputStream;
invokevirtual java.io.InputStream.close:()V
4: goto 6
5: StackMap locals:
StackMap stack: java.lang.Exception
pop
6: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/springframework/http/client/SimpleClientHttpResponse;
Exception table:
from to target type
0 4 5 Class java.lang.Exception
}
SourceFile: "SimpleClientHttpResponse.java"