public class io.netty.example.http.cors.OkResponseHandler extends io.netty.channel.SimpleChannelInboundHandler<java.lang.Object>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.netty.example.http.cors.OkResponseHandler
super_class: io.netty.channel.SimpleChannelInboundHandler
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 // io.netty.example.http.cors.OkResponseHandler this
0: .line 30
aload 0 /* this */
invokespecial io.netty.channel.SimpleChannelInboundHandler.<init>:()V
return
end local 0 // io.netty.example.http.cors.OkResponseHandler this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/example/http/cors/OkResponseHandler;
public void channelRead0(io.netty.channel.ChannelHandlerContext, java.lang.Object);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 // io.netty.example.http.cors.OkResponseHandler this
start local 1 // io.netty.channel.ChannelHandlerContext ctx
start local 2 // java.lang.Object msg
0: .line 33
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;
invokespecial io.netty.handler.codec.http.DefaultFullHttpResponse.<init>:(Lio/netty/handler/codec/http/HttpVersion;Lio/netty/handler/codec/http/HttpResponseStatus;)V
astore 3 /* response */
start local 3 // io.netty.handler.codec.http.FullHttpResponse response
1: .line 34
aload 3 /* response */
invokeinterface io.netty.handler.codec.http.FullHttpResponse.headers:()Lio/netty/handler/codec/http/HttpHeaders;
ldc "custom-response-header"
ldc "Some value"
invokevirtual io.netty.handler.codec.http.HttpHeaders.set:(Ljava/lang/String;Ljava/lang/Object;)Lio/netty/handler/codec/http/HttpHeaders;
pop
2: .line 35
aload 1 /* ctx */
aload 3 /* response */
invokeinterface io.netty.channel.ChannelHandlerContext.writeAndFlush:(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
3: .line 36
return
end local 3 // io.netty.handler.codec.http.FullHttpResponse response
end local 2 // java.lang.Object msg
end local 1 // io.netty.channel.ChannelHandlerContext ctx
end local 0 // io.netty.example.http.cors.OkResponseHandler this
LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/netty/example/http/cors/OkResponseHandler;
0 4 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 4 2 msg Ljava/lang/Object;
1 4 3 response Lio/netty/handler/codec/http/FullHttpResponse;
MethodParameters:
Name Flags
ctx
msg
}
Signature: Lio/netty/channel/SimpleChannelInboundHandler<Ljava/lang/Object;>;
SourceFile: "OkResponseHandler.java"