Class ClientH2UpgradeHandler
java.lang.Object
org.apache.hc.core5.http2.impl.nio.ClientH2UpgradeHandler
- All Implemented Interfaces:
ProtocolUpgradeHandler
@Contract(threading=IMMUTABLE_CONDITIONAL)
@Internal
public class ClientH2UpgradeHandler
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
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClientH2UpgradeHandler
(ClientH2StreamMultiplexerFactory http2StreamHandlerFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
upgrade
(ProtocolIOSession ioSession, FutureCallback<ProtocolIOSession> callback) Upgrades application protocol of the given I/O session.
-
Field Details
-
http2StreamHandlerFactory
-
-
Constructor Details
-
ClientH2UpgradeHandler
-
-
Method Details
-
upgrade
Description copied from interface:ProtocolUpgradeHandler
Upgrades application protocol of the given I/O session.- Specified by:
upgrade
in interfaceProtocolUpgradeHandler
-