final class io.netty.resolver.dns.DnsNameResolver$DnsResponseHandler extends io.netty.channel.ChannelInboundHandlerAdapter
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: io.netty.resolver.dns.DnsNameResolver$DnsResponseHandler
super_class: io.netty.channel.ChannelInboundHandlerAdapter
{
private final io.netty.util.concurrent.Promise<io.netty.channel.Channel> channelActivePromise;
descriptor: Lio/netty/util/concurrent/Promise;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lio/netty/util/concurrent/Promise<Lio/netty/channel/Channel;>;
final io.netty.resolver.dns.DnsNameResolver this$0;
descriptor: Lio/netty/resolver/dns/DnsNameResolver;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>(io.netty.util.concurrent.Promise<io.netty.channel.Channel>);
descriptor: (Lio/netty/resolver/dns/DnsNameResolver;Lio/netty/util/concurrent/Promise;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 2 0: aload 0
aload 1
putfield io.netty.resolver.dns.DnsNameResolver$DnsResponseHandler.this$0:Lio/netty/resolver/dns/DnsNameResolver;
aload 0
invokespecial io.netty.channel.ChannelInboundHandlerAdapter.<init>:()V
1: aload 0
aload 2
putfield io.netty.resolver.dns.DnsNameResolver$DnsResponseHandler.channelActivePromise:Lio/netty/util/concurrent/Promise;
2: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/netty/resolver/dns/DnsNameResolver$DnsResponseHandler;
0 3 2 channelActivePromise Lio/netty/util/concurrent/Promise<Lio/netty/channel/Channel;>;
Signature: (Lio/netty/util/concurrent/Promise<Lio/netty/channel/Channel;>;)V
MethodParameters:
Name Flags
this$0 final
channelActivePromise
public void channelRead(io.netty.channel.ChannelHandlerContext, java.lang.Object);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 2
checkcast io.netty.handler.codec.dns.DatagramDnsResponse
astore 3
start local 3 1: aload 3
invokevirtual io.netty.handler.codec.dns.DatagramDnsResponse.id:()I
istore 4
start local 4 2: getstatic io.netty.resolver.dns.DnsNameResolver.logger:Lio/netty/util/internal/logging/InternalLogger;
invokeinterface io.netty.util.internal.logging.InternalLogger.isDebugEnabled:()Z
ifeq 4
3: getstatic io.netty.resolver.dns.DnsNameResolver.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "{} RECEIVED: [{}: {}], {}"
iconst_4
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield io.netty.resolver.dns.DnsNameResolver$DnsResponseHandler.this$0:Lio/netty/resolver/dns/DnsNameResolver;
getfield io.netty.resolver.dns.DnsNameResolver.ch:Lio/netty/channel/socket/DatagramChannel;
aastore
dup
iconst_1
iload 4
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
aload 3
invokevirtual io.netty.handler.codec.dns.DatagramDnsResponse.sender:()Ljava/net/InetSocketAddress;
aastore
dup
iconst_3
aload 3
aastore
invokeinterface io.netty.util.internal.logging.InternalLogger.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
4: StackMap locals: io.netty.handler.codec.dns.DatagramDnsResponse int
StackMap stack:
aload 0
getfield io.netty.resolver.dns.DnsNameResolver$DnsResponseHandler.this$0:Lio/netty/resolver/dns/DnsNameResolver;
getfield io.netty.resolver.dns.DnsNameResolver.queryContextManager:Lio/netty/resolver/dns/DnsQueryContextManager;
aload 3
invokevirtual io.netty.handler.codec.dns.DatagramDnsResponse.sender:()Ljava/net/InetSocketAddress;
iload 4
invokevirtual io.netty.resolver.dns.DnsQueryContextManager.get:(Ljava/net/InetSocketAddress;I)Lio/netty/resolver/dns/DnsQueryContext;
astore 5
start local 5 5: aload 5
ifnonnull 9
6: getstatic io.netty.resolver.dns.DnsNameResolver.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "{} Received a DNS response with an unknown ID: {}"
aload 0
getfield io.netty.resolver.dns.DnsNameResolver$DnsResponseHandler.this$0:Lio/netty/resolver/dns/DnsNameResolver;
getfield io.netty.resolver.dns.DnsNameResolver.ch:Lio/netty/channel/socket/DatagramChannel;
iload 4
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface io.netty.util.internal.logging.InternalLogger.warn:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
7: aload 2
invokestatic io.netty.util.ReferenceCountUtil.safeRelease:(Ljava/lang/Object;)V
8: return
9: StackMap locals: io.netty.resolver.dns.DnsQueryContext
StackMap stack:
aload 5
aload 3
invokevirtual io.netty.resolver.dns.DnsQueryContext.finish:(Lio/netty/channel/AddressedEnvelope;)V
end local 5 end local 4 end local 3 10: goto 14
StackMap locals: io.netty.resolver.dns.DnsNameResolver$DnsResponseHandler io.netty.channel.ChannelHandlerContext java.lang.Object
StackMap stack: java.lang.Throwable
11: astore 6
12: aload 2
invokestatic io.netty.util.ReferenceCountUtil.safeRelease:(Ljava/lang/Object;)V
13: aload 6
athrow
14: StackMap locals:
StackMap stack:
aload 2
invokestatic io.netty.util.ReferenceCountUtil.safeRelease:(Ljava/lang/Object;)V
15: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lio/netty/resolver/dns/DnsNameResolver$DnsResponseHandler;
0 16 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 16 2 msg Ljava/lang/Object;
1 10 3 res Lio/netty/handler/codec/dns/DatagramDnsResponse;
2 10 4 queryId I
5 10 5 qCtx Lio/netty/resolver/dns/DnsQueryContext;
Exception table:
from to target type
0 7 11 any
9 11 11 any
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
msg
public void channelActive(io.netty.channel.ChannelHandlerContext);
descriptor: (Lio/netty/channel/ChannelHandlerContext;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial io.netty.channel.ChannelInboundHandlerAdapter.channelActive:(Lio/netty/channel/ChannelHandlerContext;)V
1: aload 0
getfield io.netty.resolver.dns.DnsNameResolver$DnsResponseHandler.channelActivePromise:Lio/netty/util/concurrent/Promise;
aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.channel:()Lio/netty/channel/Channel;
invokeinterface io.netty.util.concurrent.Promise.setSuccess:(Ljava/lang/Object;)Lio/netty/util/concurrent/Promise;
pop
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/netty/resolver/dns/DnsNameResolver$DnsResponseHandler;
0 3 1 ctx Lio/netty/channel/ChannelHandlerContext;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
public void exceptionCaught(io.netty.channel.ChannelHandlerContext, java.lang.Throwable);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Throwable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: getstatic io.netty.resolver.dns.DnsNameResolver.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "{} Unexpected exception: "
aload 0
getfield io.netty.resolver.dns.DnsNameResolver$DnsResponseHandler.this$0:Lio/netty/resolver/dns/DnsNameResolver;
getfield io.netty.resolver.dns.DnsNameResolver.ch:Lio/netty/channel/socket/DatagramChannel;
aload 2
invokeinterface io.netty.util.internal.logging.InternalLogger.warn:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/resolver/dns/DnsNameResolver$DnsResponseHandler;
0 2 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 2 2 cause Ljava/lang/Throwable;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
cause
}
SourceFile: "DnsNameResolver.java"
NestHost: io.netty.resolver.dns.DnsNameResolver
InnerClasses:
private final DnsResponseHandler = io.netty.resolver.dns.DnsNameResolver$DnsResponseHandler of io.netty.resolver.dns.DnsNameResolver