public interface SNIClientConfigResolver
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.| Modifier and Type | Method and Description |
|---|---|
SNIConfig |
resolve(org.glassfish.grizzly.Connection connection)
|
SNIConfig resolve(org.glassfish.grizzly.Connection connection)
SNIConfig for the new Connection, null
value means no SNI information will be sent.
The SNIConfig could be created like:
SNIConfig.clientConfigBuilder()
.host("myhost.com")
.sslEngineConfigurator(myHostSSLEngineConfigurator)
.build();
connection - SNIConfig for the new Connection, null
value means no SNI information will be sentCopyright © 2020 Oracle Corporation. All Rights Reserved.