Class ClientH2UpgradeHandler
- java.lang.Object
-
- org.apache.hc.core5.http2.impl.nio.ClientH2UpgradeHandler
-
- All Implemented Interfaces:
org.apache.hc.core5.reactor.ProtocolUpgradeHandler
@Contract(threading=IMMUTABLE_CONDITIONAL) @Internal public class ClientH2UpgradeHandler extends java.lang.Object implements org.apache.hc.core5.reactor.ProtocolUpgradeHandlerProtocol upgrade handler that upgrades the underlyingProtocolIOSessionto HTTP/2 in case of a successful protocol negotiation.- Since:
- 5.2
-
-
Constructor Summary
Constructors Constructor Description ClientH2UpgradeHandler(ClientH2StreamMultiplexerFactory http2StreamHandlerFactory, org.apache.hc.core5.function.Callback<java.lang.Exception> exceptionCallback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidupgrade(org.apache.hc.core5.reactor.ProtocolIOSession ioSession, org.apache.hc.core5.concurrent.FutureCallback<org.apache.hc.core5.reactor.ProtocolIOSession> callback)
-
-
-
Constructor Detail
-
ClientH2UpgradeHandler
public ClientH2UpgradeHandler(ClientH2StreamMultiplexerFactory http2StreamHandlerFactory, org.apache.hc.core5.function.Callback<java.lang.Exception> exceptionCallback)
-
-