public abstract class io.netty.handler.proxy.ProxyHandler extends io.netty.channel.ChannelDuplexHandler
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: io.netty.handler.proxy.ProxyHandler
super_class: io.netty.channel.ChannelDuplexHandler
{
private static final io.netty.util.internal.logging.InternalLogger logger;
descriptor: Lio/netty/util/internal/logging/InternalLogger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final long DEFAULT_CONNECT_TIMEOUT_MILLIS;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 10000
static final java.lang.String AUTH_NONE;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: "none"
private final java.net.SocketAddress proxyAddress;
descriptor: Ljava/net/SocketAddress;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile java.net.SocketAddress destinationAddress;
descriptor: Ljava/net/SocketAddress;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile long connectTimeoutMillis;
descriptor: J
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile io.netty.channel.ChannelHandlerContext ctx;
descriptor: Lio/netty/channel/ChannelHandlerContext;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private io.netty.channel.PendingWriteQueue pendingWrites;
descriptor: Lio/netty/channel/PendingWriteQueue;
flags: (0x0002) ACC_PRIVATE
private boolean finished;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean suppressChannelReadComplete;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean flushedPrematurely;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private final io.netty.handler.proxy.ProxyHandler$LazyChannelPromise connectPromise;
descriptor: Lio/netty/handler/proxy/ProxyHandler$LazyChannelPromise;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private io.netty.util.concurrent.ScheduledFuture<?> connectTimeoutFuture;
descriptor: Lio/netty/util/concurrent/ScheduledFuture;
flags: (0x0002) ACC_PRIVATE
Signature: Lio/netty/util/concurrent/ScheduledFuture<*>;
private final io.netty.channel.ChannelFutureListener writeListener;
descriptor: Lio/netty/channel/ChannelFutureListener;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lio/netty/handler/proxy/ProxyHandler;
invokestatic io.netty.util.internal.logging.InternalLoggerFactory.getInstance:(Ljava/lang/Class;)Lio/netty/util/internal/logging/InternalLogger;
putstatic io.netty.handler.proxy.ProxyHandler.logger:Lio/netty/util/internal/logging/InternalLogger;
1: return
LocalVariableTable:
Start End Slot Name Signature
protected void <init>(java.net.SocketAddress);
descriptor: (Ljava/net/SocketAddress;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial io.netty.channel.ChannelDuplexHandler.<init>:()V
1: aload 0
ldc 10000
putfield io.netty.handler.proxy.ProxyHandler.connectTimeoutMillis:J
2: aload 0
new io.netty.handler.proxy.ProxyHandler$LazyChannelPromise
dup
aload 0
invokespecial io.netty.handler.proxy.ProxyHandler$LazyChannelPromise.<init>:(Lio/netty/handler/proxy/ProxyHandler;)V
putfield io.netty.handler.proxy.ProxyHandler.connectPromise:Lio/netty/handler/proxy/ProxyHandler$LazyChannelPromise;
3: aload 0
new io.netty.handler.proxy.ProxyHandler$1
dup
aload 0
invokespecial io.netty.handler.proxy.ProxyHandler$1.<init>:(Lio/netty/handler/proxy/ProxyHandler;)V
putfield io.netty.handler.proxy.ProxyHandler.writeListener:Lio/netty/channel/ChannelFutureListener;
4: aload 1
ifnonnull 6
5: new java.lang.NullPointerException
dup
ldc "proxyAddress"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: io.netty.handler.proxy.ProxyHandler java.net.SocketAddress
StackMap stack:
aload 0
aload 1
putfield io.netty.handler.proxy.ProxyHandler.proxyAddress:Ljava/net/SocketAddress;
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lio/netty/handler/proxy/ProxyHandler;
0 8 1 proxyAddress Ljava/net/SocketAddress;
MethodParameters:
Name Flags
proxyAddress
public abstract java.lang.String protocol();
descriptor: ()Ljava/lang/String;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract java.lang.String authScheme();
descriptor: ()Ljava/lang/String;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public final <T extends java.net.SocketAddress> T proxyAddress();
descriptor: ()Ljava/net/SocketAddress;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.handler.proxy.ProxyHandler.proxyAddress:Ljava/net/SocketAddress;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/proxy/ProxyHandler;
Signature: <T:Ljava/net/SocketAddress;>()TT;
public final <T extends java.net.SocketAddress> T destinationAddress();
descriptor: ()Ljava/net/SocketAddress;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.handler.proxy.ProxyHandler.destinationAddress:Ljava/net/SocketAddress;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/proxy/ProxyHandler;
Signature: <T:Ljava/net/SocketAddress;>()TT;
public final boolean isConnected();
descriptor: ()Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.handler.proxy.ProxyHandler.connectPromise:Lio/netty/handler/proxy/ProxyHandler$LazyChannelPromise;
invokevirtual io.netty.handler.proxy.ProxyHandler$LazyChannelPromise.isSuccess:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/proxy/ProxyHandler;
public final io.netty.util.concurrent.Future<io.netty.channel.Channel> connectFuture();
descriptor: ()Lio/netty/util/concurrent/Future;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.handler.proxy.ProxyHandler.connectPromise:Lio/netty/handler/proxy/ProxyHandler$LazyChannelPromise;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/proxy/ProxyHandler;
Signature: ()Lio/netty/util/concurrent/Future<Lio/netty/channel/Channel;>;
public final long connectTimeoutMillis();
descriptor: ()J
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.handler.proxy.ProxyHandler.connectTimeoutMillis:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/proxy/ProxyHandler;
public final void setConnectTimeoutMillis(long);
descriptor: (J)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: lload 1
lconst_0
lcmp
ifgt 2
1: lconst_0
lstore 1
2: StackMap locals:
StackMap stack:
aload 0
lload 1
putfield io.netty.handler.proxy.ProxyHandler.connectTimeoutMillis:J
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/netty/handler/proxy/ProxyHandler;
0 4 1 connectTimeoutMillis J
MethodParameters:
Name Flags
connectTimeoutMillis
public final void handlerAdded(io.netty.channel.ChannelHandlerContext);
descriptor: (Lio/netty/channel/ChannelHandlerContext;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield io.netty.handler.proxy.ProxyHandler.ctx:Lio/netty/channel/ChannelHandlerContext;
1: aload 0
aload 1
invokevirtual io.netty.handler.proxy.ProxyHandler.addCodec:(Lio/netty/channel/ChannelHandlerContext;)V
2: aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.channel:()Lio/netty/channel/Channel;
invokeinterface io.netty.channel.Channel.isActive:()Z
ifeq 4
3: aload 0
aload 1
invokevirtual io.netty.handler.proxy.ProxyHandler.sendInitialMessage:(Lio/netty/channel/ChannelHandlerContext;)V
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/netty/handler/proxy/ProxyHandler;
0 5 1 ctx Lio/netty/channel/ChannelHandlerContext;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
protected abstract void addCodec(io.netty.channel.ChannelHandlerContext);
descriptor: (Lio/netty/channel/ChannelHandlerContext;)V
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
protected abstract void removeEncoder(io.netty.channel.ChannelHandlerContext);
descriptor: (Lio/netty/channel/ChannelHandlerContext;)V
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
protected abstract void removeDecoder(io.netty.channel.ChannelHandlerContext);
descriptor: (Lio/netty/channel/ChannelHandlerContext;)V
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
public final void connect(io.netty.channel.ChannelHandlerContext, java.net.SocketAddress, java.net.SocketAddress, io.netty.channel.ChannelPromise);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Ljava/net/SocketAddress;Ljava/net/SocketAddress;Lio/netty/channel/ChannelPromise;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
getfield io.netty.handler.proxy.ProxyHandler.destinationAddress:Ljava/net/SocketAddress;
ifnull 3
1: aload 4
new java.nio.channels.ConnectionPendingException
dup
invokespecial java.nio.channels.ConnectionPendingException.<init>:()V
invokeinterface io.netty.channel.ChannelPromise.setFailure:(Ljava/lang/Throwable;)Lio/netty/channel/ChannelPromise;
pop
2: return
3: StackMap locals:
StackMap stack:
aload 0
aload 2
putfield io.netty.handler.proxy.ProxyHandler.destinationAddress:Ljava/net/SocketAddress;
4: aload 1
aload 0
getfield io.netty.handler.proxy.ProxyHandler.proxyAddress:Ljava/net/SocketAddress;
aload 3
aload 4
invokeinterface io.netty.channel.ChannelHandlerContext.connect:(Ljava/net/SocketAddress;Ljava/net/SocketAddress;Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture;
pop
5: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/netty/handler/proxy/ProxyHandler;
0 6 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 6 2 remoteAddress Ljava/net/SocketAddress;
0 6 3 localAddress Ljava/net/SocketAddress;
0 6 4 promise Lio/netty/channel/ChannelPromise;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
remoteAddress
localAddress
promise
public final void channelActive(io.netty.channel.ChannelHandlerContext);
descriptor: (Lio/netty/channel/ChannelHandlerContext;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual io.netty.handler.proxy.ProxyHandler.sendInitialMessage:(Lio/netty/channel/ChannelHandlerContext;)V
1: aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.fireChannelActive:()Lio/netty/channel/ChannelHandlerContext;
pop
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/netty/handler/proxy/ProxyHandler;
0 3 1 ctx Lio/netty/channel/ChannelHandlerContext;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
private void sendInitialMessage(io.netty.channel.ChannelHandlerContext);
descriptor: (Lio/netty/channel/ChannelHandlerContext;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield io.netty.handler.proxy.ProxyHandler.connectTimeoutMillis:J
lstore 2
start local 2 1: lload 2
lconst_0
lcmp
ifle 5
2: aload 0
aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.executor:()Lio/netty/util/concurrent/EventExecutor;
new io.netty.handler.proxy.ProxyHandler$2
dup
aload 0
invokespecial io.netty.handler.proxy.ProxyHandler$2.<init>:(Lio/netty/handler/proxy/ProxyHandler;)V
3: lload 2
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
4: invokeinterface io.netty.util.concurrent.EventExecutor.schedule:(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Lio/netty/util/concurrent/ScheduledFuture;
putfield io.netty.handler.proxy.ProxyHandler.connectTimeoutFuture:Lio/netty/util/concurrent/ScheduledFuture;
5: StackMap locals: long
StackMap stack:
aload 0
aload 1
invokevirtual io.netty.handler.proxy.ProxyHandler.newInitialMessage:(Lio/netty/channel/ChannelHandlerContext;)Ljava/lang/Object;
astore 4
start local 4 6: aload 4
ifnull 8
7: aload 0
aload 4
invokevirtual io.netty.handler.proxy.ProxyHandler.sendToProxyServer:(Ljava/lang/Object;)V
8: StackMap locals: java.lang.Object
StackMap stack:
aload 1
invokestatic io.netty.handler.proxy.ProxyHandler.readIfNeeded:(Lio/netty/channel/ChannelHandlerContext;)V
9: return
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lio/netty/handler/proxy/ProxyHandler;
0 10 1 ctx Lio/netty/channel/ChannelHandlerContext;
1 10 2 connectTimeoutMillis J
6 10 4 initialMessage Ljava/lang/Object;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx final
protected abstract java.lang.Object newInitialMessage(io.netty.channel.ChannelHandlerContext);
descriptor: (Lio/netty/channel/ChannelHandlerContext;)Ljava/lang/Object;
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
protected final void sendToProxyServer(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.netty.handler.proxy.ProxyHandler.ctx:Lio/netty/channel/ChannelHandlerContext;
aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.writeAndFlush:(Ljava/lang/Object;)Lio/netty/channel/ChannelFuture;
aload 0
getfield io.netty.handler.proxy.ProxyHandler.writeListener:Lio/netty/channel/ChannelFutureListener;
invokeinterface io.netty.channel.ChannelFuture.addListener:(Lio/netty/util/concurrent/GenericFutureListener;)Lio/netty/channel/ChannelFuture;
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/handler/proxy/ProxyHandler;
0 2 1 msg Ljava/lang/Object;
MethodParameters:
Name Flags
msg
public final void channelInactive(io.netty.channel.ChannelHandlerContext);
descriptor: (Lio/netty/channel/ChannelHandlerContext;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.netty.handler.proxy.ProxyHandler.finished:Z
ifeq 3
1: aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.fireChannelInactive:()Lio/netty/channel/ChannelHandlerContext;
pop
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
new io.netty.handler.proxy.ProxyConnectException
dup
aload 0
ldc "disconnected"
invokevirtual io.netty.handler.proxy.ProxyHandler.exceptionMessage:(Ljava/lang/String;)Ljava/lang/String;
invokespecial io.netty.handler.proxy.ProxyConnectException.<init>:(Ljava/lang/String;)V
invokevirtual io.netty.handler.proxy.ProxyHandler.setConnectFailure:(Ljava/lang/Throwable;)V
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/netty/handler/proxy/ProxyHandler;
0 5 1 ctx Lio/netty/channel/ChannelHandlerContext;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
public final void exceptionCaught(io.netty.channel.ChannelHandlerContext, java.lang.Throwable);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Throwable;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield io.netty.handler.proxy.ProxyHandler.finished:Z
ifeq 3
1: aload 1
aload 2
invokeinterface io.netty.channel.ChannelHandlerContext.fireExceptionCaught:(Ljava/lang/Throwable;)Lio/netty/channel/ChannelHandlerContext;
pop
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual io.netty.handler.proxy.ProxyHandler.setConnectFailure:(Ljava/lang/Throwable;)V
4: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/netty/handler/proxy/ProxyHandler;
0 5 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 5 2 cause Ljava/lang/Throwable;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
cause
public final void channelRead(io.netty.channel.ChannelHandlerContext, java.lang.Object);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield io.netty.handler.proxy.ProxyHandler.finished:Z
ifeq 4
1: aload 0
iconst_0
putfield io.netty.handler.proxy.ProxyHandler.suppressChannelReadComplete:Z
2: aload 1
aload 2
invokeinterface io.netty.channel.ChannelHandlerContext.fireChannelRead:(Ljava/lang/Object;)Lio/netty/channel/ChannelHandlerContext;
pop
3: goto 23
4: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield io.netty.handler.proxy.ProxyHandler.suppressChannelReadComplete:Z
5: aconst_null
astore 3
start local 3 6: aload 0
aload 1
aload 2
invokevirtual io.netty.handler.proxy.ProxyHandler.handleResponse:(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)Z
istore 4
start local 4 7: iload 4
ifeq 20
8: aload 0
invokevirtual io.netty.handler.proxy.ProxyHandler.setConnectSuccess:()V
end local 4 9: goto 20
StackMap locals: io.netty.handler.proxy.ProxyHandler io.netty.channel.ChannelHandlerContext java.lang.Object java.lang.Throwable
StackMap stack: java.lang.Throwable
10: astore 4
start local 4 11: aload 4
astore 3
end local 4 12: aload 2
invokestatic io.netty.util.ReferenceCountUtil.release:(Ljava/lang/Object;)Z
pop
13: aload 3
ifnull 23
14: aload 0
aload 3
invokevirtual io.netty.handler.proxy.ProxyHandler.setConnectFailure:(Ljava/lang/Throwable;)V
goto 23
15: StackMap locals:
StackMap stack: java.lang.Throwable
astore 5
16: aload 2
invokestatic io.netty.util.ReferenceCountUtil.release:(Ljava/lang/Object;)Z
pop
17: aload 3
ifnull 19
18: aload 0
aload 3
invokevirtual io.netty.handler.proxy.ProxyHandler.setConnectFailure:(Ljava/lang/Throwable;)V
19: StackMap locals: io.netty.handler.proxy.ProxyHandler io.netty.channel.ChannelHandlerContext java.lang.Object java.lang.Throwable top java.lang.Throwable
StackMap stack:
aload 5
athrow
20: StackMap locals: io.netty.handler.proxy.ProxyHandler io.netty.channel.ChannelHandlerContext java.lang.Object java.lang.Throwable
StackMap stack:
aload 2
invokestatic io.netty.util.ReferenceCountUtil.release:(Ljava/lang/Object;)Z
pop
21: aload 3
ifnull 23
22: aload 0
aload 3
invokevirtual io.netty.handler.proxy.ProxyHandler.setConnectFailure:(Ljava/lang/Throwable;)V
end local 3 23: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lio/netty/handler/proxy/ProxyHandler;
0 24 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 24 2 msg Ljava/lang/Object;
6 23 3 cause Ljava/lang/Throwable;
7 9 4 done Z
11 12 4 t Ljava/lang/Throwable;
Exception table:
from to target type
6 9 10 Class java.lang.Throwable
6 12 15 any
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
msg
protected abstract boolean handleResponse(io.netty.channel.ChannelHandlerContext, java.lang.Object);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)Z
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
response
private void setConnectSuccess();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=3, args_size=1
start local 0 0: aload 0
iconst_1
putfield io.netty.handler.proxy.ProxyHandler.finished:Z
1: aload 0
invokevirtual io.netty.handler.proxy.ProxyHandler.cancelConnectTimeoutFuture:()V
2: aload 0
getfield io.netty.handler.proxy.ProxyHandler.connectPromise:Lio/netty/handler/proxy/ProxyHandler$LazyChannelPromise;
invokevirtual io.netty.handler.proxy.ProxyHandler$LazyChannelPromise.isDone:()Z
ifne 19
3: iconst_1
istore 1
start local 1 4: iload 1
aload 0
invokevirtual io.netty.handler.proxy.ProxyHandler.safeRemoveEncoder:()Z
iand
istore 1
5: aload 0
getfield io.netty.handler.proxy.ProxyHandler.ctx:Lio/netty/channel/ChannelHandlerContext;
6: new io.netty.handler.proxy.ProxyConnectionEvent
dup
aload 0
invokevirtual io.netty.handler.proxy.ProxyHandler.protocol:()Ljava/lang/String;
aload 0
invokevirtual io.netty.handler.proxy.ProxyHandler.authScheme:()Ljava/lang/String;
aload 0
getfield io.netty.handler.proxy.ProxyHandler.proxyAddress:Ljava/net/SocketAddress;
aload 0
getfield io.netty.handler.proxy.ProxyHandler.destinationAddress:Ljava/net/SocketAddress;
invokespecial io.netty.handler.proxy.ProxyConnectionEvent.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/net/SocketAddress;Ljava/net/SocketAddress;)V
7: invokeinterface io.netty.channel.ChannelHandlerContext.fireUserEventTriggered:(Ljava/lang/Object;)Lio/netty/channel/ChannelHandlerContext;
pop
8: iload 1
aload 0
invokevirtual io.netty.handler.proxy.ProxyHandler.safeRemoveDecoder:()Z
iand
istore 1
9: iload 1
ifeq 15
10: aload 0
invokevirtual io.netty.handler.proxy.ProxyHandler.writePendingWrites:()V
11: aload 0
getfield io.netty.handler.proxy.ProxyHandler.flushedPrematurely:Z
ifeq 13
12: aload 0
getfield io.netty.handler.proxy.ProxyHandler.ctx:Lio/netty/channel/ChannelHandlerContext;
invokeinterface io.netty.channel.ChannelHandlerContext.flush:()Lio/netty/channel/ChannelHandlerContext;
pop
13: StackMap locals: int
StackMap stack:
aload 0
getfield io.netty.handler.proxy.ProxyHandler.connectPromise:Lio/netty/handler/proxy/ProxyHandler$LazyChannelPromise;
aload 0
getfield io.netty.handler.proxy.ProxyHandler.ctx:Lio/netty/channel/ChannelHandlerContext;
invokeinterface io.netty.channel.ChannelHandlerContext.channel:()Lio/netty/channel/Channel;
invokevirtual io.netty.handler.proxy.ProxyHandler$LazyChannelPromise.trySuccess:(Ljava/lang/Object;)Z
pop
14: goto 19
15: StackMap locals:
StackMap stack:
new io.netty.handler.proxy.ProxyConnectException
dup
16: ldc "failed to remove all codec handlers added by the proxy handler; bug?"
17: invokespecial io.netty.handler.proxy.ProxyConnectException.<init>:(Ljava/lang/String;)V
astore 2
start local 2 18: aload 0
aload 2
invokevirtual io.netty.handler.proxy.ProxyHandler.failPendingWritesAndClose:(Ljava/lang/Throwable;)V
end local 2 end local 1 19: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lio/netty/handler/proxy/ProxyHandler;
4 19 1 removedCodec Z
18 19 2 cause Ljava/lang/Exception;
private boolean safeRemoveDecoder();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
aload 0
getfield io.netty.handler.proxy.ProxyHandler.ctx:Lio/netty/channel/ChannelHandlerContext;
invokevirtual io.netty.handler.proxy.ProxyHandler.removeDecoder:(Lio/netty/channel/ChannelHandlerContext;)V
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack: java.lang.Exception
astore 1
start local 1 3: getstatic io.netty.handler.proxy.ProxyHandler.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "Failed to remove proxy decoders:"
aload 1
invokeinterface io.netty.util.internal.logging.InternalLogger.warn:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 1 4: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/netty/handler/proxy/ProxyHandler;
3 4 1 e Ljava/lang/Exception;
Exception table:
from to target type
0 1 2 Class java.lang.Exception
private boolean safeRemoveEncoder();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
aload 0
getfield io.netty.handler.proxy.ProxyHandler.ctx:Lio/netty/channel/ChannelHandlerContext;
invokevirtual io.netty.handler.proxy.ProxyHandler.removeEncoder:(Lio/netty/channel/ChannelHandlerContext;)V
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack: java.lang.Exception
astore 1
start local 1 3: getstatic io.netty.handler.proxy.ProxyHandler.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "Failed to remove proxy encoders:"
aload 1
invokeinterface io.netty.util.internal.logging.InternalLogger.warn:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 1 4: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/netty/handler/proxy/ProxyHandler;
3 4 1 e Ljava/lang/Exception;
Exception table:
from to target type
0 1 2 Class java.lang.Exception
private void setConnectFailure(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_1
putfield io.netty.handler.proxy.ProxyHandler.finished:Z
1: aload 0
invokevirtual io.netty.handler.proxy.ProxyHandler.cancelConnectTimeoutFuture:()V
2: aload 0
getfield io.netty.handler.proxy.ProxyHandler.connectPromise:Lio/netty/handler/proxy/ProxyHandler$LazyChannelPromise;
invokevirtual io.netty.handler.proxy.ProxyHandler$LazyChannelPromise.isDone:()Z
ifne 10
3: aload 1
instanceof io.netty.handler.proxy.ProxyConnectException
ifne 7
4: new io.netty.handler.proxy.ProxyConnectException
dup
5: aload 0
aload 1
invokevirtual java.lang.Throwable.toString:()Ljava/lang/String;
invokevirtual io.netty.handler.proxy.ProxyHandler.exceptionMessage:(Ljava/lang/String;)Ljava/lang/String;
aload 1
6: invokespecial io.netty.handler.proxy.ProxyConnectException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
astore 1
7: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.netty.handler.proxy.ProxyHandler.safeRemoveDecoder:()Z
pop
8: aload 0
invokevirtual io.netty.handler.proxy.ProxyHandler.safeRemoveEncoder:()Z
pop
9: aload 0
aload 1
invokevirtual io.netty.handler.proxy.ProxyHandler.failPendingWritesAndClose:(Ljava/lang/Throwable;)V
10: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lio/netty/handler/proxy/ProxyHandler;
0 11 1 cause Ljava/lang/Throwable;
MethodParameters:
Name Flags
cause
private void failPendingWritesAndClose(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual io.netty.handler.proxy.ProxyHandler.failPendingWrites:(Ljava/lang/Throwable;)V
1: aload 0
getfield io.netty.handler.proxy.ProxyHandler.connectPromise:Lio/netty/handler/proxy/ProxyHandler$LazyChannelPromise;
aload 1
invokevirtual io.netty.handler.proxy.ProxyHandler$LazyChannelPromise.tryFailure:(Ljava/lang/Throwable;)Z
pop
2: aload 0
getfield io.netty.handler.proxy.ProxyHandler.ctx:Lio/netty/channel/ChannelHandlerContext;
aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.fireExceptionCaught:(Ljava/lang/Throwable;)Lio/netty/channel/ChannelHandlerContext;
pop
3: aload 0
getfield io.netty.handler.proxy.ProxyHandler.ctx:Lio/netty/channel/ChannelHandlerContext;
invokeinterface io.netty.channel.ChannelHandlerContext.close:()Lio/netty/channel/ChannelFuture;
pop
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/netty/handler/proxy/ProxyHandler;
0 5 1 cause Ljava/lang/Throwable;
MethodParameters:
Name Flags
cause
private void cancelConnectTimeoutFuture();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.handler.proxy.ProxyHandler.connectTimeoutFuture:Lio/netty/util/concurrent/ScheduledFuture;
ifnull 3
1: aload 0
getfield io.netty.handler.proxy.ProxyHandler.connectTimeoutFuture:Lio/netty/util/concurrent/ScheduledFuture;
iconst_0
invokeinterface io.netty.util.concurrent.ScheduledFuture.cancel:(Z)Z
pop
2: aload 0
aconst_null
putfield io.netty.handler.proxy.ProxyHandler.connectTimeoutFuture:Lio/netty/util/concurrent/ScheduledFuture;
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/netty/handler/proxy/ProxyHandler;
protected final java.lang.String exceptionMessage(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: ldc ""
astore 1
2: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
sipush 128
aload 1
invokevirtual java.lang.String.length:()I
iadd
invokespecial java.lang.StringBuilder.<init>:(I)V
3: aload 0
invokevirtual io.netty.handler.proxy.ProxyHandler.protocol:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
4: ldc ", "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
5: aload 0
invokevirtual io.netty.handler.proxy.ProxyHandler.authScheme:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
6: ldc ", "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
7: aload 0
getfield io.netty.handler.proxy.ProxyHandler.proxyAddress:Ljava/net/SocketAddress;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
8: ldc " => "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
9: aload 0
getfield io.netty.handler.proxy.ProxyHandler.destinationAddress:Ljava/net/SocketAddress;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
10: astore 2
start local 2 11: aload 1
invokevirtual java.lang.String.isEmpty:()Z
ifne 13
12: aload 2
ldc ", "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
13: StackMap locals: java.lang.StringBuilder
StackMap stack:
aload 2
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lio/netty/handler/proxy/ProxyHandler;
0 14 1 msg Ljava/lang/String;
11 14 2 buf Ljava/lang/StringBuilder;
MethodParameters:
Name Flags
msg
public final void channelReadComplete(io.netty.channel.ChannelHandlerContext);
descriptor: (Lio/netty/channel/ChannelHandlerContext;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.netty.handler.proxy.ProxyHandler.suppressChannelReadComplete:Z
ifeq 4
1: aload 0
iconst_0
putfield io.netty.handler.proxy.ProxyHandler.suppressChannelReadComplete:Z
2: aload 1
invokestatic io.netty.handler.proxy.ProxyHandler.readIfNeeded:(Lio/netty/channel/ChannelHandlerContext;)V
3: goto 5
4: StackMap locals:
StackMap stack:
aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.fireChannelReadComplete:()Lio/netty/channel/ChannelHandlerContext;
pop
5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/netty/handler/proxy/ProxyHandler;
0 6 1 ctx Lio/netty/channel/ChannelHandlerContext;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
public final void write(io.netty.channel.ChannelHandlerContext, java.lang.Object, io.netty.channel.ChannelPromise);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Lio/netty/channel/ChannelPromise;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield io.netty.handler.proxy.ProxyHandler.finished:Z
ifeq 4
1: aload 0
invokevirtual io.netty.handler.proxy.ProxyHandler.writePendingWrites:()V
2: aload 1
aload 2
aload 3
invokeinterface io.netty.channel.ChannelHandlerContext.write:(Ljava/lang/Object;Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture;
pop
3: goto 5
4: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
aload 3
invokevirtual io.netty.handler.proxy.ProxyHandler.addPendingWrite:(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Lio/netty/channel/ChannelPromise;)V
5: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/netty/handler/proxy/ProxyHandler;
0 6 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 6 2 msg Ljava/lang/Object;
0 6 3 promise Lio/netty/channel/ChannelPromise;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
msg
promise
public final void flush(io.netty.channel.ChannelHandlerContext);
descriptor: (Lio/netty/channel/ChannelHandlerContext;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.netty.handler.proxy.ProxyHandler.finished:Z
ifeq 4
1: aload 0
invokevirtual io.netty.handler.proxy.ProxyHandler.writePendingWrites:()V
2: aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.flush:()Lio/netty/channel/ChannelHandlerContext;
pop
3: goto 5
4: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield io.netty.handler.proxy.ProxyHandler.flushedPrematurely:Z
5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/netty/handler/proxy/ProxyHandler;
0 6 1 ctx Lio/netty/channel/ChannelHandlerContext;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
private static void readIfNeeded(io.netty.channel.ChannelHandlerContext);
descriptor: (Lio/netty/channel/ChannelHandlerContext;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokeinterface io.netty.channel.ChannelHandlerContext.channel:()Lio/netty/channel/Channel;
invokeinterface io.netty.channel.Channel.config:()Lio/netty/channel/ChannelConfig;
invokeinterface io.netty.channel.ChannelConfig.isAutoRead:()Z
ifne 2
1: aload 0
invokeinterface io.netty.channel.ChannelHandlerContext.read:()Lio/netty/channel/ChannelHandlerContext;
pop
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 ctx Lio/netty/channel/ChannelHandlerContext;
MethodParameters:
Name Flags
ctx
private void writePendingWrites();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.handler.proxy.ProxyHandler.pendingWrites:Lio/netty/channel/PendingWriteQueue;
ifnull 3
1: aload 0
getfield io.netty.handler.proxy.ProxyHandler.pendingWrites:Lio/netty/channel/PendingWriteQueue;
invokevirtual io.netty.channel.PendingWriteQueue.removeAndWriteAll:()Lio/netty/channel/ChannelFuture;
pop
2: aload 0
aconst_null
putfield io.netty.handler.proxy.ProxyHandler.pendingWrites:Lio/netty/channel/PendingWriteQueue;
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/netty/handler/proxy/ProxyHandler;
private void failPendingWrites(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.netty.handler.proxy.ProxyHandler.pendingWrites:Lio/netty/channel/PendingWriteQueue;
ifnull 3
1: aload 0
getfield io.netty.handler.proxy.ProxyHandler.pendingWrites:Lio/netty/channel/PendingWriteQueue;
aload 1
invokevirtual io.netty.channel.PendingWriteQueue.removeAndFailAll:(Ljava/lang/Throwable;)V
2: aload 0
aconst_null
putfield io.netty.handler.proxy.ProxyHandler.pendingWrites:Lio/netty/channel/PendingWriteQueue;
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/netty/handler/proxy/ProxyHandler;
0 4 1 cause Ljava/lang/Throwable;
MethodParameters:
Name Flags
cause
private void addPendingWrite(io.netty.channel.ChannelHandlerContext, java.lang.Object, io.netty.channel.ChannelPromise);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Lio/netty/channel/ChannelPromise;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield io.netty.handler.proxy.ProxyHandler.pendingWrites:Lio/netty/channel/PendingWriteQueue;
astore 4
start local 4 1: aload 4
ifnonnull 3
2: aload 0
new io.netty.channel.PendingWriteQueue
dup
aload 1
invokespecial io.netty.channel.PendingWriteQueue.<init>:(Lio/netty/channel/ChannelHandlerContext;)V
dup
astore 4
putfield io.netty.handler.proxy.ProxyHandler.pendingWrites:Lio/netty/channel/PendingWriteQueue;
3: StackMap locals: io.netty.channel.PendingWriteQueue
StackMap stack:
aload 4
aload 2
aload 3
invokevirtual io.netty.channel.PendingWriteQueue.add:(Ljava/lang/Object;Lio/netty/channel/ChannelPromise;)V
4: return
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/ProxyHandler;
0 5 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 5 2 msg Ljava/lang/Object;
0 5 3 promise Lio/netty/channel/ChannelPromise;
1 5 4 pendingWrites Lio/netty/channel/PendingWriteQueue;
MethodParameters:
Name Flags
ctx
msg
promise
}
SourceFile: "ProxyHandler.java"
NestMembers:
io.netty.handler.proxy.ProxyHandler$1 io.netty.handler.proxy.ProxyHandler$2 io.netty.handler.proxy.ProxyHandler$LazyChannelPromise
InnerClasses:
io.netty.handler.proxy.ProxyHandler$1
io.netty.handler.proxy.ProxyHandler$2
private final LazyChannelPromise = io.netty.handler.proxy.ProxyHandler$LazyChannelPromise of io.netty.handler.proxy.ProxyHandler