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

public Class ClientHttp1UpgradeHandler

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.ClientHttp1IOEventHandler, .ClientHttp1StreamDuplexerFactory, org.apache.hc.core5.reactor.ProtocolIOSession, .ProtocolUpgradeHandler, org.apache.hc.core5.util.Args

Protocol upgrade handler that upgrades the underlying ProtocolIOSession to HTTP/1.1 in case of a successful protocol negotiation or as a default fall-back.
Since
5.2

Field Summary

Modifier and TypeField and Description
private final ClientHttp1StreamDuplexerFactory

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

http1StreamHandlerFactoryback to summary
private final ClientHttp1StreamDuplexerFactory http1StreamHandlerFactory

Constructor Detail

ClientHttp1UpgradeHandlerback to summary
public ClientHttp1UpgradeHandler(final ClientHttp1StreamDuplexerFactory http1StreamHandlerFactory)

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