public class io.netty.handler.codec.socksx.v5.Socks5CommandResponseDecoder extends io.netty.handler.codec.ReplayingDecoder<io.netty.handler.codec.socksx.v5.Socks5CommandResponseDecoder$State>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.netty.handler.codec.socksx.v5.Socks5CommandResponseDecoder
super_class: io.netty.handler.codec.ReplayingDecoder
{
private final io.netty.handler.codec.socksx.v5.Socks5AddressDecoder addressDecoder;
descriptor: Lio/netty/handler/codec/socksx/v5/Socks5AddressDecoder;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static volatile int[] $SWITCH_TABLE$io$netty$handler$codec$socksx$v5$Socks5CommandResponseDecoder$State;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic io.netty.handler.codec.socksx.v5.Socks5AddressDecoder.DEFAULT:Lio/netty/handler/codec/socksx/v5/Socks5AddressDecoder;
invokespecial io.netty.handler.codec.socksx.v5.Socks5CommandResponseDecoder.<init>:(Lio/netty/handler/codec/socksx/v5/Socks5AddressDecoder;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/handler/codec/socksx/v5/Socks5CommandResponseDecoder;
public void <init>(io.netty.handler.codec.socksx.v5.Socks5AddressDecoder);
descriptor: (Lio/netty/handler/codec/socksx/v5/Socks5AddressDecoder;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getstatic io.netty.handler.codec.socksx.v5.Socks5CommandResponseDecoder$State.INIT:Lio/netty/handler/codec/socksx/v5/Socks5CommandResponseDecoder$State;
invokespecial io.netty.handler.codec.ReplayingDecoder.<init>:(Ljava/lang/Object;)V
1: aload 1
ifnonnull 3
2: new java.lang.NullPointerException
dup
ldc "addressDecoder"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: io.netty.handler.codec.socksx.v5.Socks5CommandResponseDecoder io.netty.handler.codec.socksx.v5.Socks5AddressDecoder
StackMap stack:
aload 0
aload 1
putfield io.netty.handler.codec.socksx.v5.Socks5CommandResponseDecoder.addressDecoder:Lio/netty/handler/codec/socksx/v5/Socks5AddressDecoder;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/netty/handler/codec/socksx/v5/Socks5CommandResponseDecoder;
0 5 1 addressDecoder Lio/netty/handler/codec/socksx/v5/Socks5AddressDecoder;
MethodParameters:
Name Flags
addressDecoder
protected void decode(io.netty.channel.ChannelHandlerContext, io.netty.buffer.ByteBuf, java.util.List<java.lang.Object>);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Ljava/util/List;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=7, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: invokestatic io.netty.handler.codec.socksx.v5.Socks5CommandResponseDecoder.$SWITCH_TABLE$io$netty$handler$codec$socksx$v5$Socks5CommandResponseDecoder$State:()[I
aload 0
invokevirtual io.netty.handler.codec.socksx.v5.Socks5CommandResponseDecoder.state:()Ljava/lang/Object;
checkcast io.netty.handler.codec.socksx.v5.Socks5CommandResponseDecoder$State
invokevirtual io.netty.handler.codec.socksx.v5.Socks5CommandResponseDecoder$State.ordinal:()I
iaload
tableswitch { // 1 - 3
1: 1
2: 13
3: 17
default: 18
}
1: StackMap locals:
StackMap stack:
aload 2
invokevirtual io.netty.buffer.ByteBuf.readByte:()B
istore 4
start local 4 2: iload 4
getstatic io.netty.handler.codec.socksx.SocksVersion.SOCKS5:Lio/netty/handler/codec/socksx/SocksVersion;
invokevirtual io.netty.handler.codec.socksx.SocksVersion.byteValue:()B
if_icmpeq 6
3: new io.netty.handler.codec.DecoderException
dup
4: new java.lang.StringBuilder
dup
ldc "unsupported version: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 4
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " (expected: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
getstatic io.netty.handler.codec.socksx.SocksVersion.SOCKS5:Lio/netty/handler/codec/socksx/SocksVersion;
invokevirtual io.netty.handler.codec.socksx.SocksVersion.byteValue:()B
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
bipush 41
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
5: invokespecial io.netty.handler.codec.DecoderException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: int
StackMap stack:
aload 2
invokevirtual io.netty.buffer.ByteBuf.readByte:()B
invokestatic io.netty.handler.codec.socksx.v5.Socks5CommandStatus.valueOf:(B)Lio/netty/handler/codec/socksx/v5/Socks5CommandStatus;
astore 5
start local 5 7: aload 2
iconst_1
invokevirtual io.netty.buffer.ByteBuf.skipBytes:(I)Lio/netty/buffer/ByteBuf;
pop
8: aload 2
invokevirtual io.netty.buffer.ByteBuf.readByte:()B
invokestatic io.netty.handler.codec.socksx.v5.Socks5AddressType.valueOf:(B)Lio/netty/handler/codec/socksx/v5/Socks5AddressType;
astore 6
start local 6 9: aload 0
getfield io.netty.handler.codec.socksx.v5.Socks5CommandResponseDecoder.addressDecoder:Lio/netty/handler/codec/socksx/v5/Socks5AddressDecoder;
aload 6
aload 2
invokeinterface io.netty.handler.codec.socksx.v5.Socks5AddressDecoder.decodeAddress:(Lio/netty/handler/codec/socksx/v5/Socks5AddressType;Lio/netty/buffer/ByteBuf;)Ljava/lang/String;
astore 7
start local 7 10: aload 2
invokevirtual io.netty.buffer.ByteBuf.readUnsignedShort:()I
istore 8
start local 8 11: aload 3
new io.netty.handler.codec.socksx.v5.DefaultSocks5CommandResponse
dup
aload 5
aload 6
aload 7
iload 8
invokespecial io.netty.handler.codec.socksx.v5.DefaultSocks5CommandResponse.<init>:(Lio/netty/handler/codec/socksx/v5/Socks5CommandStatus;Lio/netty/handler/codec/socksx/v5/Socks5AddressType;Ljava/lang/String;I)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
12: aload 0
getstatic io.netty.handler.codec.socksx.v5.Socks5CommandResponseDecoder$State.SUCCESS:Lio/netty/handler/codec/socksx/v5/Socks5CommandResponseDecoder$State;
invokevirtual io.netty.handler.codec.socksx.v5.Socks5CommandResponseDecoder.checkpoint:(Ljava/lang/Object;)V
end local 8 end local 7 end local 6 end local 5 end local 4 13: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.netty.handler.codec.socksx.v5.Socks5CommandResponseDecoder.actualReadableBytes:()I
istore 4
start local 4 14: iload 4
ifle 21
15: aload 3
aload 2
iload 4
invokevirtual io.netty.buffer.ByteBuf.readRetainedSlice:(I)Lio/netty/buffer/ByteBuf;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
16: goto 21
end local 4 17: StackMap locals:
StackMap stack:
aload 2
aload 0
invokevirtual io.netty.handler.codec.socksx.v5.Socks5CommandResponseDecoder.actualReadableBytes:()I
invokevirtual io.netty.buffer.ByteBuf.skipBytes:(I)Lio/netty/buffer/ByteBuf;
pop
18: StackMap locals:
StackMap stack:
goto 21
StackMap locals:
StackMap stack: java.lang.Exception
19: astore 4
start local 4 20: aload 0
aload 3
aload 4
invokevirtual io.netty.handler.codec.socksx.v5.Socks5CommandResponseDecoder.fail:(Ljava/util/List;Ljava/lang/Exception;)V
end local 4 21: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lio/netty/handler/codec/socksx/v5/Socks5CommandResponseDecoder;
0 22 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 22 2 in Lio/netty/buffer/ByteBuf;
0 22 3 out Ljava/util/List<Ljava/lang/Object;>;
2 13 4 version B
7 13 5 status Lio/netty/handler/codec/socksx/v5/Socks5CommandStatus;
9 13 6 addrType Lio/netty/handler/codec/socksx/v5/Socks5AddressType;
10 13 7 addr Ljava/lang/String;
11 13 8 port I
14 17 4 readableBytes I
20 21 4 e Ljava/lang/Exception;
Exception table:
from to target type
0 18 19 Class java.lang.Exception
Exceptions:
throws java.lang.Exception
Signature: (Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Ljava/util/List<Ljava/lang/Object;>;)V
MethodParameters:
Name Flags
ctx
in
out
private void fail(java.util.List<java.lang.Object>, java.lang.Exception);
descriptor: (Ljava/util/List;Ljava/lang/Exception;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
instanceof io.netty.handler.codec.DecoderException
ifne 2
1: new io.netty.handler.codec.DecoderException
dup
aload 2
invokespecial io.netty.handler.codec.DecoderException.<init>:(Ljava/lang/Throwable;)V
astore 2
2: StackMap locals:
StackMap stack:
aload 0
getstatic io.netty.handler.codec.socksx.v5.Socks5CommandResponseDecoder$State.FAILURE:Lio/netty/handler/codec/socksx/v5/Socks5CommandResponseDecoder$State;
invokevirtual io.netty.handler.codec.socksx.v5.Socks5CommandResponseDecoder.checkpoint:(Ljava/lang/Object;)V
3: new io.netty.handler.codec.socksx.v5.DefaultSocks5CommandResponse
dup
4: getstatic io.netty.handler.codec.socksx.v5.Socks5CommandStatus.FAILURE:Lio/netty/handler/codec/socksx/v5/Socks5CommandStatus;
getstatic io.netty.handler.codec.socksx.v5.Socks5AddressType.IPv4:Lio/netty/handler/codec/socksx/v5/Socks5AddressType;
aconst_null
iconst_0
5: invokespecial io.netty.handler.codec.socksx.v5.DefaultSocks5CommandResponse.<init>:(Lio/netty/handler/codec/socksx/v5/Socks5CommandStatus;Lio/netty/handler/codec/socksx/v5/Socks5AddressType;Ljava/lang/String;I)V
astore 3
start local 3 6: aload 3
aload 2
invokestatic io.netty.handler.codec.DecoderResult.failure:(Ljava/lang/Throwable;)Lio/netty/handler/codec/DecoderResult;
invokeinterface io.netty.handler.codec.socksx.v5.Socks5Message.setDecoderResult:(Lio/netty/handler/codec/DecoderResult;)V
7: aload 1
aload 3
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
8: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lio/netty/handler/codec/socksx/v5/Socks5CommandResponseDecoder;
0 9 1 out Ljava/util/List<Ljava/lang/Object;>;
0 9 2 cause Ljava/lang/Exception;
6 9 3 m Lio/netty/handler/codec/socksx/v5/Socks5Message;
Signature: (Ljava/util/List<Ljava/lang/Object;>;Ljava/lang/Exception;)V
MethodParameters:
Name Flags
out
cause
static int[] $SWITCH_TABLE$io$netty$handler$codec$socksx$v5$Socks5CommandResponseDecoder$State();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic io.netty.handler.codec.socksx.v5.Socks5CommandResponseDecoder.$SWITCH_TABLE$io$netty$handler$codec$socksx$v5$Socks5CommandResponseDecoder$State:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic io.netty.handler.codec.socksx.v5.Socks5CommandResponseDecoder$State.values:()[Lio/netty/handler/codec/socksx/v5/Socks5CommandResponseDecoder$State;
arraylength
newarray 10
astore 0
2: aload 0
getstatic io.netty.handler.codec.socksx.v5.Socks5CommandResponseDecoder$State.FAILURE:Lio/netty/handler/codec/socksx/v5/Socks5CommandResponseDecoder$State;
invokevirtual io.netty.handler.codec.socksx.v5.Socks5CommandResponseDecoder$State.ordinal:()I
iconst_3
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic io.netty.handler.codec.socksx.v5.Socks5CommandResponseDecoder$State.INIT:Lio/netty/handler/codec/socksx/v5/Socks5CommandResponseDecoder$State;
invokevirtual io.netty.handler.codec.socksx.v5.Socks5CommandResponseDecoder$State.ordinal:()I
iconst_1
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic io.netty.handler.codec.socksx.v5.Socks5CommandResponseDecoder$State.SUCCESS:Lio/netty/handler/codec/socksx/v5/Socks5CommandResponseDecoder$State;
invokevirtual io.netty.handler.codec.socksx.v5.Socks5CommandResponseDecoder$State.ordinal:()I
iconst_2
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
dup
putstatic io.netty.handler.codec.socksx.v5.Socks5CommandResponseDecoder.$SWITCH_TABLE$io$netty$handler$codec$socksx$v5$Socks5CommandResponseDecoder$State:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
}
Signature: Lio/netty/handler/codec/ReplayingDecoder<Lio/netty/handler/codec/socksx/v5/Socks5CommandResponseDecoder$State;>;
SourceFile: "Socks5CommandResponseDecoder.java"
NestMembers:
io.netty.handler.codec.socksx.v5.Socks5CommandResponseDecoder$State
InnerClasses:
final State = io.netty.handler.codec.socksx.v5.Socks5CommandResponseDecoder$State of io.netty.handler.codec.socksx.v5.Socks5CommandResponseDecoder