public class Http2AlpnSupport
extends java.lang.Object
Will add support to an engine either using jetty alpn or using netty APIs (later).
Constructor and Description |
---|
Http2AlpnSupport() |
Modifier and Type | Method and Description |
---|---|
static void |
clientSetApplicationProtocols(javax.net.ssl.SSLEngine engine,
java.lang.String[] protocols) |
static javax.net.ssl.SSLEngine |
enableForServer(javax.net.ssl.SSLEngine engine,
scala.Function1<java.lang.String,scala.runtime.BoxedUnit> setChosenProtocol)
Enables server-side Http/2 ALPN support for the given engine.
|
static java.lang.String |
H2() |
static java.lang.String |
HTTP11() |
public static java.lang.String H2()
public static java.lang.String HTTP11()
public static javax.net.ssl.SSLEngine enableForServer(javax.net.ssl.SSLEngine engine, scala.Function1<java.lang.String,scala.runtime.BoxedUnit> setChosenProtocol)
engine
- (undocumented)setChosenProtocol
- (undocumented)public static void clientSetApplicationProtocols(javax.net.ssl.SSLEngine engine, java.lang.String[] protocols)