public class io.netty.handler.ssl.SniHandler extends io.netty.handler.ssl.AbstractSniHandler<io.netty.handler.ssl.SslContext>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.netty.handler.ssl.SniHandler
super_class: io.netty.handler.ssl.AbstractSniHandler
{
private static final io.netty.handler.ssl.SniHandler$Selection EMPTY_SELECTION;
descriptor: Lio/netty/handler/ssl/SniHandler$Selection;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
protected final io.netty.util.AsyncMapping<java.lang.String, io.netty.handler.ssl.SslContext> mapping;
descriptor: Lio/netty/util/AsyncMapping;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Signature: Lio/netty/util/AsyncMapping<Ljava/lang/String;Lio/netty/handler/ssl/SslContext;>;
private volatile io.netty.handler.ssl.SniHandler$Selection selection;
descriptor: Lio/netty/handler/ssl/SniHandler$Selection;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: new io.netty.handler.ssl.SniHandler$Selection
dup
aconst_null
aconst_null
invokespecial io.netty.handler.ssl.SniHandler$Selection.<init>:(Lio/netty/handler/ssl/SslContext;Ljava/lang/String;)V
putstatic io.netty.handler.ssl.SniHandler.EMPTY_SELECTION:Lio/netty/handler/ssl/SniHandler$Selection;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(io.netty.util.Mapping<? super java.lang.String, ? extends io.netty.handler.ssl.SslContext>);
descriptor: (Lio/netty/util/Mapping;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new io.netty.handler.ssl.SniHandler$AsyncMappingAdapter
dup
aload 1
invokespecial io.netty.handler.ssl.SniHandler$AsyncMappingAdapter.<init>:(Lio/netty/util/Mapping;)V
invokespecial io.netty.handler.ssl.SniHandler.<init>:(Lio/netty/util/AsyncMapping;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/handler/ssl/SniHandler;
0 2 1 mapping Lio/netty/util/Mapping<-Ljava/lang/String;+Lio/netty/handler/ssl/SslContext;>;
Signature: (Lio/netty/util/Mapping<-Ljava/lang/String;+Lio/netty/handler/ssl/SslContext;>;)V
MethodParameters:
Name Flags
mapping
public void <init>(io.netty.util.DomainNameMapping<? extends io.netty.handler.ssl.SslContext>);
descriptor: (Lio/netty/util/DomainNameMapping;)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.handler.ssl.SniHandler.<init>:(Lio/netty/util/Mapping;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/handler/ssl/SniHandler;
0 2 1 mapping Lio/netty/util/DomainNameMapping<+Lio/netty/handler/ssl/SslContext;>;
Signature: (Lio/netty/util/DomainNameMapping<+Lio/netty/handler/ssl/SslContext;>;)V
MethodParameters:
Name Flags
mapping
public void <init>(io.netty.util.AsyncMapping<? super java.lang.String, ? extends io.netty.handler.ssl.SslContext>);
descriptor: (Lio/netty/util/AsyncMapping;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial io.netty.handler.ssl.AbstractSniHandler.<init>:()V
1: aload 0
getstatic io.netty.handler.ssl.SniHandler.EMPTY_SELECTION:Lio/netty/handler/ssl/SniHandler$Selection;
putfield io.netty.handler.ssl.SniHandler.selection:Lio/netty/handler/ssl/SniHandler$Selection;
2: aload 0
aload 1
ldc "mapping"
invokestatic io.netty.util.internal.ObjectUtil.checkNotNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
checkcast io.netty.util.AsyncMapping
putfield io.netty.handler.ssl.SniHandler.mapping:Lio/netty/util/AsyncMapping;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/netty/handler/ssl/SniHandler;
0 4 1 mapping Lio/netty/util/AsyncMapping<-Ljava/lang/String;+Lio/netty/handler/ssl/SslContext;>;
Signature: (Lio/netty/util/AsyncMapping<-Ljava/lang/String;+Lio/netty/handler/ssl/SslContext;>;)V
MethodParameters:
Name Flags
mapping
public java.lang.String hostname();
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.ssl.SniHandler.selection:Lio/netty/handler/ssl/SniHandler$Selection;
getfield io.netty.handler.ssl.SniHandler$Selection.hostname:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/ssl/SniHandler;
public io.netty.handler.ssl.SslContext sslContext();
descriptor: ()Lio/netty/handler/ssl/SslContext;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.handler.ssl.SniHandler.selection:Lio/netty/handler/ssl/SniHandler$Selection;
getfield io.netty.handler.ssl.SniHandler$Selection.context:Lio/netty/handler/ssl/SslContext;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/ssl/SniHandler;
protected io.netty.util.concurrent.Future<io.netty.handler.ssl.SslContext> lookup(io.netty.channel.ChannelHandlerContext, java.lang.String);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Ljava/lang/String;)Lio/netty/util/concurrent/Future;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield io.netty.handler.ssl.SniHandler.mapping:Lio/netty/util/AsyncMapping;
aload 2
aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.executor:()Lio/netty/util/concurrent/EventExecutor;
invokeinterface io.netty.util.concurrent.EventExecutor.newPromise:()Lio/netty/util/concurrent/Promise;
invokeinterface io.netty.util.AsyncMapping.map:(Ljava/lang/Object;Lio/netty/util/concurrent/Promise;)Lio/netty/util/concurrent/Future;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/ssl/SniHandler;
0 1 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 1 2 hostname Ljava/lang/String;
Exceptions:
throws java.lang.Exception
Signature: (Lio/netty/channel/ChannelHandlerContext;Ljava/lang/String;)Lio/netty/util/concurrent/Future<Lio/netty/handler/ssl/SslContext;>;
MethodParameters:
Name Flags
ctx
hostname
protected final void onLookupComplete(io.netty.channel.ChannelHandlerContext, java.lang.String, io.netty.util.concurrent.Future<io.netty.handler.ssl.SslContext>);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Ljava/lang/String;Lio/netty/util/concurrent/Future;)V
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=5, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
invokeinterface io.netty.util.concurrent.Future.isSuccess:()Z
ifne 5
1: aload 3
invokeinterface io.netty.util.concurrent.Future.cause:()Ljava/lang/Throwable;
astore 4
start local 4 2: aload 4
instanceof java.lang.Error
ifeq 4
3: aload 4
checkcast java.lang.Error
athrow
4: StackMap locals: java.lang.Throwable
StackMap stack:
new io.netty.handler.codec.DecoderException
dup
new java.lang.StringBuilder
dup
ldc "failed to get the SslContext for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 4
invokespecial io.netty.handler.codec.DecoderException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 5: StackMap locals:
StackMap stack:
aload 3
invokeinterface io.netty.util.concurrent.Future.getNow:()Ljava/lang/Object;
checkcast io.netty.handler.ssl.SslContext
astore 4
start local 4 6: aload 0
new io.netty.handler.ssl.SniHandler$Selection
dup
aload 4
aload 2
invokespecial io.netty.handler.ssl.SniHandler$Selection.<init>:(Lio/netty/handler/ssl/SslContext;Ljava/lang/String;)V
putfield io.netty.handler.ssl.SniHandler.selection:Lio/netty/handler/ssl/SniHandler$Selection;
7: aload 0
aload 1
aload 2
aload 4
invokevirtual io.netty.handler.ssl.SniHandler.replaceHandler:(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/String;Lio/netty/handler/ssl/SslContext;)V
8: goto 12
StackMap locals: io.netty.handler.ssl.SniHandler io.netty.channel.ChannelHandlerContext java.lang.String io.netty.util.concurrent.Future io.netty.handler.ssl.SslContext
StackMap stack: java.lang.Throwable
9: astore 5
start local 5 10: aload 0
getstatic io.netty.handler.ssl.SniHandler.EMPTY_SELECTION:Lio/netty/handler/ssl/SniHandler$Selection;
putfield io.netty.handler.ssl.SniHandler.selection:Lio/netty/handler/ssl/SniHandler$Selection;
11: aload 5
invokestatic io.netty.util.internal.PlatformDependent.throwException:(Ljava/lang/Throwable;)V
end local 5 12: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lio/netty/handler/ssl/SniHandler;
0 13 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 13 2 hostname Ljava/lang/String;
0 13 3 future Lio/netty/util/concurrent/Future<Lio/netty/handler/ssl/SslContext;>;
2 5 4 cause Ljava/lang/Throwable;
6 13 4 sslContext Lio/netty/handler/ssl/SslContext;
10 12 5 cause Ljava/lang/Throwable;
Exception table:
from to target type
7 8 9 Class java.lang.Throwable
Exceptions:
throws java.lang.Exception
Signature: (Lio/netty/channel/ChannelHandlerContext;Ljava/lang/String;Lio/netty/util/concurrent/Future<Lio/netty/handler/ssl/SslContext;>;)V
MethodParameters:
Name Flags
ctx
hostname
future
protected void replaceHandler(io.netty.channel.ChannelHandlerContext, java.lang.String, io.netty.handler.ssl.SslContext);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Ljava/lang/String;Lio/netty/handler/ssl/SslContext;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aconst_null
astore 4
start local 4 1: aload 3
aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.alloc:()Lio/netty/buffer/ByteBufAllocator;
invokevirtual io.netty.handler.ssl.SslContext.newHandler:(Lio/netty/buffer/ByteBufAllocator;)Lio/netty/handler/ssl/SslHandler;
astore 4
2: aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.pipeline:()Lio/netty/channel/ChannelPipeline;
aload 0
ldc Lio/netty/handler/ssl/SslHandler;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
aload 4
invokeinterface io.netty.channel.ChannelPipeline.replace:(Lio/netty/channel/ChannelHandler;Ljava/lang/String;Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline;
pop
3: aconst_null
astore 4
4: goto 9
StackMap locals: io.netty.handler.ssl.SniHandler io.netty.channel.ChannelHandlerContext java.lang.String io.netty.handler.ssl.SslContext io.netty.handler.ssl.SslHandler
StackMap stack: java.lang.Throwable
5: astore 5
6: aload 4
ifnull 8
7: aload 4
invokevirtual io.netty.handler.ssl.SslHandler.engine:()Ljavax/net/ssl/SSLEngine;
invokestatic io.netty.util.ReferenceCountUtil.safeRelease:(Ljava/lang/Object;)V
8: StackMap locals: java.lang.Throwable
StackMap stack:
aload 5
athrow
9: StackMap locals:
StackMap stack:
aload 4
ifnull 11
10: aload 4
invokevirtual io.netty.handler.ssl.SslHandler.engine:()Ljavax/net/ssl/SSLEngine;
invokestatic io.netty.util.ReferenceCountUtil.safeRelease:(Ljava/lang/Object;)V
11: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lio/netty/handler/ssl/SniHandler;
0 12 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 12 2 hostname Ljava/lang/String;
0 12 3 sslContext Lio/netty/handler/ssl/SslContext;
1 12 4 sslHandler Lio/netty/handler/ssl/SslHandler;
Exception table:
from to target type
1 5 5 any
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
hostname
sslContext
}
Signature: Lio/netty/handler/ssl/AbstractSniHandler<Lio/netty/handler/ssl/SslContext;>;
SourceFile: "SniHandler.java"
NestMembers:
io.netty.handler.ssl.SniHandler$AsyncMappingAdapter io.netty.handler.ssl.SniHandler$Selection
InnerClasses:
private final AsyncMappingAdapter = io.netty.handler.ssl.SniHandler$AsyncMappingAdapter of io.netty.handler.ssl.SniHandler
private final Selection = io.netty.handler.ssl.SniHandler$Selection of io.netty.handler.ssl.SniHandler