public final class io.netty.example.echo.EchoClient
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: io.netty.example.echo.EchoClient
super_class: java.lang.Object
{
static final boolean SSL;
descriptor: Z
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final java.lang.String HOST;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final int PORT;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final int SIZE;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc "ssl"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
ifnull 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic io.netty.example.echo.EchoClient.SSL:Z
3: ldc "host"
ldc "127.0.0.1"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
putstatic io.netty.example.echo.EchoClient.HOST:Ljava/lang/String;
4: ldc "port"
ldc "8007"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
putstatic io.netty.example.echo.EchoClient.PORT:I
5: ldc "size"
ldc "256"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
putstatic io.netty.example.echo.EchoClient.SIZE:I
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/example/echo/EchoClient;
public static void main(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=6, args_size=1
start local 0 0: getstatic io.netty.example.echo.EchoClient.SSL:Z
ifeq 5
1: invokestatic io.netty.handler.ssl.SslContextBuilder.forClient:()Lio/netty/handler/ssl/SslContextBuilder;
2: getstatic io.netty.handler.ssl.util.InsecureTrustManagerFactory.INSTANCE:Ljavax/net/ssl/TrustManagerFactory;
invokevirtual io.netty.handler.ssl.SslContextBuilder.trustManager:(Ljavax/net/ssl/TrustManagerFactory;)Lio/netty/handler/ssl/SslContextBuilder;
invokevirtual io.netty.handler.ssl.SslContextBuilder.build:()Lio/netty/handler/ssl/SslContext;
3: astore 1
start local 1 4: goto 6
end local 1 5: StackMap locals:
StackMap stack:
aconst_null
astore 1
start local 1 6: StackMap locals: io.netty.handler.ssl.SslContext
StackMap stack:
new io.netty.channel.nio.NioEventLoopGroup
dup
invokespecial io.netty.channel.nio.NioEventLoopGroup.<init>:()V
astore 2
start local 2 7: new io.netty.bootstrap.Bootstrap
dup
invokespecial io.netty.bootstrap.Bootstrap.<init>:()V
astore 3
start local 3 8: aload 3
aload 2
invokevirtual io.netty.bootstrap.Bootstrap.group:(Lio/netty/channel/EventLoopGroup;)Lio/netty/bootstrap/AbstractBootstrap;
checkcast io.netty.bootstrap.Bootstrap
9: 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
10: getstatic io.netty.channel.ChannelOption.TCP_NODELAY:Lio/netty/channel/ChannelOption;
iconst_1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokevirtual io.netty.bootstrap.Bootstrap.option:(Lio/netty/channel/ChannelOption;Ljava/lang/Object;)Lio/netty/bootstrap/AbstractBootstrap;
checkcast io.netty.bootstrap.Bootstrap
11: new io.netty.example.echo.EchoClient$1
dup
aload 1
invokespecial io.netty.example.echo.EchoClient$1.<init>:(Lio/netty/handler/ssl/SslContext;)V
invokevirtual io.netty.bootstrap.Bootstrap.handler:(Lio/netty/channel/ChannelHandler;)Lio/netty/bootstrap/AbstractBootstrap;
pop
12: aload 3
getstatic io.netty.example.echo.EchoClient.HOST:Ljava/lang/String;
getstatic io.netty.example.echo.EchoClient.PORT:I
invokevirtual io.netty.bootstrap.Bootstrap.connect:(Ljava/lang/String;I)Lio/netty/channel/ChannelFuture;
invokeinterface io.netty.channel.ChannelFuture.sync:()Lio/netty/channel/ChannelFuture;
astore 4
start local 4 13: aload 4
invokeinterface io.netty.channel.ChannelFuture.channel:()Lio/netty/channel/Channel;
invokeinterface io.netty.channel.Channel.closeFuture:()Lio/netty/channel/ChannelFuture;
invokeinterface io.netty.channel.ChannelFuture.sync:()Lio/netty/channel/ChannelFuture;
pop
end local 4 end local 3 14: goto 18
StackMap locals: java.lang.String[] io.netty.handler.ssl.SslContext io.netty.channel.EventLoopGroup
StackMap stack: java.lang.Throwable
15: astore 5
16: aload 2
invokeinterface io.netty.channel.EventLoopGroup.shutdownGracefully:()Lio/netty/util/concurrent/Future;
pop
17: aload 5
athrow
18: StackMap locals:
StackMap stack:
aload 2
invokeinterface io.netty.channel.EventLoopGroup.shutdownGracefully:()Lio/netty/util/concurrent/Future;
pop
19: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 args [Ljava/lang/String;
4 5 1 sslCtx Lio/netty/handler/ssl/SslContext;
6 20 1 sslCtx Lio/netty/handler/ssl/SslContext;
7 20 2 group Lio/netty/channel/EventLoopGroup;
8 14 3 b Lio/netty/bootstrap/Bootstrap;
13 14 4 f Lio/netty/channel/ChannelFuture;
Exception table:
from to target type
7 15 15 any
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
args
}
SourceFile: "EchoClient.java"
NestMembers:
io.netty.example.echo.EchoClient$1
InnerClasses:
io.netty.example.echo.EchoClient$1