public class io.netty.handler.codec.socksx.v5.Socks5ServerEncoder extends io.netty.handler.codec.MessageToByteEncoder<io.netty.handler.codec.socksx.v5.Socks5Message>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.netty.handler.codec.socksx.v5.Socks5ServerEncoder
super_class: io.netty.handler.codec.MessageToByteEncoder
{
public static final io.netty.handler.codec.socksx.v5.Socks5ServerEncoder DEFAULT;
descriptor: Lio/netty/handler/codec/socksx/v5/Socks5ServerEncoder;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
private final io.netty.handler.codec.socksx.v5.Socks5AddressEncoder addressEncoder;
descriptor: Lio/netty/handler/codec/socksx/v5/Socks5AddressEncoder;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new io.netty.handler.codec.socksx.v5.Socks5ServerEncoder
dup
getstatic io.netty.handler.codec.socksx.v5.Socks5AddressEncoder.DEFAULT:Lio/netty/handler/codec/socksx/v5/Socks5AddressEncoder;
invokespecial io.netty.handler.codec.socksx.v5.Socks5ServerEncoder.<init>:(Lio/netty/handler/codec/socksx/v5/Socks5AddressEncoder;)V
putstatic io.netty.handler.codec.socksx.v5.Socks5ServerEncoder.DEFAULT:Lio/netty/handler/codec/socksx/v5/Socks5ServerEncoder;
return
LocalVariableTable:
Start End Slot Name Signature
protected void <init>();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic io.netty.handler.codec.socksx.v5.Socks5AddressEncoder.DEFAULT:Lio/netty/handler/codec/socksx/v5/Socks5AddressEncoder;
invokespecial io.netty.handler.codec.socksx.v5.Socks5ServerEncoder.<init>:(Lio/netty/handler/codec/socksx/v5/Socks5AddressEncoder;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/handler/codec/socksx/v5/Socks5ServerEncoder;
public void <init>(io.netty.handler.codec.socksx.v5.Socks5AddressEncoder);
descriptor: (Lio/netty/handler/codec/socksx/v5/Socks5AddressEncoder;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial io.netty.handler.codec.MessageToByteEncoder.<init>:()V
1: aload 1
ifnonnull 3
2: new java.lang.NullPointerException
dup
ldc "addressEncoder"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: io.netty.handler.codec.socksx.v5.Socks5ServerEncoder io.netty.handler.codec.socksx.v5.Socks5AddressEncoder
StackMap stack:
aload 0
aload 1
putfield io.netty.handler.codec.socksx.v5.Socks5ServerEncoder.addressEncoder:Lio/netty/handler/codec/socksx/v5/Socks5AddressEncoder;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/netty/handler/codec/socksx/v5/Socks5ServerEncoder;
0 5 1 addressEncoder Lio/netty/handler/codec/socksx/v5/Socks5AddressEncoder;
MethodParameters:
Name Flags
addressEncoder
protected final io.netty.handler.codec.socksx.v5.Socks5AddressEncoder addressEncoder();
descriptor: ()Lio/netty/handler/codec/socksx/v5/Socks5AddressEncoder;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.handler.codec.socksx.v5.Socks5ServerEncoder.addressEncoder:Lio/netty/handler/codec/socksx/v5/Socks5AddressEncoder;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/codec/socksx/v5/Socks5ServerEncoder;
protected void encode(io.netty.channel.ChannelHandlerContext, io.netty.handler.codec.socksx.v5.Socks5Message, io.netty.buffer.ByteBuf);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/socksx/v5/Socks5Message;Lio/netty/buffer/ByteBuf;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
instanceof io.netty.handler.codec.socksx.v5.Socks5InitialResponse
ifeq 3
1: aload 2
checkcast io.netty.handler.codec.socksx.v5.Socks5InitialResponse
aload 3
invokestatic io.netty.handler.codec.socksx.v5.Socks5ServerEncoder.encodeAuthMethodResponse:(Lio/netty/handler/codec/socksx/v5/Socks5InitialResponse;Lio/netty/buffer/ByteBuf;)V
2: goto 10
StackMap locals:
StackMap stack:
3: aload 2
instanceof io.netty.handler.codec.socksx.v5.Socks5PasswordAuthResponse
ifeq 6
4: aload 2
checkcast io.netty.handler.codec.socksx.v5.Socks5PasswordAuthResponse
aload 3
invokestatic io.netty.handler.codec.socksx.v5.Socks5ServerEncoder.encodePasswordAuthResponse:(Lio/netty/handler/codec/socksx/v5/Socks5PasswordAuthResponse;Lio/netty/buffer/ByteBuf;)V
5: goto 10
StackMap locals:
StackMap stack:
6: aload 2
instanceof io.netty.handler.codec.socksx.v5.Socks5CommandResponse
ifeq 9
7: aload 0
aload 2
checkcast io.netty.handler.codec.socksx.v5.Socks5CommandResponse
aload 3
invokevirtual io.netty.handler.codec.socksx.v5.Socks5ServerEncoder.encodeCommandResponse:(Lio/netty/handler/codec/socksx/v5/Socks5CommandResponse;Lio/netty/buffer/ByteBuf;)V
8: goto 10
9: StackMap locals:
StackMap stack:
new io.netty.handler.codec.EncoderException
dup
new java.lang.StringBuilder
dup
ldc "unsupported message type: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokestatic io.netty.util.internal.StringUtil.simpleClassName:(Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial io.netty.handler.codec.EncoderException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals:
StackMap stack:
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/handler/codec/socksx/v5/Socks5ServerEncoder;
0 11 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 11 2 msg Lio/netty/handler/codec/socksx/v5/Socks5Message;
0 11 3 out Lio/netty/buffer/ByteBuf;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
msg
out
private static void encodeAuthMethodResponse(io.netty.handler.codec.socksx.v5.Socks5InitialResponse, io.netty.buffer.ByteBuf);
descriptor: (Lio/netty/handler/codec/socksx/v5/Socks5InitialResponse;Lio/netty/buffer/ByteBuf;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokeinterface io.netty.handler.codec.socksx.v5.Socks5InitialResponse.version:()Lio/netty/handler/codec/socksx/SocksVersion;
invokevirtual io.netty.handler.codec.socksx.SocksVersion.byteValue:()B
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
1: aload 1
aload 0
invokeinterface io.netty.handler.codec.socksx.v5.Socks5InitialResponse.authMethod:()Lio/netty/handler/codec/socksx/v5/Socks5AuthMethod;
invokevirtual io.netty.handler.codec.socksx.v5.Socks5AuthMethod.byteValue:()B
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 msg Lio/netty/handler/codec/socksx/v5/Socks5InitialResponse;
0 3 1 out Lio/netty/buffer/ByteBuf;
MethodParameters:
Name Flags
msg
out
private static void encodePasswordAuthResponse(io.netty.handler.codec.socksx.v5.Socks5PasswordAuthResponse, io.netty.buffer.ByteBuf);
descriptor: (Lio/netty/handler/codec/socksx/v5/Socks5PasswordAuthResponse;Lio/netty/buffer/ByteBuf;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
iconst_1
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
1: aload 1
aload 0
invokeinterface io.netty.handler.codec.socksx.v5.Socks5PasswordAuthResponse.status:()Lio/netty/handler/codec/socksx/v5/Socks5PasswordAuthStatus;
invokevirtual io.netty.handler.codec.socksx.v5.Socks5PasswordAuthStatus.byteValue:()B
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 msg Lio/netty/handler/codec/socksx/v5/Socks5PasswordAuthResponse;
0 3 1 out Lio/netty/buffer/ByteBuf;
MethodParameters:
Name Flags
msg
out
private void encodeCommandResponse(io.netty.handler.codec.socksx.v5.Socks5CommandResponse, io.netty.buffer.ByteBuf);
descriptor: (Lio/netty/handler/codec/socksx/v5/Socks5CommandResponse;Lio/netty/buffer/ByteBuf;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
aload 1
invokeinterface io.netty.handler.codec.socksx.v5.Socks5CommandResponse.version:()Lio/netty/handler/codec/socksx/SocksVersion;
invokevirtual io.netty.handler.codec.socksx.SocksVersion.byteValue:()B
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
1: aload 2
aload 1
invokeinterface io.netty.handler.codec.socksx.v5.Socks5CommandResponse.status:()Lio/netty/handler/codec/socksx/v5/Socks5CommandStatus;
invokevirtual io.netty.handler.codec.socksx.v5.Socks5CommandStatus.byteValue:()B
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
2: aload 2
iconst_0
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
3: aload 1
invokeinterface io.netty.handler.codec.socksx.v5.Socks5CommandResponse.bndAddrType:()Lio/netty/handler/codec/socksx/v5/Socks5AddressType;
astore 3
start local 3 4: aload 2
aload 3
invokevirtual io.netty.handler.codec.socksx.v5.Socks5AddressType.byteValue:()B
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
5: aload 0
getfield io.netty.handler.codec.socksx.v5.Socks5ServerEncoder.addressEncoder:Lio/netty/handler/codec/socksx/v5/Socks5AddressEncoder;
aload 3
aload 1
invokeinterface io.netty.handler.codec.socksx.v5.Socks5CommandResponse.bndAddr:()Ljava/lang/String;
aload 2
invokeinterface io.netty.handler.codec.socksx.v5.Socks5AddressEncoder.encodeAddress:(Lio/netty/handler/codec/socksx/v5/Socks5AddressType;Ljava/lang/String;Lio/netty/buffer/ByteBuf;)V
6: aload 2
aload 1
invokeinterface io.netty.handler.codec.socksx.v5.Socks5CommandResponse.bndPort:()I
invokevirtual io.netty.buffer.ByteBuf.writeShort:(I)Lio/netty/buffer/ByteBuf;
pop
7: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lio/netty/handler/codec/socksx/v5/Socks5ServerEncoder;
0 8 1 msg Lio/netty/handler/codec/socksx/v5/Socks5CommandResponse;
0 8 2 out Lio/netty/buffer/ByteBuf;
4 8 3 bndAddrType Lio/netty/handler/codec/socksx/v5/Socks5AddressType;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
msg
out
protected void encode(io.netty.channel.ChannelHandlerContext, java.lang.Object, io.netty.buffer.ByteBuf);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Lio/netty/buffer/ByteBuf;)V
flags: (0x1044) ACC_PROTECTED, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=4, locals=4, args_size=4
0: aload 0
aload 1
aload 2
checkcast io.netty.handler.codec.socksx.v5.Socks5Message
aload 3
invokevirtual io.netty.handler.codec.socksx.v5.Socks5ServerEncoder.encode:(Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/socksx/v5/Socks5Message;Lio/netty/buffer/ByteBuf;)V
return
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.lang.Exception
}
Signature: Lio/netty/handler/codec/MessageToByteEncoder<Lio/netty/handler/codec/socksx/v5/Socks5Message;>;
SourceFile: "Socks5ServerEncoder.java"
InnerClasses:
public abstract Sharable = io.netty.channel.ChannelHandler$Sharable of io.netty.channel.ChannelHandler
RuntimeVisibleAnnotations:
io.netty.channel.ChannelHandler$Sharable()