public class org.springframework.http.client.Netty4ClientHttpRequestFactory implements org.springframework.http.client.ClientHttpRequestFactory, org.springframework.http.client.AsyncClientHttpRequestFactory, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.http.client.Netty4ClientHttpRequestFactory
super_class: java.lang.Object
{
public static final int DEFAULT_MAX_RESPONSE_SIZE;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 10485760
private final io.netty.channel.EventLoopGroup eventLoopGroup;
descriptor: Lio/netty/channel/EventLoopGroup;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean defaultEventLoopGroup;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private int maxResponseSize;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private io.netty.handler.ssl.SslContext sslContext;
descriptor: Lio/netty/handler/ssl/SslContext;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private int connectTimeout;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int readTimeout;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private volatile io.netty.bootstrap.Bootstrap bootstrap;
descriptor: Lio/netty/bootstrap/Bootstrap;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
ldc 10485760
putfield org.springframework.http.client.Netty4ClientHttpRequestFactory.maxResponseSize:I
2: aload 0
iconst_m1
putfield org.springframework.http.client.Netty4ClientHttpRequestFactory.connectTimeout:I
3: aload 0
iconst_m1
putfield org.springframework.http.client.Netty4ClientHttpRequestFactory.readTimeout:I
4: invokestatic java.lang.Runtime.getRuntime:()Ljava/lang/Runtime;
invokevirtual java.lang.Runtime.availableProcessors:()I
iconst_2
imul
istore 1
start local 1 5: aload 0
new io.netty.channel.nio.NioEventLoopGroup
dup
iload 1
invokespecial io.netty.channel.nio.NioEventLoopGroup.<init>:(I)V
putfield org.springframework.http.client.Netty4ClientHttpRequestFactory.eventLoopGroup:Lio/netty/channel/EventLoopGroup;
6: aload 0
iconst_1
putfield org.springframework.http.client.Netty4ClientHttpRequestFactory.defaultEventLoopGroup:Z
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/springframework/http/client/Netty4ClientHttpRequestFactory;
5 8 1 ioWorkerCount I
public void <init>(io.netty.channel.EventLoopGroup);
descriptor: (Lio/netty/channel/EventLoopGroup;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
ldc 10485760
putfield org.springframework.http.client.Netty4ClientHttpRequestFactory.maxResponseSize:I
2: aload 0
iconst_m1
putfield org.springframework.http.client.Netty4ClientHttpRequestFactory.connectTimeout:I
3: aload 0
iconst_m1
putfield org.springframework.http.client.Netty4ClientHttpRequestFactory.readTimeout:I
4: aload 1
ldc "EventLoopGroup must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
5: aload 0
aload 1
putfield org.springframework.http.client.Netty4ClientHttpRequestFactory.eventLoopGroup:Lio/netty/channel/EventLoopGroup;
6: aload 0
iconst_0
putfield org.springframework.http.client.Netty4ClientHttpRequestFactory.defaultEventLoopGroup:Z
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/springframework/http/client/Netty4ClientHttpRequestFactory;
0 8 1 eventLoopGroup Lio/netty/channel/EventLoopGroup;
MethodParameters:
Name Flags
eventLoopGroup
public void setMaxResponseSize(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.Netty4ClientHttpRequestFactory.maxResponseSize:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/http/client/Netty4ClientHttpRequestFactory;
0 2 1 maxResponseSize I
MethodParameters:
Name Flags
maxResponseSize
public void setSslContext(io.netty.handler.ssl.SslContext);
descriptor: (Lio/netty/handler/ssl/SslContext;)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.Netty4ClientHttpRequestFactory.sslContext:Lio/netty/handler/ssl/SslContext;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/http/client/Netty4ClientHttpRequestFactory;
0 2 1 sslContext Lio/netty/handler/ssl/SslContext;
MethodParameters:
Name Flags
sslContext
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.Netty4ClientHttpRequestFactory.connectTimeout:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/http/client/Netty4ClientHttpRequestFactory;
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.Netty4ClientHttpRequestFactory.readTimeout:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/http/client/Netty4ClientHttpRequestFactory;
0 2 1 readTimeout I
MethodParameters:
Name Flags
readTimeout
public void afterPropertiesSet();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.http.client.Netty4ClientHttpRequestFactory.sslContext:Lio/netty/handler/ssl/SslContext;
ifnonnull 2
1: aload 0
aload 0
invokevirtual org.springframework.http.client.Netty4ClientHttpRequestFactory.getDefaultClientSslContext:()Lio/netty/handler/ssl/SslContext;
putfield org.springframework.http.client.Netty4ClientHttpRequestFactory.sslContext:Lio/netty/handler/ssl/SslContext;
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/http/client/Netty4ClientHttpRequestFactory;
private io.netty.handler.ssl.SslContext getDefaultClientSslContext();
descriptor: ()Lio/netty/handler/ssl/SslContext;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=1
start local 0 0: invokestatic io.netty.handler.ssl.SslContextBuilder.forClient:()Lio/netty/handler/ssl/SslContextBuilder;
invokevirtual io.netty.handler.ssl.SslContextBuilder.build:()Lio/netty/handler/ssl/SslContext;
1: areturn
2: StackMap locals:
StackMap stack: javax.net.ssl.SSLException
astore 1
start local 1 3: new java.lang.IllegalStateException
dup
ldc "Could not create default client SslContext"
aload 1
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/http/client/Netty4ClientHttpRequestFactory;
3 4 1 ex Ljavax/net/ssl/SSLException;
Exception table:
from to target type
0 1 2 Class javax.net.ssl.SSLException
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=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokevirtual org.springframework.http.client.Netty4ClientHttpRequestFactory.createRequestInternal:(Ljava/net/URI;Lorg/springframework/http/HttpMethod;)Lorg/springframework/http/client/Netty4ClientHttpRequest;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/http/client/Netty4ClientHttpRequestFactory;
0 1 1 uri Ljava/net/URI;
0 1 2 httpMethod Lorg/springframework/http/HttpMethod;
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=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokevirtual org.springframework.http.client.Netty4ClientHttpRequestFactory.createRequestInternal:(Ljava/net/URI;Lorg/springframework/http/HttpMethod;)Lorg/springframework/http/client/Netty4ClientHttpRequest;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/http/client/Netty4ClientHttpRequestFactory;
0 1 1 uri Ljava/net/URI;
0 1 2 httpMethod Lorg/springframework/http/HttpMethod;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
uri
httpMethod
private org.springframework.http.client.Netty4ClientHttpRequest createRequestInternal(java.net.URI, org.springframework.http.HttpMethod);
descriptor: (Ljava/net/URI;Lorg/springframework/http/HttpMethod;)Lorg/springframework/http/client/Netty4ClientHttpRequest;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new org.springframework.http.client.Netty4ClientHttpRequest
dup
aload 0
aload 1
invokevirtual org.springframework.http.client.Netty4ClientHttpRequestFactory.getBootstrap:(Ljava/net/URI;)Lio/netty/bootstrap/Bootstrap;
aload 1
aload 2
invokespecial org.springframework.http.client.Netty4ClientHttpRequest.<init>:(Lio/netty/bootstrap/Bootstrap;Ljava/net/URI;Lorg/springframework/http/HttpMethod;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/http/client/Netty4ClientHttpRequestFactory;
0 1 1 uri Ljava/net/URI;
0 1 2 httpMethod Lorg/springframework/http/HttpMethod;
MethodParameters:
Name Flags
uri
httpMethod
private io.netty.bootstrap.Bootstrap getBootstrap(java.net.URI);
descriptor: (Ljava/net/URI;)Lio/netty/bootstrap/Bootstrap;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.net.URI.getPort:()I
sipush 443
if_icmpeq 1
ldc "https"
aload 1
invokevirtual java.net.URI.getScheme:()Ljava/lang/String;
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: istore 2
start local 2 3: iload 2
ifeq 5
4: aload 0
aload 1
iconst_1
invokevirtual org.springframework.http.client.Netty4ClientHttpRequestFactory.buildBootstrap:(Ljava/net/URI;Z)Lio/netty/bootstrap/Bootstrap;
areturn
5: StackMap locals: int
StackMap stack:
aload 0
getfield org.springframework.http.client.Netty4ClientHttpRequestFactory.bootstrap:Lio/netty/bootstrap/Bootstrap;
astore 3
start local 3 6: aload 3
ifnonnull 9
7: aload 0
aload 1
iconst_0
invokevirtual org.springframework.http.client.Netty4ClientHttpRequestFactory.buildBootstrap:(Ljava/net/URI;Z)Lio/netty/bootstrap/Bootstrap;
astore 3
8: aload 0
aload 3
putfield org.springframework.http.client.Netty4ClientHttpRequestFactory.bootstrap:Lio/netty/bootstrap/Bootstrap;
9: StackMap locals: io.netty.bootstrap.Bootstrap
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/springframework/http/client/Netty4ClientHttpRequestFactory;
0 10 1 uri Ljava/net/URI;
3 10 2 isSecure Z
6 10 3 bootstrap Lio/netty/bootstrap/Bootstrap;
MethodParameters:
Name Flags
uri
private io.netty.bootstrap.Bootstrap buildBootstrap(java.net.URI, boolean);
descriptor: (Ljava/net/URI;Z)Lio/netty/bootstrap/Bootstrap;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: new io.netty.bootstrap.Bootstrap
dup
invokespecial io.netty.bootstrap.Bootstrap.<init>:()V
astore 3
start local 3 1: aload 3
aload 0
getfield org.springframework.http.client.Netty4ClientHttpRequestFactory.eventLoopGroup:Lio/netty/channel/EventLoopGroup;
invokevirtual io.netty.bootstrap.Bootstrap.group:(Lio/netty/channel/EventLoopGroup;)Lio/netty/bootstrap/AbstractBootstrap;
checkcast io.netty.bootstrap.Bootstrap
ldc Lio/netty/channel/socket/nio/NioSocketChannel;
invokevirtual io.netty.bootstrap.Bootstrap.channel:(Ljava/lang/Class;)Lio/netty/bootstrap/AbstractBootstrap;
checkcast io.netty.bootstrap.Bootstrap
2: new org.springframework.http.client.Netty4ClientHttpRequestFactory$1
dup
aload 0
iload 2
aload 1
invokespecial org.springframework.http.client.Netty4ClientHttpRequestFactory$1.<init>:(Lorg/springframework/http/client/Netty4ClientHttpRequestFactory;ZLjava/net/URI;)V
invokevirtual io.netty.bootstrap.Bootstrap.handler:(Lio/netty/channel/ChannelHandler;)Lio/netty/bootstrap/AbstractBootstrap;
pop
3: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/http/client/Netty4ClientHttpRequestFactory;
0 4 1 uri Ljava/net/URI;
0 4 2 isSecure Z
1 4 3 bootstrap Lio/netty/bootstrap/Bootstrap;
MethodParameters:
Name Flags
uri
isSecure
protected void configureChannel(io.netty.channel.socket.SocketChannelConfig);
descriptor: (Lio/netty/channel/socket/SocketChannelConfig;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.springframework.http.client.Netty4ClientHttpRequestFactory.connectTimeout:I
iflt 2
1: aload 1
aload 0
getfield org.springframework.http.client.Netty4ClientHttpRequestFactory.connectTimeout:I
invokeinterface io.netty.channel.socket.SocketChannelConfig.setConnectTimeoutMillis:(I)Lio/netty/channel/socket/SocketChannelConfig;
pop
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/http/client/Netty4ClientHttpRequestFactory;
0 3 1 config Lio/netty/channel/socket/SocketChannelConfig;
MethodParameters:
Name Flags
config
public void destroy();
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.Netty4ClientHttpRequestFactory.defaultEventLoopGroup:Z
ifeq 2
1: aload 0
getfield org.springframework.http.client.Netty4ClientHttpRequestFactory.eventLoopGroup:Lio/netty/channel/EventLoopGroup;
invokeinterface io.netty.channel.EventLoopGroup.shutdownGracefully:()Lio/netty/util/concurrent/Future;
invokeinterface io.netty.util.concurrent.Future.sync:()Lio/netty/util/concurrent/Future;
pop
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/http/client/Netty4ClientHttpRequestFactory;
Exceptions:
throws java.lang.InterruptedException
}
SourceFile: "Netty4ClientHttpRequestFactory.java"
NestMembers:
org.springframework.http.client.Netty4ClientHttpRequestFactory$1
InnerClasses:
org.springframework.http.client.Netty4ClientHttpRequestFactory$1
RuntimeVisibleAnnotations:
java.lang.Deprecated()