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

public Class ServerHttp1UpgradeHandler

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.URIScheme, org.apache.hc.core5.http.impl.nio.ServerHttp1IOEventHandler, .ServerHttp1StreamDuplexerFactory, org.apache.hc.core5.reactor.ProtocolIOSession, .ProtocolUpgradeHandler, org.apache.hc.core5.reactor.ssl.TlsDetails, 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 ServerHttp1StreamDuplexerFactory

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 ServerHttp1StreamDuplexerFactory http1StreamHandlerFactory

Constructor Detail

ServerHttp1UpgradeHandlerback to summary
public ServerHttp1UpgradeHandler(final ServerHttp1StreamDuplexerFactory 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