public class io.netty.example.qotm.QuoteOfTheMomentServerHandler extends io.netty.channel.SimpleChannelInboundHandler<io.netty.channel.socket.DatagramPacket>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.netty.example.qotm.QuoteOfTheMomentServerHandler
super_class: io.netty.channel.SimpleChannelInboundHandler
{
private static final java.util.Random random;
descriptor: Ljava/util/Random;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String[] quotes;
descriptor: [Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: new java.util.Random
dup
invokespecial java.util.Random.<init>:()V
putstatic io.netty.example.qotm.QuoteOfTheMomentServerHandler.random:Ljava/util/Random;
1: iconst_4
anewarray java.lang.String
dup
iconst_0
2: ldc "Where there is love there is life."
aastore
dup
iconst_1
3: ldc "First they ignore you, then they laugh at you, then they fight you, then you win."
aastore
dup
iconst_2
4: ldc "Be the change you want to see in the world."
aastore
dup
iconst_3
5: ldc "The weak can never forgive. Forgiveness is the attribute of the strong."
aastore
6: putstatic io.netty.example.qotm.QuoteOfTheMomentServerHandler.quotes:[Ljava/lang/String;
7: 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 io.netty.channel.SimpleChannelInboundHandler.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/example/qotm/QuoteOfTheMomentServerHandler;
private static java.lang.String nextQuote();
descriptor: ()Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=0
0: getstatic io.netty.example.qotm.QuoteOfTheMomentServerHandler.random:Ljava/util/Random;
dup
astore 1
monitorenter
1: getstatic io.netty.example.qotm.QuoteOfTheMomentServerHandler.random:Ljava/util/Random;
getstatic io.netty.example.qotm.QuoteOfTheMomentServerHandler.quotes:[Ljava/lang/String;
arraylength
invokevirtual java.util.Random.nextInt:(I)I
istore 0
start local 0 2: aload 1
monitorexit
3: goto 6
end local 0 StackMap locals: top java.util.Random
StackMap stack: java.lang.Throwable
4: aload 1
monitorexit
5: athrow
start local 0 6: StackMap locals: int
StackMap stack:
getstatic io.netty.example.qotm.QuoteOfTheMomentServerHandler.quotes:[Ljava/lang/String;
iload 0
aaload
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
2 4 0 quoteId I
6 7 0 quoteId I
Exception table:
from to target type
1 3 4 any
4 5 4 any
public void channelRead0(io.netty.channel.ChannelHandlerContext, io.netty.channel.socket.DatagramPacket);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Lio/netty/channel/socket/DatagramPacket;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: getstatic java.lang.System.err:Ljava/io/PrintStream;
aload 2
invokevirtual java.io.PrintStream.println:(Ljava/lang/Object;)V
1: ldc "QOTM?"
aload 2
invokevirtual io.netty.channel.socket.DatagramPacket.content:()Ljava/lang/Object;
checkcast io.netty.buffer.ByteBuf
getstatic io.netty.util.CharsetUtil.UTF_8:Ljava/nio/charset/Charset;
invokevirtual io.netty.buffer.ByteBuf.toString:(Ljava/nio/charset/Charset;)Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 5
2: aload 1
new io.netty.channel.socket.DatagramPacket
dup
3: new java.lang.StringBuilder
dup
ldc "QOTM: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
invokestatic io.netty.example.qotm.QuoteOfTheMomentServerHandler.nextQuote:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
getstatic io.netty.util.CharsetUtil.UTF_8:Ljava/nio/charset/Charset;
invokestatic io.netty.buffer.Unpooled.copiedBuffer:(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)Lio/netty/buffer/ByteBuf;
aload 2
invokevirtual io.netty.channel.socket.DatagramPacket.sender:()Ljava/net/SocketAddress;
checkcast java.net.InetSocketAddress
invokespecial io.netty.channel.socket.DatagramPacket.<init>:(Lio/netty/buffer/ByteBuf;Ljava/net/InetSocketAddress;)V
4: invokeinterface io.netty.channel.ChannelHandlerContext.write:(Ljava/lang/Object;)Lio/netty/channel/ChannelFuture;
pop
5: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/netty/example/qotm/QuoteOfTheMomentServerHandler;
0 6 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 6 2 packet Lio/netty/channel/socket/DatagramPacket;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
packet
public void channelReadComplete(io.netty.channel.ChannelHandlerContext);
descriptor: (Lio/netty/channel/ChannelHandlerContext;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.flush:()Lio/netty/channel/ChannelHandlerContext;
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/example/qotm/QuoteOfTheMomentServerHandler;
0 2 1 ctx Lio/netty/channel/ChannelHandlerContext;
MethodParameters:
Name Flags
ctx
public void exceptionCaught(io.netty.channel.ChannelHandlerContext, java.lang.Throwable);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Throwable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokevirtual java.lang.Throwable.printStackTrace:()V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/example/qotm/QuoteOfTheMomentServerHandler;
0 2 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 2 2 cause Ljava/lang/Throwable;
MethodParameters:
Name Flags
ctx
cause
public void channelRead0(io.netty.channel.ChannelHandlerContext, java.lang.Object);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
aload 2
checkcast io.netty.channel.socket.DatagramPacket
invokevirtual io.netty.example.qotm.QuoteOfTheMomentServerHandler.channelRead0:(Lio/netty/channel/ChannelHandlerContext;Lio/netty/channel/socket/DatagramPacket;)V
return
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.lang.Exception
}
Signature: Lio/netty/channel/SimpleChannelInboundHandler<Lio/netty/channel/socket/DatagramPacket;>;
SourceFile: "QuoteOfTheMomentServerHandler.java"