org.apache.hc.core5.reactor

## Interface ProtocolLayer

- All Known Implementing Classes:
    ClientHttp1StreamDuplexer, ServerHttp1StreamDuplexer

      @Internal
      public interface ProtocolLayer

  Application protocol layer interface.
  Since:
    5.1

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `upgrade(ProtocolUpgradeHandler handler, EndpointParameters parameters)` Switches to the given application protocol.
    `void` | `upgrade(String id, EndpointParameters parameters)` Switches to the application protocol with the given protocol id.

- - ### Method Detail

    - #### upgrade

          void upgrade(ProtocolUpgradeHandler handler,
                     EndpointParameters parameters)
                       throws UnsupportedOperationException

      Switches to the given application protocol.
      Throws:
        `UnsupportedOperationException`

    - #### upgrade

          void upgrade(String id,
                     EndpointParameters parameters)
                       throws UnsupportedOperationException

      Switches to the application protocol with the given protocol id.
      Throws:
        `UnsupportedOperationException`

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