Top Description Inners Fields Constructors Methods
reactor.netty5.tcp

pack-priv final Class SniProvider

extends Object
Class Inheritance
Imports
io.netty5.channel.Channel, .ChannelHandlerContext, .ChannelPipeline, io.netty5.handler.codec.DecoderException, io.netty5.handler.ssl.AbstractSniHandler, .SslHandler, io.netty5.util.AsyncMapping, .DomainWildcardMappingBuilder, .Mapping, .ReferenceCountUtil, io.netty5.util.concurrent.Future, .Promise, io.netty5.util.internal.PlatformDependent, reactor.netty5.NettyPipeline, java.util.Map

An SniProvider to configure the channel pipeline in order to support server SNI
Author
Violeta Georgieva
Since
1.0.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
pack-priv final AsyncMapping<String, SslProvider>

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv
SniProvider(Map<String, SslProvider> confPerDomainName, SslProvider defaultSslProvider)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
addSniHandler(Channel
the channel
channel
,
boolean
if true SSL debugging on the server side will be enabled
sslDebug
)

Adds configured SniHandler to the channel pipeline.

pack-priv SniProvider.SniHandler
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

mappingsback to summary
pack-priv final AsyncMapping<String, SslProvider> mappings

Constructor Detail

SniProviderback to summary
pack-priv SniProvider(AsyncMapping<String, SslProvider> mappings)
SniProviderback to summary
pack-priv SniProvider(Map<String, SslProvider> confPerDomainName, SslProvider defaultSslProvider)

Method Detail

addSniHandlerback to summary
pack-priv void addSniHandler(Channel channel, boolean sslDebug)

Adds configured SniHandler to the channel pipeline.

Parameters
channel:Channel

the channel

sslDebug:boolean

if true SSL debugging on the server side will be enabled

newSniHandlerback to summary
pack-priv SniProvider.SniHandler newSniHandler()
reactor.netty5.tcp back to summary

pack-priv final Class SniProvider.AsyncMappingAdapter

extends Object
implements AsyncMapping<String, SslProvider>
Class Inheritance
All Implemented Interfaces
io.netty5.util.AsyncMapping

Field Summary

Modifier and TypeField and Description
pack-priv final Mapping<String, SslProvider>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Future<SslProvider>
map(String input, Promise<SslProvider> promise)

Implements io.netty5.util.AsyncMapping.map.

Returns the Future that will provide the result of the mapping.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

mappingback to summary
pack-priv final Mapping<String, SslProvider> mapping

Constructor Detail

AsyncMappingAdapterback to summary
pack-priv AsyncMappingAdapter(Mapping<String, SslProvider> mapping)

Method Detail

mapback to summary
public Future<SslProvider> map(String input, Promise<SslProvider> promise)

Implements io.netty5.util.AsyncMapping.map.

Doc from io.netty5.util.AsyncMapping.map.

Returns the Future that will provide the result of the mapping. The given Promise will be fulfilled when the result is available.

Annotations
@Override
reactor.netty5.tcp back to summary

pack-priv final Class SniProvider.SniHandler

extends AbstractSniHandler<SslProvider>
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final AsyncMapping<String, SslProvider>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected Future<SslProvider>
lookup(ChannelHandlerContext ctx, String hostname)

Implements abstract io.netty5.handler.ssl.AbstractSniHandler.lookup.

Kicks off a lookup for the given SNI value and returns a Future which in turn will notify the onLookupComplete(ChannelHandlerContext, String, Future) on completion.
protected void
Inherited from io.netty5.handler.ssl.AbstractSniHandler:
lookuponLookupComplete

Field Detail

mappingsback to summary
pack-priv final AsyncMapping<String, SslProvider> mappings

Constructor Detail

SniHandlerback to summary
pack-priv SniHandler(AsyncMapping<String, SslProvider> mappings)

Method Detail

lookupback to summary
protected Future<SslProvider> lookup(ChannelHandlerContext ctx, String hostname)

Implements abstract io.netty5.handler.ssl.AbstractSniHandler.lookup.

Doc from io.netty5.handler.ssl.AbstractSniHandler.lookup.

Kicks off a lookup for the given SNI value and returns a Future which in turn will notify the onLookupComplete(ChannelHandlerContext, String, Future) on completion.

Annotations
@Override
onLookupCompleteback to summary
protected void onLookupComplete(ChannelHandlerContext ctx, String hostname, Future<? extends SslProvider> future)

Implements abstract io.netty5.handler.ssl.AbstractSniHandler.onLookupComplete.

Doc from io.netty5.handler.ssl.AbstractSniHandler.onLookupComplete.

Called upon completion of the lookup(ChannelHandlerContext, String) Future.

Annotations
@Override