public class io.netty.example.proxy.HexDumpProxyFrontendHandler extends io.netty.channel.ChannelInboundHandlerAdapter
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.netty.example.proxy.HexDumpProxyFrontendHandler
super_class: io.netty.channel.ChannelInboundHandlerAdapter
{
private final java.lang.String remoteHost;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int remotePort;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private io.netty.channel.Channel outboundChannel;
descriptor: Lio/netty/channel/Channel;
flags: (0x0002) ACC_PRIVATE
public void <init>(java.lang.String, int);
descriptor: (Ljava/lang/String;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial io.netty.channel.ChannelInboundHandlerAdapter.<init>:()V
1: aload 0
aload 1
putfield io.netty.example.proxy.HexDumpProxyFrontendHandler.remoteHost:Ljava/lang/String;
2: aload 0
iload 2
putfield io.netty.example.proxy.HexDumpProxyFrontendHandler.remotePort:I
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/netty/example/proxy/HexDumpProxyFrontendHandler;
0 4 1 remoteHost Ljava/lang/String;
0 4 2 remotePort I
MethodParameters:
Name Flags
remoteHost
remotePort
public void channelActive(io.netty.channel.ChannelHandlerContext);
descriptor: (Lio/netty/channel/ChannelHandlerContext;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.channel:()Lio/netty/channel/Channel;
astore 2
start local 2 1: new io.netty.bootstrap.Bootstrap
dup
invokespecial io.netty.bootstrap.Bootstrap.<init>:()V
astore 3
start local 3 2: aload 3
aload 2
invokeinterface io.netty.channel.Channel.eventLoop:()Lio/netty/channel/EventLoop;
invokevirtual io.netty.bootstrap.Bootstrap.group:(Lio/netty/channel/EventLoopGroup;)Lio/netty/bootstrap/AbstractBootstrap;
checkcast io.netty.bootstrap.Bootstrap
3: aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.channel:()Lio/netty/channel/Channel;
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual io.netty.bootstrap.Bootstrap.channel:(Ljava/lang/Class;)Lio/netty/bootstrap/AbstractBootstrap;
checkcast io.netty.bootstrap.Bootstrap
4: new io.netty.example.proxy.HexDumpProxyBackendHandler
dup
aload 2
invokespecial io.netty.example.proxy.HexDumpProxyBackendHandler.<init>:(Lio/netty/channel/Channel;)V
invokevirtual io.netty.bootstrap.Bootstrap.handler:(Lio/netty/channel/ChannelHandler;)Lio/netty/bootstrap/AbstractBootstrap;
checkcast io.netty.bootstrap.Bootstrap
5: getstatic io.netty.channel.ChannelOption.AUTO_READ:Lio/netty/channel/ChannelOption;
iconst_0
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokevirtual io.netty.bootstrap.Bootstrap.option:(Lio/netty/channel/ChannelOption;Ljava/lang/Object;)Lio/netty/bootstrap/AbstractBootstrap;
pop
6: aload 3
aload 0
getfield io.netty.example.proxy.HexDumpProxyFrontendHandler.remoteHost:Ljava/lang/String;
aload 0
getfield io.netty.example.proxy.HexDumpProxyFrontendHandler.remotePort:I
invokevirtual io.netty.bootstrap.Bootstrap.connect:(Ljava/lang/String;I)Lio/netty/channel/ChannelFuture;
astore 4
start local 4 7: aload 0
aload 4
invokeinterface io.netty.channel.ChannelFuture.channel:()Lio/netty/channel/Channel;
putfield io.netty.example.proxy.HexDumpProxyFrontendHandler.outboundChannel:Lio/netty/channel/Channel;
8: aload 4
new io.netty.example.proxy.HexDumpProxyFrontendHandler$1
dup
aload 0
aload 2
invokespecial io.netty.example.proxy.HexDumpProxyFrontendHandler$1.<init>:(Lio/netty/example/proxy/HexDumpProxyFrontendHandler;Lio/netty/channel/Channel;)V
invokeinterface io.netty.channel.ChannelFuture.addListener:(Lio/netty/util/concurrent/GenericFutureListener;)Lio/netty/channel/ChannelFuture;
pop
9: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lio/netty/example/proxy/HexDumpProxyFrontendHandler;
0 10 1 ctx Lio/netty/channel/ChannelHandlerContext;
1 10 2 inboundChannel Lio/netty/channel/Channel;
2 10 3 b Lio/netty/bootstrap/Bootstrap;
7 10 4 f Lio/netty/channel/ChannelFuture;
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=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield io.netty.example.proxy.HexDumpProxyFrontendHandler.outboundChannel:Lio/netty/channel/Channel;
invokeinterface io.netty.channel.Channel.isActive:()Z
ifeq 2
1: aload 0
getfield io.netty.example.proxy.HexDumpProxyFrontendHandler.outboundChannel:Lio/netty/channel/Channel;
aload 2
invokeinterface io.netty.channel.Channel.writeAndFlush:(Ljava/lang/Object;)Lio/netty/channel/ChannelFuture;
new io.netty.example.proxy.HexDumpProxyFrontendHandler$2
dup
aload 0
aload 1
invokespecial io.netty.example.proxy.HexDumpProxyFrontendHandler$2.<init>:(Lio/netty/example/proxy/HexDumpProxyFrontendHandler;Lio/netty/channel/ChannelHandlerContext;)V
invokeinterface io.netty.channel.ChannelFuture.addListener:(Lio/netty/util/concurrent/GenericFutureListener;)Lio/netty/channel/ChannelFuture;
pop
2: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/netty/example/proxy/HexDumpProxyFrontendHandler;
0 3 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 3 2 msg Ljava/lang/Object;
MethodParameters:
Name Flags
ctx final
msg
public void channelInactive(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 0
getfield io.netty.example.proxy.HexDumpProxyFrontendHandler.outboundChannel:Lio/netty/channel/Channel;
ifnull 2
1: aload 0
getfield io.netty.example.proxy.HexDumpProxyFrontendHandler.outboundChannel:Lio/netty/channel/Channel;
invokestatic io.netty.example.proxy.HexDumpProxyFrontendHandler.closeOnFlush:(Lio/netty/channel/Channel;)V
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/netty/example/proxy/HexDumpProxyFrontendHandler;
0 3 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: aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.channel:()Lio/netty/channel/Channel;
invokestatic io.netty.example.proxy.HexDumpProxyFrontendHandler.closeOnFlush:(Lio/netty/channel/Channel;)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/netty/example/proxy/HexDumpProxyFrontendHandler;
0 3 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 3 2 cause Ljava/lang/Throwable;
MethodParameters:
Name Flags
ctx
cause
static void closeOnFlush(io.netty.channel.Channel);
descriptor: (Lio/netty/channel/Channel;)V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokeinterface io.netty.channel.Channel.isActive:()Z
ifeq 2
1: aload 0
getstatic io.netty.buffer.Unpooled.EMPTY_BUFFER:Lio/netty/buffer/ByteBuf;
invokeinterface io.netty.channel.Channel.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
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 ch Lio/netty/channel/Channel;
MethodParameters:
Name Flags
ch
}
SourceFile: "HexDumpProxyFrontendHandler.java"
NestMembers:
io.netty.example.proxy.HexDumpProxyFrontendHandler$1 io.netty.example.proxy.HexDumpProxyFrontendHandler$2
InnerClasses:
io.netty.example.proxy.HexDumpProxyFrontendHandler$1
io.netty.example.proxy.HexDumpProxyFrontendHandler$2