public class io.netty.example.http.helloworld.HttpHelloWorldServerHandler extends io.netty.channel.ChannelInboundHandlerAdapter
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.netty.example.http.helloworld.HttpHelloWorldServerHandler
super_class: io.netty.channel.ChannelInboundHandlerAdapter
{
private static final byte[] CONTENT;
descriptor: [B
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final io.netty.util.AsciiString CONTENT_TYPE;
descriptor: Lio/netty/util/AsciiString;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final io.netty.util.AsciiString CONTENT_LENGTH;
descriptor: Lio/netty/util/AsciiString;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final io.netty.util.AsciiString CONNECTION;
descriptor: Lio/netty/util/AsciiString;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final io.netty.util.AsciiString KEEP_ALIVE;
descriptor: Lio/netty/util/AsciiString;
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: bipush 11
newarray 8
dup
iconst_0
bipush 72
bastore
dup
iconst_1
bipush 101
bastore
dup
iconst_2
bipush 108
bastore
dup
iconst_3
bipush 108
bastore
dup
iconst_4
bipush 111
bastore
dup
iconst_5
bipush 32
bastore
dup
bipush 6
bipush 87
bastore
dup
bipush 7
bipush 111
bastore
dup
bipush 8
bipush 114
bastore
dup
bipush 9
bipush 108
bastore
dup
bipush 10
bipush 100
bastore
putstatic io.netty.example.http.helloworld.HttpHelloWorldServerHandler.CONTENT:[B
1: ldc "Content-Type"
invokestatic io.netty.util.AsciiString.cached:(Ljava/lang/String;)Lio/netty/util/AsciiString;
putstatic io.netty.example.http.helloworld.HttpHelloWorldServerHandler.CONTENT_TYPE:Lio/netty/util/AsciiString;
2: ldc "Content-Length"
invokestatic io.netty.util.AsciiString.cached:(Ljava/lang/String;)Lio/netty/util/AsciiString;
putstatic io.netty.example.http.helloworld.HttpHelloWorldServerHandler.CONTENT_LENGTH:Lio/netty/util/AsciiString;
3: ldc "Connection"
invokestatic io.netty.util.AsciiString.cached:(Ljava/lang/String;)Lio/netty/util/AsciiString;
putstatic io.netty.example.http.helloworld.HttpHelloWorldServerHandler.CONNECTION:Lio/netty/util/AsciiString;
4: ldc "keep-alive"
invokestatic io.netty.util.AsciiString.cached:(Ljava/lang/String;)Lio/netty/util/AsciiString;
putstatic io.netty.example.http.helloworld.HttpHelloWorldServerHandler.KEEP_ALIVE:Lio/netty/util/AsciiString;
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.ChannelInboundHandlerAdapter.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/example/http/helloworld/HttpHelloWorldServerHandler;
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/http/helloworld/HttpHelloWorldServerHandler;
0 2 1 ctx Lio/netty/channel/ChannelHandlerContext;
MethodParameters:
Name Flags
ctx
public void channelRead(io.netty.channel.ChannelHandlerContext, java.lang.Object);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 2
instanceof io.netty.handler.codec.http.HttpRequest
ifeq 11
1: aload 2
checkcast io.netty.handler.codec.http.HttpRequest
astore 3
start local 3 2: aload 3
invokestatic io.netty.handler.codec.http.HttpUtil.isKeepAlive:(Lio/netty/handler/codec/http/HttpMessage;)Z
istore 4
start local 4 3: new io.netty.handler.codec.http.DefaultFullHttpResponse
dup
getstatic io.netty.handler.codec.http.HttpVersion.HTTP_1_1:Lio/netty/handler/codec/http/HttpVersion;
getstatic io.netty.handler.codec.http.HttpResponseStatus.OK:Lio/netty/handler/codec/http/HttpResponseStatus;
getstatic io.netty.example.http.helloworld.HttpHelloWorldServerHandler.CONTENT:[B
invokestatic io.netty.buffer.Unpooled.wrappedBuffer:([B)Lio/netty/buffer/ByteBuf;
invokespecial io.netty.handler.codec.http.DefaultFullHttpResponse.<init>:(Lio/netty/handler/codec/http/HttpVersion;Lio/netty/handler/codec/http/HttpResponseStatus;Lio/netty/buffer/ByteBuf;)V
astore 5
start local 5 4: aload 5
invokeinterface io.netty.handler.codec.http.FullHttpResponse.headers:()Lio/netty/handler/codec/http/HttpHeaders;
getstatic io.netty.example.http.helloworld.HttpHelloWorldServerHandler.CONTENT_TYPE:Lio/netty/util/AsciiString;
ldc "text/plain"
invokevirtual io.netty.handler.codec.http.HttpHeaders.set:(Ljava/lang/CharSequence;Ljava/lang/Object;)Lio/netty/handler/codec/http/HttpHeaders;
pop
5: aload 5
invokeinterface io.netty.handler.codec.http.FullHttpResponse.headers:()Lio/netty/handler/codec/http/HttpHeaders;
getstatic io.netty.example.http.helloworld.HttpHelloWorldServerHandler.CONTENT_LENGTH:Lio/netty/util/AsciiString;
aload 5
invokeinterface io.netty.handler.codec.http.FullHttpResponse.content:()Lio/netty/buffer/ByteBuf;
invokevirtual io.netty.buffer.ByteBuf.readableBytes:()I
invokevirtual io.netty.handler.codec.http.HttpHeaders.setInt:(Ljava/lang/CharSequence;I)Lio/netty/handler/codec/http/HttpHeaders;
pop
6: iload 4
ifne 9
7: aload 1
aload 5
invokeinterface io.netty.channel.ChannelHandlerContext.write:(Ljava/lang/Object;)Lio/netty/channel/ChannelFuture;
getstatic io.netty.channel.ChannelFutureListener.CLOSE:Lio/netty/channel/ChannelFutureListener;
invokeinterface io.netty.channel.ChannelFuture.addListener:(Lio/netty/util/concurrent/GenericFutureListener;)Lio/netty/channel/ChannelFuture;
pop
8: goto 11
9: StackMap locals: io.netty.handler.codec.http.HttpRequest int io.netty.handler.codec.http.FullHttpResponse
StackMap stack:
aload 5
invokeinterface io.netty.handler.codec.http.FullHttpResponse.headers:()Lio/netty/handler/codec/http/HttpHeaders;
getstatic io.netty.example.http.helloworld.HttpHelloWorldServerHandler.CONNECTION:Lio/netty/util/AsciiString;
getstatic io.netty.example.http.helloworld.HttpHelloWorldServerHandler.KEEP_ALIVE:Lio/netty/util/AsciiString;
invokevirtual io.netty.handler.codec.http.HttpHeaders.set:(Ljava/lang/CharSequence;Ljava/lang/Object;)Lio/netty/handler/codec/http/HttpHeaders;
pop
10: aload 1
aload 5
invokeinterface io.netty.channel.ChannelHandlerContext.write:(Ljava/lang/Object;)Lio/netty/channel/ChannelFuture;
pop
end local 5 end local 4 end local 3 11: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lio/netty/example/http/helloworld/HttpHelloWorldServerHandler;
0 12 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 12 2 msg Ljava/lang/Object;
2 11 3 req Lio/netty/handler/codec/http/HttpRequest;
3 11 4 keepAlive Z
4 11 5 response Lio/netty/handler/codec/http/FullHttpResponse;
MethodParameters:
Name Flags
ctx
msg
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: aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.close:()Lio/netty/channel/ChannelFuture;
pop
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/netty/example/http/helloworld/HttpHelloWorldServerHandler;
0 3 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 3 2 cause Ljava/lang/Throwable;
MethodParameters:
Name Flags
ctx
cause
}
SourceFile: "HttpHelloWorldServerHandler.java"