class org.springframework.http.client.OkHttp3ClientHttpResponse extends org.springframework.http.client.AbstractClientHttpResponse
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.springframework.http.client.OkHttp3ClientHttpResponse
super_class: org.springframework.http.client.AbstractClientHttpResponse
{
private final okhttp3.Response response;
descriptor: Lokhttp3/Response;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile org.springframework.http.HttpHeaders ;
descriptor: Lorg/springframework/http/HttpHeaders;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
public void <init>(okhttp3.Response);
descriptor: (Lokhttp3/Response;)V
flags: (0x0001) ACC_PUBLIC
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 1
ldc "Response must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
2: aload 0
aload 1
putfield org.springframework.http.client.OkHttp3ClientHttpResponse.response:Lokhttp3/Response;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/http/client/OkHttp3ClientHttpResponse;
0 4 1 response Lokhttp3/Response;
MethodParameters:
Name Flags
response
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.OkHttp3ClientHttpResponse.response:Lokhttp3/Response;
invokevirtual okhttp3.Response.code:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/http/client/OkHttp3ClientHttpResponse;
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.OkHttp3ClientHttpResponse.response:Lokhttp3/Response;
invokevirtual okhttp3.Response.message:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/http/client/OkHttp3ClientHttpResponse;
public java.io.InputStream getBody();
descriptor: ()Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
getfield org.springframework.http.client.OkHttp3ClientHttpResponse.response:Lokhttp3/Response;
invokevirtual okhttp3.Response.body:()Lokhttp3/ResponseBody;
astore 1
start local 1 1: aload 1
ifnull 2
aload 1
invokevirtual okhttp3.ResponseBody.byteStream:()Ljava/io/InputStream;
goto 3
StackMap locals: okhttp3.ResponseBody
StackMap stack:
2: invokestatic org.springframework.util.StreamUtils.emptyInput:()Ljava/io/InputStream;
StackMap locals:
StackMap stack: java.io.InputStream
3: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/http/client/OkHttp3ClientHttpResponse;
1 4 1 body Lokhttp3/ResponseBody;
Exceptions:
throws java.io.IOException
public org.springframework.http.HttpHeaders ();
descriptor: ()Lorg/springframework/http/HttpHeaders;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=1
start local 0 0: aload 0
getfield org.springframework.http.client.OkHttp3ClientHttpResponse.headers:Lorg/springframework/http/HttpHeaders;
astore 1
start local 1 1: aload 1
ifnonnull 11
2: new org.springframework.http.HttpHeaders
dup
invokespecial org.springframework.http.HttpHeaders.<init>:()V
astore 1
3: aload 0
getfield org.springframework.http.client.OkHttp3ClientHttpResponse.response:Lokhttp3/Response;
invokevirtual okhttp3.Response.headers:()Lokhttp3/Headers;
invokevirtual okhttp3.Headers.names:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
goto 9
StackMap locals: org.springframework.http.client.OkHttp3ClientHttpResponse org.springframework.http.HttpHeaders top java.util.Iterator
StackMap stack:
4: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 5: aload 0
getfield org.springframework.http.client.OkHttp3ClientHttpResponse.response:Lokhttp3/Response;
aload 2
invokevirtual okhttp3.Response.headers:(Ljava/lang/String;)Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 8
StackMap locals: org.springframework.http.client.OkHttp3ClientHttpResponse org.springframework.http.HttpHeaders java.lang.String java.util.Iterator top java.util.Iterator
StackMap stack:
6: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 7: aload 1
aload 2
aload 4
invokevirtual org.springframework.http.HttpHeaders.add:(Ljava/lang/String;Ljava/lang/String;)V
end local 4 8: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
end local 2 9: StackMap locals: org.springframework.http.client.OkHttp3ClientHttpResponse org.springframework.http.HttpHeaders top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
10: aload 0
aload 1
putfield org.springframework.http.client.OkHttp3ClientHttpResponse.headers:Lorg/springframework/http/HttpHeaders;
11: StackMap locals: org.springframework.http.client.OkHttp3ClientHttpResponse org.springframework.http.HttpHeaders
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/springframework/http/client/OkHttp3ClientHttpResponse;
1 12 1 headers Lorg/springframework/http/HttpHeaders;
5 9 2 headerName Ljava/lang/String;
7 8 4 headerValue Ljava/lang/String;
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
getfield org.springframework.http.client.OkHttp3ClientHttpResponse.response:Lokhttp3/Response;
invokevirtual okhttp3.Response.body:()Lokhttp3/ResponseBody;
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
invokevirtual okhttp3.ResponseBody.close:()V
3: StackMap locals: okhttp3.ResponseBody
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/http/client/OkHttp3ClientHttpResponse;
1 4 1 body Lokhttp3/ResponseBody;
}
SourceFile: "OkHttp3ClientHttpResponse.java"