Class ServerHttp1UpgradeHandler
- java.lang.Object
-
- org.apache.hc.core5.http2.impl.nio.ServerHttp1UpgradeHandler
-
- All Implemented Interfaces:
ProtocolUpgradeHandler
@Contract(threading=IMMUTABLE_CONDITIONAL) @Internal public class ServerHttp1UpgradeHandler extends java.lang.Object implements ProtocolUpgradeHandler
Protocol upgrade handler that upgrades the underlyingProtocolIOSession
to HTTP/1.1 in case of a successful protocol negotiation or as a default fall-back.- Since:
- 5.2
-
-
Field Summary
Fields Modifier and Type Field Description private ServerHttp1StreamDuplexerFactory
http1StreamHandlerFactory
-
Constructor Summary
Constructors Constructor Description ServerHttp1UpgradeHandler(ServerHttp1StreamDuplexerFactory http1StreamHandlerFactory)
-
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
-
http1StreamHandlerFactory
private final ServerHttp1StreamDuplexerFactory http1StreamHandlerFactory
-
-
Constructor Detail
-
ServerHttp1UpgradeHandler
public ServerHttp1UpgradeHandler(ServerHttp1StreamDuplexerFactory http1StreamHandlerFactory)
-
-
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
-
-