org.apache.hc.client5.http.impl

## Class ProtocolSwitchStrategy

- java.lang.Object
- - org.apache.hc.client5.http.impl.ProtocolSwitchStrategy

-     @Internal
      public final class ProtocolSwitchStrategy
      extends Object

  Protocol switch handler.
  Since:
    5.4

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ProtocolSwitchStrategy()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `org.apache.hc.core5.http.ProtocolVersion` | `switchProtocol(org.apache.hc.core5.http.HttpMessage response)`

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

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

- - ### Constructor Detail

    - #### ProtocolSwitchStrategy

          public ProtocolSwitchStrategy()

  - ### Method Detail

    - #### switchProtocol

          public org.apache.hc.core5.http.ProtocolVersion switchProtocol(org.apache.hc.core5.http.HttpMessage response)
                                                                  throws org.apache.hc.core5.http.ProtocolException

      Throws:
        `org.apache.hc.core5.http.ProtocolException`

Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.