Example usage for io.vertx.core.net JdkSSLEngineOptions isAlpnAvailable

List of usage examples for io.vertx.core.net JdkSSLEngineOptions isAlpnAvailable

Introduction

In this page you can find the example usage for io.vertx.core.net JdkSSLEngineOptions isAlpnAvailable.

Prototype

public static synchronized boolean isAlpnAvailable() 

Source Link

Usage

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;
}