Class Http2JDKAlpnSupport
java.lang.Object
org.apache.pekko.http.impl.engine.http2.Http2JDKAlpnSupport
INTERNAL API
The actual implementation of ALPN support on supported JDKs. We rely on lazy class loading to not fail with class loading errors when ALPN support is missing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
applySessionParameters
(SSLEngine engine, org.apache.pekko.stream.TLSProtocol.NegotiateNewSession sessionParameters) static void
clientSetApplicationProtocols
(SSLEngine engine, String[] protocols) static SSLEngine
jdkAlpnSupport
(SSLEngine engine, scala.Function1<String, scala.runtime.BoxedUnit> setChosenProtocol)
-
Constructor Details
-
Http2JDKAlpnSupport
public Http2JDKAlpnSupport()
-
-
Method Details
-
jdkAlpnSupport
-
applySessionParameters
public static void applySessionParameters(SSLEngine engine, org.apache.pekko.stream.TLSProtocol.NegotiateNewSession sessionParameters) -
clientSetApplicationProtocols
-