Class ServerH2UpgradeHandler

  • All Implemented Interfaces:
    org.apache.hc.core5.reactor.ProtocolUpgradeHandler

    @Contract(threading=IMMUTABLE_CONDITIONAL)
    @Internal
    public class ServerH2UpgradeHandler
    extends java.lang.Object
    implements org.apache.hc.core5.reactor.ProtocolUpgradeHandler
    Protocol upgrade handler that upgrades the underlying ProtocolIOSession to HTTP/2 in case of a successful protocol negotiation.
    Since:
    5.2
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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 java.lang.Object

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

      • ServerH2UpgradeHandler

        public ServerH2UpgradeHandler​(ServerH2StreamMultiplexerFactory http2StreamHandlerFactory,
                                      org.apache.hc.core5.function.Callback<java.lang.Exception> exceptionCallback)
    • Method Detail

      • 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