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 java.lang.Object implements ProtocolUpgradeHandler
Protocol upgrade handler that upgrades the underlyingProtocolIOSession
to HTTP/2 in case of a successful protocol negotiation.- Since:
- 5.2
-
-
Field Summary
Fields Modifier and Type Field Description private ServerH2StreamMultiplexerFactory
http2StreamHandlerFactory
-
Constructor Summary
Constructors Constructor Description ServerH2UpgradeHandler(ServerH2StreamMultiplexerFactory http2StreamHandlerFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
upgrade(ProtocolIOSession ioSession, FutureCallback<ProtocolIOSession> callback)
Upgrades application protocol of the given I/O session.
-
-
-
Field Detail
-
http2StreamHandlerFactory
private final ServerH2StreamMultiplexerFactory http2StreamHandlerFactory
-
-
Constructor Detail
-
ServerH2UpgradeHandler
public ServerH2UpgradeHandler(ServerH2StreamMultiplexerFactory http2StreamHandlerFactory)
-
-
Method Detail
-
upgrade
public void upgrade(ProtocolIOSession ioSession, FutureCallback<ProtocolIOSession> callback)
Description copied from interface:ProtocolUpgradeHandler
Upgrades application protocol of the given I/O session.- Specified by:
upgrade
in interfaceProtocolUpgradeHandler
-
-