use of io.undertow.protocols.alpn.JettyAlpnProvider in project undertow by undertow-io.
the class DefaultServer method isAlpnEnabled.
private static boolean isAlpnEnabled() {
if (alpnEnabled == null) {
SSLEngine engine = getServerSslContext().createSSLEngine();
ALPNProvider provider = ALPNManager.INSTANCE.getProvider(engine);
if (provider instanceof JettyAlpnProvider) {
alpnEnabled = System.getProperty("alpn-boot-string") != null;
} else {
alpnEnabled = provider != null;
}
}
return alpnEnabled;
}
Aggregations