Class ServerHttp1UpgradeHandler

java.lang.Object
org.apache.hc.core5.http2.impl.nio.ServerHttp1UpgradeHandler
All Implemented Interfaces:
org.apache.hc.core5.reactor.ProtocolUpgradeHandler

@Contract(threading=IMMUTABLE_CONDITIONAL) @Internal public class ServerHttp1UpgradeHandler extends Object implements org.apache.hc.core5.reactor.ProtocolUpgradeHandler
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
  • Constructor Summary

    Constructors
    Constructor
    Description
    ServerHttp1UpgradeHandler(org.apache.hc.core5.http.impl.nio.ServerHttp1StreamDuplexerFactory http1StreamHandlerFactory)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    upgrade(org.apache.hc.core5.reactor.ProtocolIOSession ioSession, org.apache.hc.core5.concurrent.FutureCallback<org.apache.hc.core5.reactor.ProtocolIOSession> callback)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ServerHttp1UpgradeHandler

      public ServerHttp1UpgradeHandler(org.apache.hc.core5.http.impl.nio.ServerHttp1StreamDuplexerFactory http1StreamHandlerFactory)
  • Method Details

    • upgrade

      public void upgrade(org.apache.hc.core5.reactor.ProtocolIOSession ioSession, org.apache.hc.core5.concurrent.FutureCallback<org.apache.hc.core5.reactor.ProtocolIOSession> callback)
      Specified by:
      upgrade in interface org.apache.hc.core5.reactor.ProtocolUpgradeHandler