Class ServerH2UpgradeHandler
java.lang.Object
org.apache.hc.core5.http2.impl.nio.ServerH2UpgradeHandler
- All Implemented Interfaces:
ProtocolUpgradeHandler
@Contract(threading=IMMUTABLE_CONDITIONAL)
@Internal
public class ServerH2UpgradeHandler
extends Object
implements ProtocolUpgradeHandler
Protocol upgrade handler that upgrades the underlying
ProtocolIOSession
to HTTP/2 in case of a successful protocol negotiation.- Since:
- 5.2
-
Constructor Summary
ConstructorsConstructorDescriptionServerH2UpgradeHandler(ServerH2StreamMultiplexerFactory http2StreamHandlerFactory, Callback<Exception> exceptionCallback) -
Method Summary
Modifier and TypeMethodDescriptionvoidupgrade(ProtocolIOSession ioSession, FutureCallback<ProtocolIOSession> callback)
-
Constructor Details
-
ServerH2UpgradeHandler
public ServerH2UpgradeHandler(ServerH2StreamMultiplexerFactory http2StreamHandlerFactory, Callback<Exception> exceptionCallback)
-
-
Method Details
-
upgrade
- Specified by:
upgradein interfaceProtocolUpgradeHandler
-