Top Description Fields Constructors Methods
org.apache.hc.core5.http2.impl.nio

public Class ClientH2UpgradeHandler

extends Object
implements ProtocolUpgradeHandler
Class Inheritance
All Implemented Interfaces
org.apache.hc.core5.reactor.ProtocolUpgradeHandler
Annotations
@Contract
threading:IMMUTABLE_CONDITIONAL
@Internal
Imports
java.io.IOException, org.apache.hc.core5.annotation.Contract, .Internal, .ThreadingBehavior, org.apache.hc.core5.concurrent.FutureCallback, org.apache.hc.core5.http.impl.nio.HttpConnectionEventHandler, org.apache.hc.core5.reactor.ProtocolIOSession, .ProtocolUpgradeHandler, org.apache.hc.core5.util.Args

Protocol upgrade handler that upgrades the underlying ProtocolIOSession to HTTP/2 in case of a successful protocol negotiation.
Since
5.2

Field Summary

Modifier and TypeField and Description
private final ClientH2StreamMultiplexerFactory

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
upgrade(final ProtocolIOSession ioSession, final FutureCallback<ProtocolIOSession> callback)

Implements org.apache.hc.core5.reactor.ProtocolUpgradeHandler.upgrade.

Upgrades application protocol of the given I/O session.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

http2StreamHandlerFactoryback to summary
private final ClientH2StreamMultiplexerFactory http2StreamHandlerFactory

Constructor Detail

ClientH2UpgradeHandlerback to summary
public ClientH2UpgradeHandler(final ClientH2StreamMultiplexerFactory http2StreamHandlerFactory)

Method Detail

upgradeback to summary
public void upgrade(final ProtocolIOSession ioSession, final FutureCallback<ProtocolIOSession> callback)

Implements org.apache.hc.core5.reactor.ProtocolUpgradeHandler.upgrade.

Doc from org.apache.hc.core5.reactor.ProtocolUpgradeHandler.upgrade.

Upgrades application protocol of the given I/O session.

Annotations
@Override