List of usage examples for io.vertx.core.net JdkSSLEngineOptions isAlpnAvailable
public static synchronized boolean isAlpnAvailable()
From source file:io.apiman.test.common.echo.EchoServerVertx.java
License:Apache License
private HttpServerOptions getHttpServerOptions(String name) { HttpServerOptions options = new HttpServerOptions(); HttpServerOptionsConverter.fromJson(config().getJsonObject(name, new JsonObject()), options); if (JdkSSLEngineOptions.isAlpnAvailable()) { options.setUseAlpn(true);/*from ww w .ja v a 2s .co m*/ } return options; }