public class io.netty.handler.codec.socksx.v5.Socks5InitialRequestDecoder extends io.netty.handler.codec.ReplayingDecoder<io.netty.handler.codec.socksx.v5.Socks5InitialRequestDecoder$State>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.netty.handler.codec.socksx.v5.Socks5InitialRequestDecoder
super_class: io.netty.handler.codec.ReplayingDecoder
{
private static volatile int[] $SWITCH_TABLE$io$netty$handler$codec$socksx$v5$Socks5InitialRequestDecoder$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.Socks5InitialRequestDecoder$State.INIT:Lio/netty/handler/codec/socksx/v5/Socks5InitialRequestDecoder$State;
invokespecial io.netty.handler.codec.ReplayingDecoder.<init>:(Ljava/lang/Object;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/handler/codec/socksx/v5/Socks5InitialRequestDecoder;
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=5, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: invokestatic io.netty.handler.codec.socksx.v5.Socks5InitialRequestDecoder.$SWITCH_TABLE$io$netty$handler$codec$socksx$v5$Socks5InitialRequestDecoder$State:()[I
aload 0
invokevirtual io.netty.handler.codec.socksx.v5.Socks5InitialRequestDecoder.state:()Ljava/lang/Object;
checkcast io.netty.handler.codec.socksx.v5.Socks5InitialRequestDecoder$State
invokevirtual io.netty.handler.codec.socksx.v5.Socks5InitialRequestDecoder$State.ordinal:()I
iaload
tableswitch { // 1 - 3
1: 1
2: 17
3: 21
default: 22
}
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.readUnsignedByte:()S
istore 5
start local 5 7: aload 0
invokevirtual io.netty.handler.codec.socksx.v5.Socks5InitialRequestDecoder.actualReadableBytes:()I
iload 5
if_icmpge 9
8: goto 25
9: StackMap locals: int
StackMap stack:
iload 5
anewarray io.netty.handler.codec.socksx.v5.Socks5AuthMethod
astore 6
start local 6 10: iconst_0
istore 7
start local 7 11: goto 14
12: StackMap locals: io.netty.handler.codec.socksx.v5.Socks5AuthMethod[] int
StackMap stack:
aload 6
iload 7
aload 2
invokevirtual io.netty.buffer.ByteBuf.readByte:()B
invokestatic io.netty.handler.codec.socksx.v5.Socks5AuthMethod.valueOf:(B)Lio/netty/handler/codec/socksx/v5/Socks5AuthMethod;
aastore
13: iinc 7 1
StackMap locals:
StackMap stack:
14: iload 7
iload 5
if_icmplt 12
end local 7 15: aload 3
new io.netty.handler.codec.socksx.v5.DefaultSocks5InitialRequest
dup
aload 6
invokespecial io.netty.handler.codec.socksx.v5.DefaultSocks5InitialRequest.<init>:([Lio/netty/handler/codec/socksx/v5/Socks5AuthMethod;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
16: aload 0
getstatic io.netty.handler.codec.socksx.v5.Socks5InitialRequestDecoder$State.SUCCESS:Lio/netty/handler/codec/socksx/v5/Socks5InitialRequestDecoder$State;
invokevirtual io.netty.handler.codec.socksx.v5.Socks5InitialRequestDecoder.checkpoint:(Ljava/lang/Object;)V
end local 6 end local 5 end local 4 17: StackMap locals: io.netty.handler.codec.socksx.v5.Socks5InitialRequestDecoder io.netty.channel.ChannelHandlerContext io.netty.buffer.ByteBuf java.util.List
StackMap stack:
aload 0
invokevirtual io.netty.handler.codec.socksx.v5.Socks5InitialRequestDecoder.actualReadableBytes:()I
istore 4
start local 4 18: iload 4
ifle 25
19: 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
20: goto 25
end local 4 21: StackMap locals:
StackMap stack:
aload 2
aload 0
invokevirtual io.netty.handler.codec.socksx.v5.Socks5InitialRequestDecoder.actualReadableBytes:()I
invokevirtual io.netty.buffer.ByteBuf.skipBytes:(I)Lio/netty/buffer/ByteBuf;
pop
22: StackMap locals:
StackMap stack:
goto 25
StackMap locals:
StackMap stack: java.lang.Exception
23: astore 4
start local 4 24: aload 0
aload 3
aload 4
invokevirtual io.netty.handler.codec.socksx.v5.Socks5InitialRequestDecoder.fail:(Ljava/util/List;Ljava/lang/Exception;)V
end local 4 25: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Lio/netty/handler/codec/socksx/v5/Socks5InitialRequestDecoder;
0 26 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 26 2 in Lio/netty/buffer/ByteBuf;
0 26 3 out Ljava/util/List<Ljava/lang/Object;>;
2 17 4 version B
7 17 5 authMethodCnt I
10 17 6 authMethods [Lio/netty/handler/codec/socksx/v5/Socks5AuthMethod;
11 15 7 i I
18 21 4 readableBytes I
24 25 4 e Ljava/lang/Exception;
Exception table:
from to target type
0 22 23 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.Socks5InitialRequestDecoder$State.FAILURE:Lio/netty/handler/codec/socksx/v5/Socks5InitialRequestDecoder$State;
invokevirtual io.netty.handler.codec.socksx.v5.Socks5InitialRequestDecoder.checkpoint:(Ljava/lang/Object;)V
3: new io.netty.handler.codec.socksx.v5.DefaultSocks5InitialRequest
dup
iconst_1
anewarray io.netty.handler.codec.socksx.v5.Socks5AuthMethod
dup
iconst_0
getstatic io.netty.handler.codec.socksx.v5.Socks5AuthMethod.NO_AUTH:Lio/netty/handler/codec/socksx/v5/Socks5AuthMethod;
aastore
invokespecial io.netty.handler.codec.socksx.v5.DefaultSocks5InitialRequest.<init>:([Lio/netty/handler/codec/socksx/v5/Socks5AuthMethod;)V
astore 3
start local 3 4: 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
5: aload 1
aload 3
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
6: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lio/netty/handler/codec/socksx/v5/Socks5InitialRequestDecoder;
0 7 1 out Ljava/util/List<Ljava/lang/Object;>;
0 7 2 cause Ljava/lang/Exception;
4 7 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$Socks5InitialRequestDecoder$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.Socks5InitialRequestDecoder.$SWITCH_TABLE$io$netty$handler$codec$socksx$v5$Socks5InitialRequestDecoder$State:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic io.netty.handler.codec.socksx.v5.Socks5InitialRequestDecoder$State.values:()[Lio/netty/handler/codec/socksx/v5/Socks5InitialRequestDecoder$State;
arraylength
newarray 10
astore 0
2: aload 0
getstatic io.netty.handler.codec.socksx.v5.Socks5InitialRequestDecoder$State.FAILURE:Lio/netty/handler/codec/socksx/v5/Socks5InitialRequestDecoder$State;
invokevirtual io.netty.handler.codec.socksx.v5.Socks5InitialRequestDecoder$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.Socks5InitialRequestDecoder$State.INIT:Lio/netty/handler/codec/socksx/v5/Socks5InitialRequestDecoder$State;
invokevirtual io.netty.handler.codec.socksx.v5.Socks5InitialRequestDecoder$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.Socks5InitialRequestDecoder$State.SUCCESS:Lio/netty/handler/codec/socksx/v5/Socks5InitialRequestDecoder$State;
invokevirtual io.netty.handler.codec.socksx.v5.Socks5InitialRequestDecoder$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.Socks5InitialRequestDecoder.$SWITCH_TABLE$io$netty$handler$codec$socksx$v5$Socks5InitialRequestDecoder$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/Socks5InitialRequestDecoder$State;>;
SourceFile: "Socks5InitialRequestDecoder.java"
NestMembers:
io.netty.handler.codec.socksx.v5.Socks5InitialRequestDecoder$State
InnerClasses:
final State = io.netty.handler.codec.socksx.v5.Socks5InitialRequestDecoder$State of io.netty.handler.codec.socksx.v5.Socks5InitialRequestDecoder