public final class io.netty.handler.proxy.Socks4ProxyHandler extends io.netty.handler.proxy.ProxyHandler
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: io.netty.handler.proxy.Socks4ProxyHandler
super_class: io.netty.handler.proxy.ProxyHandler
{
private static final java.lang.String PROTOCOL;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "socks4"
private static final java.lang.String AUTH_USERNAME;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "username"
private final java.lang.String username;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.lang.String decoderName;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String encoderName;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
public void <init>(java.net.SocketAddress);
descriptor: (Ljava/net/SocketAddress;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aconst_null
invokespecial io.netty.handler.proxy.Socks4ProxyHandler.<init>:(Ljava/net/SocketAddress;Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/handler/proxy/Socks4ProxyHandler;
0 2 1 proxyAddress Ljava/net/SocketAddress;
MethodParameters:
Name Flags
proxyAddress
public void <init>(java.net.SocketAddress, java.lang.String);
descriptor: (Ljava/net/SocketAddress;Ljava/lang/String;)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
aload 1
invokespecial io.netty.handler.proxy.ProxyHandler.<init>:(Ljava/net/SocketAddress;)V
1: aload 2
ifnull 3
aload 2
invokevirtual java.lang.String.isEmpty:()Z
ifeq 3
2: aconst_null
astore 2
3: StackMap locals: io.netty.handler.proxy.Socks4ProxyHandler java.net.SocketAddress java.lang.String
StackMap stack:
aload 0
aload 2
putfield io.netty.handler.proxy.Socks4ProxyHandler.username:Ljava/lang/String;
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/netty/handler/proxy/Socks4ProxyHandler;
0 5 1 proxyAddress Ljava/net/SocketAddress;
0 5 2 username Ljava/lang/String;
MethodParameters:
Name Flags
proxyAddress
username
public java.lang.String protocol();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "socks4"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/proxy/Socks4ProxyHandler;
public java.lang.String authScheme();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.handler.proxy.Socks4ProxyHandler.username:Ljava/lang/String;
ifnull 1
ldc "username"
goto 2
StackMap locals:
StackMap stack:
1: ldc "none"
StackMap locals:
StackMap stack: java.lang.String
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/netty/handler/proxy/Socks4ProxyHandler;
public java.lang.String username();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.handler.proxy.Socks4ProxyHandler.username:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/proxy/Socks4ProxyHandler;
protected void addCodec(io.netty.channel.ChannelHandlerContext);
descriptor: (Lio/netty/channel/ChannelHandlerContext;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.pipeline:()Lio/netty/channel/ChannelPipeline;
astore 2
start local 2 1: aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.name:()Ljava/lang/String;
astore 3
start local 3 2: new io.netty.handler.codec.socksx.v4.Socks4ClientDecoder
dup
invokespecial io.netty.handler.codec.socksx.v4.Socks4ClientDecoder.<init>:()V
astore 4
start local 4 3: aload 2
aload 3
aconst_null
aload 4
invokeinterface io.netty.channel.ChannelPipeline.addBefore:(Ljava/lang/String;Ljava/lang/String;Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline;
pop
4: aload 0
aload 2
aload 4
invokeinterface io.netty.channel.ChannelPipeline.context:(Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelHandlerContext;
invokeinterface io.netty.channel.ChannelHandlerContext.name:()Ljava/lang/String;
putfield io.netty.handler.proxy.Socks4ProxyHandler.decoderName:Ljava/lang/String;
5: aload 0
new java.lang.StringBuilder
dup
aload 0
getfield io.netty.handler.proxy.Socks4ProxyHandler.decoderName:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".encoder"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield io.netty.handler.proxy.Socks4ProxyHandler.encoderName:Ljava/lang/String;
6: aload 2
aload 3
aload 0
getfield io.netty.handler.proxy.Socks4ProxyHandler.encoderName:Ljava/lang/String;
getstatic io.netty.handler.codec.socksx.v4.Socks4ClientEncoder.INSTANCE:Lio/netty/handler/codec/socksx/v4/Socks4ClientEncoder;
invokeinterface io.netty.channel.ChannelPipeline.addBefore:(Ljava/lang/String;Ljava/lang/String;Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline;
pop
7: return
end local 4 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/proxy/Socks4ProxyHandler;
0 8 1 ctx Lio/netty/channel/ChannelHandlerContext;
1 8 2 p Lio/netty/channel/ChannelPipeline;
2 8 3 name Ljava/lang/String;
3 8 4 decoder Lio/netty/handler/codec/socksx/v4/Socks4ClientDecoder;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
protected void removeEncoder(io.netty.channel.ChannelHandlerContext);
descriptor: (Lio/netty/channel/ChannelHandlerContext;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.pipeline:()Lio/netty/channel/ChannelPipeline;
astore 2
start local 2 1: aload 2
aload 0
getfield io.netty.handler.proxy.Socks4ProxyHandler.encoderName:Ljava/lang/String;
invokeinterface io.netty.channel.ChannelPipeline.remove:(Ljava/lang/String;)Lio/netty/channel/ChannelHandler;
pop
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/netty/handler/proxy/Socks4ProxyHandler;
0 3 1 ctx Lio/netty/channel/ChannelHandlerContext;
1 3 2 p Lio/netty/channel/ChannelPipeline;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
protected void removeDecoder(io.netty.channel.ChannelHandlerContext);
descriptor: (Lio/netty/channel/ChannelHandlerContext;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.pipeline:()Lio/netty/channel/ChannelPipeline;
astore 2
start local 2 1: aload 2
aload 0
getfield io.netty.handler.proxy.Socks4ProxyHandler.decoderName:Ljava/lang/String;
invokeinterface io.netty.channel.ChannelPipeline.remove:(Ljava/lang/String;)Lio/netty/channel/ChannelHandler;
pop
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/netty/handler/proxy/Socks4ProxyHandler;
0 3 1 ctx Lio/netty/channel/ChannelHandlerContext;
1 3 2 p Lio/netty/channel/ChannelPipeline;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
protected java.lang.Object newInitialMessage(io.netty.channel.ChannelHandlerContext);
descriptor: (Lio/netty/channel/ChannelHandlerContext;)Ljava/lang/Object;
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual io.netty.handler.proxy.Socks4ProxyHandler.destinationAddress:()Ljava/net/SocketAddress;
checkcast java.net.InetSocketAddress
astore 2
start local 2 1: aload 2
invokevirtual java.net.InetSocketAddress.isUnresolved:()Z
ifeq 4
2: aload 2
invokevirtual java.net.InetSocketAddress.getHostString:()Ljava/lang/String;
astore 3
start local 3 3: goto 5
end local 3 4: StackMap locals: java.net.InetSocketAddress
StackMap stack:
aload 2
invokevirtual java.net.InetSocketAddress.getAddress:()Ljava/net/InetAddress;
invokevirtual java.net.InetAddress.getHostAddress:()Ljava/lang/String;
astore 3
start local 3 5: StackMap locals: java.lang.String
StackMap stack:
new io.netty.handler.codec.socksx.v4.DefaultSocks4CommandRequest
dup
6: getstatic io.netty.handler.codec.socksx.v4.Socks4CommandType.CONNECT:Lio/netty/handler/codec/socksx/v4/Socks4CommandType;
aload 3
aload 2
invokevirtual java.net.InetSocketAddress.getPort:()I
aload 0
getfield io.netty.handler.proxy.Socks4ProxyHandler.username:Ljava/lang/String;
ifnull 7
aload 0
getfield io.netty.handler.proxy.Socks4ProxyHandler.username:Ljava/lang/String;
goto 8
StackMap locals: io.netty.handler.proxy.Socks4ProxyHandler io.netty.channel.ChannelHandlerContext java.net.InetSocketAddress java.lang.String
StackMap stack: new 5 new 5 io.netty.handler.codec.socksx.v4.Socks4CommandType java.lang.String int
7: ldc ""
8: StackMap locals: io.netty.handler.proxy.Socks4ProxyHandler io.netty.channel.ChannelHandlerContext java.net.InetSocketAddress java.lang.String
StackMap stack: new 5 new 5 io.netty.handler.codec.socksx.v4.Socks4CommandType java.lang.String int java.lang.String
invokespecial io.netty.handler.codec.socksx.v4.DefaultSocks4CommandRequest.<init>:(Lio/netty/handler/codec/socksx/v4/Socks4CommandType;Ljava/lang/String;ILjava/lang/String;)V
areturn
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/proxy/Socks4ProxyHandler;
0 9 1 ctx Lio/netty/channel/ChannelHandlerContext;
1 9 2 raddr Ljava/net/InetSocketAddress;
3 4 3 rhost Ljava/lang/String;
5 9 3 rhost Ljava/lang/String;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
protected boolean handleResponse(io.netty.channel.ChannelHandlerContext, java.lang.Object);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 2
checkcast io.netty.handler.codec.socksx.v4.Socks4CommandResponse
astore 3
start local 3 1: aload 3
invokeinterface io.netty.handler.codec.socksx.v4.Socks4CommandResponse.status:()Lio/netty/handler/codec/socksx/v4/Socks4CommandStatus;
astore 4
start local 4 2: aload 4
getstatic io.netty.handler.codec.socksx.v4.Socks4CommandStatus.SUCCESS:Lio/netty/handler/codec/socksx/v4/Socks4CommandStatus;
if_acmpne 4
3: iconst_1
ireturn
4: StackMap locals: io.netty.handler.codec.socksx.v4.Socks4CommandResponse io.netty.handler.codec.socksx.v4.Socks4CommandStatus
StackMap stack:
new io.netty.handler.proxy.ProxyConnectException
dup
aload 0
new java.lang.StringBuilder
dup
ldc "status: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual io.netty.handler.proxy.Socks4ProxyHandler.exceptionMessage:(Ljava/lang/String;)Ljava/lang/String;
invokespecial io.netty.handler.proxy.ProxyConnectException.<init>:(Ljava/lang/String;)V
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/netty/handler/proxy/Socks4ProxyHandler;
0 5 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 5 2 response Ljava/lang/Object;
1 5 3 res Lio/netty/handler/codec/socksx/v4/Socks4CommandResponse;
2 5 4 status Lio/netty/handler/codec/socksx/v4/Socks4CommandStatus;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
response
}
SourceFile: "Socks4ProxyHandler.java"