Package org.glassfish.grizzly.sni
Interface SNIClientConfigResolver
public interface SNIClientConfigResolver
The client-side SNI config resolver, which could be used to customize
SNI host name sent from client to server.
By default the host name is based on
Connection.getPeerAddress() value,
particularly for TCP connections the default value will be based on
InetSocketAddress.getHostString(). But SNIClientConfigResolver
allows you to customize the default host name value.- Author:
- Alexey Stashok
-
Method Summary
-
Method Details
-
resolve
ReturnsSNIConfigfor the newConnection,nullvalue means no SNI information will be sent. TheSNIConfigcould be created like:SNIConfig.clientConfigBuilder() .host("myhost.com") .sslEngineConfigurator(myHostSSLEngineConfigurator) .build();- Parameters:
connection-- Returns:
SNIConfigfor the newConnection,nullvalue means no SNI information will be sent
-