Package org.glassfish.grizzly.sni
Interface SNIClientConfigResolver
-
public interface SNIClientConfigResolverThe 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 onConnection.getPeerAddress()value, particularly for TCP connections the default value will be based onInetSocketAddress.getHostString(). ButSNIClientConfigResolverallows you to customize the default host name value.- Author:
- Alexey Stashok
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SNIConfigresolve(org.glassfish.grizzly.Connection connection)
-
-
-
Method Detail
-
resolve
SNIConfig resolve(org.glassfish.grizzly.Connection connection)
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
-
-