org.apache.hc.core5.http.nio.ssl

## Class FixedPortStrategy

- java.lang.Object
- - org.apache.hc.core5.http.nio.ssl.FixedPortStrategy

- All Implemented Interfaces:
    SecurePortStrategy

  Deprecated.
  Use configuration parameters provided by connection listeners.

      @Deprecated
      public final class FixedPortStrategy
      extends Object
      implements SecurePortStrategy

  Basic implementation of `SecurePortStrategy` with a fixed list of secure ports.
  Since:
    5.0

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `FixedPortStrategy(int... securePorts)` Deprecated.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `isSecure(SocketAddress localAddress)` Deprecated. Determines if the given address should be secured or considered secure.

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

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

- - ### Constructor Detail

    - #### FixedPortStrategy

          public FixedPortStrategy(int... securePorts)

      Deprecated.

  - ### Method Detail

    - #### isSecure

          public boolean isSecure(SocketAddress localAddress)

      Deprecated.
      Description copied from interface: `SecurePortStrategy`
      Determines if the given address should be secured or considered secure.
      Specified by:
        `isSecure` in interface `SecurePortStrategy`
      Parameters:
        `localAddress` - the given address.
      Returns:
        secure flag.

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