Top Description Methods
org.glassfish.grizzly.sni

public Interface SNIClientConfigResolver

Imports
java.net.InetSocketAddress, org.glassfish.grizzly.Connection

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

Modifier and TypeMethod and Description
public SNIConfig

Returns:

SNIConfig for the new Connection, null value means no SNI information will be sent
resolve
(Connection<L> connection)

Returns SNIConfig for the new Connection, null value means no SNI information will be sent.

Method Detail

resolveback to summary
public SNIConfig resolve(Connection<L> connection)

Returns 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();

Returns:SNIConfig

SNIConfig for the new Connection, null value means no SNI information will be sent