public class org.springframework.http.client.SimpleClientHttpRequestFactory implements org.springframework.http.client.ClientHttpRequestFactory, org.springframework.http.client.AsyncClientHttpRequestFactory
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.http.client.SimpleClientHttpRequestFactory
super_class: java.lang.Object
{
private static final int DEFAULT_CHUNK_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 4096
private java.net.Proxy proxy;
descriptor: Ljava/net/Proxy;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private boolean bufferRequestBody;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private int chunkSize;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int connectTimeout;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int readTimeout;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private boolean outputStreaming;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private org.springframework.core.task.AsyncListenableTaskExecutor taskExecutor;
descriptor: Lorg/springframework/core/task/AsyncListenableTaskExecutor;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_1
putfield org.springframework.http.client.SimpleClientHttpRequestFactory.bufferRequestBody:Z
2: aload 0
sipush 4096
putfield org.springframework.http.client.SimpleClientHttpRequestFactory.chunkSize:I
3: aload 0
iconst_m1
putfield org.springframework.http.client.SimpleClientHttpRequestFactory.connectTimeout:I
4: aload 0
iconst_m1
putfield org.springframework.http.client.SimpleClientHttpRequestFactory.readTimeout:I
5: aload 0
iconst_1
putfield org.springframework.http.client.SimpleClientHttpRequestFactory.outputStreaming:Z
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/springframework/http/client/SimpleClientHttpRequestFactory;
public void setProxy(java.net.Proxy);
descriptor: (Ljava/net/Proxy;)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 org.springframework.http.client.SimpleClientHttpRequestFactory.proxy:Ljava/net/Proxy;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/http/client/SimpleClientHttpRequestFactory;
0 2 1 proxy Ljava/net/Proxy;
MethodParameters:
Name Flags
proxy
public void setBufferRequestBody(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 org.springframework.http.client.SimpleClientHttpRequestFactory.bufferRequestBody:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/http/client/SimpleClientHttpRequestFactory;
0 2 1 bufferRequestBody Z
MethodParameters:
Name Flags
bufferRequestBody
public void setChunkSize(int);
descriptor: (I)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 org.springframework.http.client.SimpleClientHttpRequestFactory.chunkSize:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/http/client/SimpleClientHttpRequestFactory;
0 2 1 chunkSize I
MethodParameters:
Name Flags
chunkSize
public void setConnectTimeout(int);
descriptor: (I)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 org.springframework.http.client.SimpleClientHttpRequestFactory.connectTimeout:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/http/client/SimpleClientHttpRequestFactory;
0 2 1 connectTimeout I
MethodParameters:
Name Flags
connectTimeout
public void setReadTimeout(int);
descriptor: (I)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 org.springframework.http.client.SimpleClientHttpRequestFactory.readTimeout:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/http/client/SimpleClientHttpRequestFactory;
0 2 1 readTimeout I
MethodParameters:
Name Flags
readTimeout
public void setOutputStreaming(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 org.springframework.http.client.SimpleClientHttpRequestFactory.outputStreaming:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/http/client/SimpleClientHttpRequestFactory;
0 2 1 outputStreaming Z
MethodParameters:
Name Flags
outputStreaming
public void setTaskExecutor(org.springframework.core.task.AsyncListenableTaskExecutor);
descriptor: (Lorg/springframework/core/task/AsyncListenableTaskExecutor;)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 org.springframework.http.client.SimpleClientHttpRequestFactory.taskExecutor:Lorg/springframework/core/task/AsyncListenableTaskExecutor;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/http/client/SimpleClientHttpRequestFactory;
0 2 1 taskExecutor Lorg/springframework/core/task/AsyncListenableTaskExecutor;
MethodParameters:
Name Flags
taskExecutor
public org.springframework.http.client.ClientHttpRequest createRequest(java.net.URI, org.springframework.http.HttpMethod);
descriptor: (Ljava/net/URI;Lorg/springframework/http/HttpMethod;)Lorg/springframework/http/client/ClientHttpRequest;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual java.net.URI.toURL:()Ljava/net/URL;
aload 0
getfield org.springframework.http.client.SimpleClientHttpRequestFactory.proxy:Ljava/net/Proxy;
invokevirtual org.springframework.http.client.SimpleClientHttpRequestFactory.openConnection:(Ljava/net/URL;Ljava/net/Proxy;)Ljava/net/HttpURLConnection;
astore 3
start local 3 1: aload 0
aload 3
aload 2
invokevirtual org.springframework.http.HttpMethod.name:()Ljava/lang/String;
invokevirtual org.springframework.http.client.SimpleClientHttpRequestFactory.prepareConnection:(Ljava/net/HttpURLConnection;Ljava/lang/String;)V
2: aload 0
getfield org.springframework.http.client.SimpleClientHttpRequestFactory.bufferRequestBody:Z
ifeq 4
3: new org.springframework.http.client.SimpleBufferingClientHttpRequest
dup
aload 3
aload 0
getfield org.springframework.http.client.SimpleClientHttpRequestFactory.outputStreaming:Z
invokespecial org.springframework.http.client.SimpleBufferingClientHttpRequest.<init>:(Ljava/net/HttpURLConnection;Z)V
areturn
4: StackMap locals: java.net.HttpURLConnection
StackMap stack:
new org.springframework.http.client.SimpleStreamingClientHttpRequest
dup
aload 3
aload 0
getfield org.springframework.http.client.SimpleClientHttpRequestFactory.chunkSize:I
aload 0
getfield org.springframework.http.client.SimpleClientHttpRequestFactory.outputStreaming:Z
invokespecial org.springframework.http.client.SimpleStreamingClientHttpRequest.<init>:(Ljava/net/HttpURLConnection;IZ)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/http/client/SimpleClientHttpRequestFactory;
0 5 1 uri Ljava/net/URI;
0 5 2 httpMethod Lorg/springframework/http/HttpMethod;
1 5 3 connection Ljava/net/HttpURLConnection;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
uri
httpMethod
public org.springframework.http.client.AsyncClientHttpRequest createAsyncRequest(java.net.URI, org.springframework.http.HttpMethod);
descriptor: (Ljava/net/URI;Lorg/springframework/http/HttpMethod;)Lorg/springframework/http/client/AsyncClientHttpRequest;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.springframework.http.client.SimpleClientHttpRequestFactory.taskExecutor:Lorg/springframework/core/task/AsyncListenableTaskExecutor;
ifnull 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ldc "Asynchronous execution requires TaskExecutor to be set"
invokestatic org.springframework.util.Assert.state:(ZLjava/lang/String;)V
3: aload 0
aload 1
invokevirtual java.net.URI.toURL:()Ljava/net/URL;
aload 0
getfield org.springframework.http.client.SimpleClientHttpRequestFactory.proxy:Ljava/net/Proxy;
invokevirtual org.springframework.http.client.SimpleClientHttpRequestFactory.openConnection:(Ljava/net/URL;Ljava/net/Proxy;)Ljava/net/HttpURLConnection;
astore 3
start local 3 4: aload 0
aload 3
aload 2
invokevirtual org.springframework.http.HttpMethod.name:()Ljava/lang/String;
invokevirtual org.springframework.http.client.SimpleClientHttpRequestFactory.prepareConnection:(Ljava/net/HttpURLConnection;Ljava/lang/String;)V
5: aload 0
getfield org.springframework.http.client.SimpleClientHttpRequestFactory.bufferRequestBody:Z
ifeq 9
6: new org.springframework.http.client.SimpleBufferingAsyncClientHttpRequest
dup
7: aload 3
aload 0
getfield org.springframework.http.client.SimpleClientHttpRequestFactory.outputStreaming:Z
aload 0
getfield org.springframework.http.client.SimpleClientHttpRequestFactory.taskExecutor:Lorg/springframework/core/task/AsyncListenableTaskExecutor;
8: invokespecial org.springframework.http.client.SimpleBufferingAsyncClientHttpRequest.<init>:(Ljava/net/HttpURLConnection;ZLorg/springframework/core/task/AsyncListenableTaskExecutor;)V
areturn
9: StackMap locals: java.net.HttpURLConnection
StackMap stack:
new org.springframework.http.client.SimpleStreamingAsyncClientHttpRequest
dup
10: aload 3
aload 0
getfield org.springframework.http.client.SimpleClientHttpRequestFactory.chunkSize:I
aload 0
getfield org.springframework.http.client.SimpleClientHttpRequestFactory.outputStreaming:Z
aload 0
getfield org.springframework.http.client.SimpleClientHttpRequestFactory.taskExecutor:Lorg/springframework/core/task/AsyncListenableTaskExecutor;
11: invokespecial org.springframework.http.client.SimpleStreamingAsyncClientHttpRequest.<init>:(Ljava/net/HttpURLConnection;IZLorg/springframework/core/task/AsyncListenableTaskExecutor;)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/springframework/http/client/SimpleClientHttpRequestFactory;
0 12 1 uri Ljava/net/URI;
0 12 2 httpMethod Lorg/springframework/http/HttpMethod;
4 12 3 connection Ljava/net/HttpURLConnection;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
uri
httpMethod
protected java.net.HttpURLConnection openConnection(java.net.URL, java.net.Proxy);
descriptor: (Ljava/net/URL;Ljava/net/Proxy;)Ljava/net/HttpURLConnection;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnull 1
aload 1
aload 2
invokevirtual java.net.URL.openConnection:(Ljava/net/Proxy;)Ljava/net/URLConnection;
goto 2
StackMap locals:
StackMap stack:
1: aload 1
invokevirtual java.net.URL.openConnection:()Ljava/net/URLConnection;
StackMap locals:
StackMap stack: java.net.URLConnection
2: astore 3
start local 3 3: ldc Ljava/net/HttpURLConnection;
aload 3
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ifne 5
4: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "HttpURLConnection required for ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "] but got: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: java.net.URLConnection
StackMap stack:
aload 3
checkcast java.net.HttpURLConnection
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/springframework/http/client/SimpleClientHttpRequestFactory;
0 6 1 url Ljava/net/URL;
0 6 2 proxy Ljava/net/Proxy;
3 6 3 urlConnection Ljava/net/URLConnection;
Exceptions:
throws java.io.IOException
RuntimeVisibleParameterAnnotations:
0:
1:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
url
proxy
protected void prepareConnection(java.net.HttpURLConnection, java.lang.String);
descriptor: (Ljava/net/HttpURLConnection;Ljava/lang/String;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.springframework.http.client.SimpleClientHttpRequestFactory.connectTimeout:I
iflt 2
1: aload 1
aload 0
getfield org.springframework.http.client.SimpleClientHttpRequestFactory.connectTimeout:I
invokevirtual java.net.HttpURLConnection.setConnectTimeout:(I)V
2: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.http.client.SimpleClientHttpRequestFactory.readTimeout:I
iflt 4
3: aload 1
aload 0
getfield org.springframework.http.client.SimpleClientHttpRequestFactory.readTimeout:I
invokevirtual java.net.HttpURLConnection.setReadTimeout:(I)V
4: StackMap locals:
StackMap stack:
aload 1
iconst_1
invokevirtual java.net.HttpURLConnection.setDoInput:(Z)V
5: ldc "GET"
aload 2
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 8
6: aload 1
iconst_1
invokevirtual java.net.HttpURLConnection.setInstanceFollowRedirects:(Z)V
7: goto 9
8: StackMap locals:
StackMap stack:
aload 1
iconst_0
invokevirtual java.net.HttpURLConnection.setInstanceFollowRedirects:(Z)V
9: StackMap locals:
StackMap stack:
ldc "POST"
aload 2
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 11
ldc "PUT"
aload 2
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 11
10: ldc "PATCH"
aload 2
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 11
ldc "DELETE"
aload 2
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 13
11: StackMap locals:
StackMap stack:
aload 1
iconst_1
invokevirtual java.net.HttpURLConnection.setDoOutput:(Z)V
12: goto 14
13: StackMap locals:
StackMap stack:
aload 1
iconst_0
invokevirtual java.net.HttpURLConnection.setDoOutput:(Z)V
14: StackMap locals:
StackMap stack:
aload 1
aload 2
invokevirtual java.net.HttpURLConnection.setRequestMethod:(Ljava/lang/String;)V
15: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/springframework/http/client/SimpleClientHttpRequestFactory;
0 16 1 connection Ljava/net/HttpURLConnection;
0 16 2 httpMethod Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
connection
httpMethod
}
SourceFile: "SimpleClientHttpRequestFactory.java"