public final class io.netty.example.worldclock.WorldClockClient
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: io.netty.example.worldclock.WorldClockClient
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 java.util.List<java.lang.String> CITIES;
descriptor: Ljava/util/List;
flags: (0x0018) ACC_STATIC, ACC_FINAL
Signature: Ljava/util/List<Ljava/lang/String;>;
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.worldclock.WorldClockClient.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.worldclock.WorldClockClient.HOST:Ljava/lang/String;
4: ldc "port"
ldc "8463"
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.worldclock.WorldClockClient.PORT:I
5: ldc "cities"
ldc "Asia/Seoul,Europe/Berlin,America/Los_Angeles"
6: invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
7: ldc ","
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
8: invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
putstatic io.netty.example.worldclock.WorldClockClient.CITIES:Ljava/util/List;
9: 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/worldclock/WorldClockClient;
public static void main(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=9, args_size=1
start local 0 0: getstatic io.netty.example.worldclock.WorldClockClient.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: new io.netty.example.worldclock.WorldClockClientInitializer
dup
aload 1
invokespecial io.netty.example.worldclock.WorldClockClientInitializer.<init>:(Lio/netty/handler/ssl/SslContext;)V
invokevirtual io.netty.bootstrap.Bootstrap.handler:(Lio/netty/channel/ChannelHandler;)Lio/netty/bootstrap/AbstractBootstrap;
pop
11: aload 3
getstatic io.netty.example.worldclock.WorldClockClient.HOST:Ljava/lang/String;
getstatic io.netty.example.worldclock.WorldClockClient.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;
invokeinterface io.netty.channel.ChannelFuture.channel:()Lio/netty/channel/Channel;
astore 4
start local 4 12: aload 4
invokeinterface io.netty.channel.Channel.pipeline:()Lio/netty/channel/ChannelPipeline;
ldc Lio/netty/example/worldclock/WorldClockClientHandler;
invokeinterface io.netty.channel.ChannelPipeline.get:(Ljava/lang/Class;)Lio/netty/channel/ChannelHandler;
checkcast io.netty.example.worldclock.WorldClockClientHandler
astore 5
start local 5 13: aload 5
getstatic io.netty.example.worldclock.WorldClockClient.CITIES:Ljava/util/List;
invokevirtual io.netty.example.worldclock.WorldClockClientHandler.getLocalTimes:(Ljava/util/Collection;)Ljava/util/List;
astore 6
start local 6 14: aload 4
invokeinterface io.netty.channel.Channel.close:()Lio/netty/channel/ChannelFuture;
pop
15: iconst_0
istore 7
start local 7 16: goto 19
17: StackMap locals: java.lang.String[] io.netty.handler.ssl.SslContext io.netty.channel.EventLoopGroup io.netty.bootstrap.Bootstrap io.netty.channel.Channel io.netty.example.worldclock.WorldClockClientHandler java.util.List int
StackMap stack:
getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "%28s: %s%n"
iconst_2
anewarray java.lang.Object
dup
iconst_0
getstatic io.netty.example.worldclock.WorldClockClient.CITIES:Ljava/util/List;
iload 7
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
aastore
dup
iconst_1
aload 6
iload 7
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
aastore
invokevirtual java.io.PrintStream.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
pop
18: iinc 7 1
StackMap locals:
StackMap stack:
19: iload 7
getstatic io.netty.example.worldclock.WorldClockClient.CITIES:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmplt 17
end local 7 end local 6 end local 5 end local 4 end local 3 20: goto 24
StackMap locals: java.lang.String[] io.netty.handler.ssl.SslContext io.netty.channel.EventLoopGroup
StackMap stack: java.lang.Throwable
21: astore 8
22: aload 2
invokeinterface io.netty.channel.EventLoopGroup.shutdownGracefully:()Lio/netty/util/concurrent/Future;
pop
23: aload 8
athrow
24: StackMap locals:
StackMap stack:
aload 2
invokeinterface io.netty.channel.EventLoopGroup.shutdownGracefully:()Lio/netty/util/concurrent/Future;
pop
25: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 args [Ljava/lang/String;
4 5 1 sslCtx Lio/netty/handler/ssl/SslContext;
6 26 1 sslCtx Lio/netty/handler/ssl/SslContext;
7 26 2 group Lio/netty/channel/EventLoopGroup;
8 20 3 b Lio/netty/bootstrap/Bootstrap;
12 20 4 ch Lio/netty/channel/Channel;
13 20 5 handler Lio/netty/example/worldclock/WorldClockClientHandler;
14 20 6 response Ljava/util/List<Ljava/lang/String;>;
16 20 7 i I
Exception table:
from to target type
7 21 21 any
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
args
}
SourceFile: "WorldClockClient.java"