org.apache.hc.core5.http2.ssl

## Class TlsUpgradeHandler

- java.lang.Object
- - org.apache.hc.core5.http2.ssl.TlsUpgradeHandler

- All Implemented Interfaces:
    ProtocolUpgradeHandler

      @Contract(threading=IMMUTABLE_CONDITIONAL)
      @Internal
      public class TlsUpgradeHandler
      extends Object
      implements ProtocolUpgradeHandler

  Protocol upgrade handler that upgrades the underlying `ProtocolIOSession` to TLS using `TlsStrategy`.
  Since:
    5.1

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TlsUpgradeHandler(HttpVersionPolicy versionPolicy, TlsStrategy tlsStrategy, Timeout handshakeTimeout)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `upgrade(ProtocolIOSession ioSession, EndpointParameters parameters, FutureCallback<ProtocolIOSession> callback)` Upgrades application protocol of the given I/O session.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### TlsUpgradeHandler

          public TlsUpgradeHandler(HttpVersionPolicy versionPolicy,
                           TlsStrategy tlsStrategy,
                           Timeout handshakeTimeout)

  - ### Method Detail

    - #### upgrade

          public void upgrade(ProtocolIOSession ioSession,
                     EndpointParameters parameters,
                     FutureCallback<ProtocolIOSession> callback)

      Description copied from interface: `ProtocolUpgradeHandler`
      Upgrades application protocol of the given I/O session.
      Specified by:
        `upgrade` in interface `ProtocolUpgradeHandler`

Copyright © 2005–2020 The Apache Software Foundation. All rights reserved.