public class extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.netty.example.http.cors.HttpCorsServerInitializer
super_class: io.netty.channel.ChannelInitializer
{
private final io.netty.handler.ssl.SslContext sslCtx;
descriptor: Lio/netty/handler/ssl/SslContext;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(io.netty.handler.ssl.SslContext);
descriptor: (Lio/netty/handler/ssl/SslContext;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial io.netty.channel.ChannelInitializer.<init>:()V
1: aload 0
aload 1
putfield io.netty.example.http.cors.HttpCorsServerInitializer.sslCtx:Lio/netty/handler/ssl/SslContext;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/netty/example/http/cors/HttpCorsServerInitializer;
0 3 1 sslCtx Lio/netty/handler/ssl/SslContext;
MethodParameters:
Name Flags
sslCtx
public void (io.netty.channel.socket.SocketChannel);
descriptor: (Lio/netty/channel/socket/SocketChannel;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=4, args_size=2
start local 0 start local 1 0: invokestatic io.netty.handler.codec.http.cors.CorsConfigBuilder.forAnyOrigin:()Lio/netty/handler/codec/http/cors/CorsConfigBuilder;
invokevirtual io.netty.handler.codec.http.cors.CorsConfigBuilder.allowNullOrigin:()Lio/netty/handler/codec/http/cors/CorsConfigBuilder;
invokevirtual io.netty.handler.codec.http.cors.CorsConfigBuilder.allowCredentials:()Lio/netty/handler/codec/http/cors/CorsConfigBuilder;
invokevirtual io.netty.handler.codec.http.cors.CorsConfigBuilder.build:()Lio/netty/handler/codec/http/cors/CorsConfig;
astore 2
start local 2 1: aload 1
invokeinterface io.netty.channel.socket.SocketChannel.pipeline:()Lio/netty/channel/ChannelPipeline;
astore 3
start local 3 2: aload 0
getfield io.netty.example.http.cors.HttpCorsServerInitializer.sslCtx:Lio/netty/handler/ssl/SslContext;
ifnull 4
3: aload 3
iconst_1
anewarray io.netty.channel.ChannelHandler
dup
iconst_0
aload 0
getfield io.netty.example.http.cors.HttpCorsServerInitializer.sslCtx:Lio/netty/handler/ssl/SslContext;
aload 1
invokeinterface io.netty.channel.socket.SocketChannel.alloc:()Lio/netty/buffer/ByteBufAllocator;
invokevirtual io.netty.handler.ssl.SslContext.newHandler:(Lio/netty/buffer/ByteBufAllocator;)Lio/netty/handler/ssl/SslHandler;
aastore
invokeinterface io.netty.channel.ChannelPipeline.addLast:([Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline;
pop
4: StackMap locals: io.netty.handler.codec.http.cors.CorsConfig io.netty.channel.ChannelPipeline
StackMap stack:
aload 3
iconst_1
anewarray io.netty.channel.ChannelHandler
dup
iconst_0
new io.netty.handler.codec.http.HttpResponseEncoder
dup
invokespecial io.netty.handler.codec.http.HttpResponseEncoder.<init>:()V
aastore
invokeinterface io.netty.channel.ChannelPipeline.addLast:([Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline;
pop
5: aload 3
iconst_1
anewarray io.netty.channel.ChannelHandler
dup
iconst_0
new io.netty.handler.codec.http.HttpRequestDecoder
dup
invokespecial io.netty.handler.codec.http.HttpRequestDecoder.<init>:()V
aastore
invokeinterface io.netty.channel.ChannelPipeline.addLast:([Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline;
pop
6: aload 3
iconst_1
anewarray io.netty.channel.ChannelHandler
dup
iconst_0
new io.netty.handler.codec.http.HttpObjectAggregator
dup
ldc 65536
invokespecial io.netty.handler.codec.http.HttpObjectAggregator.<init>:(I)V
aastore
invokeinterface io.netty.channel.ChannelPipeline.addLast:([Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline;
pop
7: aload 3
iconst_1
anewarray io.netty.channel.ChannelHandler
dup
iconst_0
new io.netty.handler.stream.ChunkedWriteHandler
dup
invokespecial io.netty.handler.stream.ChunkedWriteHandler.<init>:()V
aastore
invokeinterface io.netty.channel.ChannelPipeline.addLast:([Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline;
pop
8: aload 3
iconst_1
anewarray io.netty.channel.ChannelHandler
dup
iconst_0
new io.netty.handler.codec.http.cors.CorsHandler
dup
aload 2
invokespecial io.netty.handler.codec.http.cors.CorsHandler.<init>:(Lio/netty/handler/codec/http/cors/CorsConfig;)V
aastore
invokeinterface io.netty.channel.ChannelPipeline.addLast:([Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline;
pop
9: aload 3
iconst_1
anewarray io.netty.channel.ChannelHandler
dup
iconst_0
new io.netty.example.http.cors.OkResponseHandler
dup
invokespecial io.netty.example.http.cors.OkResponseHandler.<init>:()V
aastore
invokeinterface io.netty.channel.ChannelPipeline.addLast:([Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline;
pop
10: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lio/netty/example/http/cors/HttpCorsServerInitializer;
0 11 1 ch Lio/netty/channel/socket/SocketChannel;
1 11 2 corsConfig Lio/netty/handler/codec/http/cors/CorsConfig;
2 11 3 pipeline Lio/netty/channel/ChannelPipeline;
MethodParameters:
Name Flags
ch
public void (io.netty.channel.Channel);
descriptor: (Lio/netty/channel/Channel;)V
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast io.netty.channel.socket.SocketChannel
invokevirtual io.netty.example.http.cors.HttpCorsServerInitializer.initChannel:(Lio/netty/channel/socket/SocketChannel;)V
return
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.lang.Exception
}
Signature: Lio/netty/channel/ChannelInitializer<Lio/netty/channel/socket/SocketChannel;>;
SourceFile: "HttpCorsServerInitializer.java"