Class FixedPortStrategy

java.lang.Object
org.apache.hc.core5.http.nio.ssl.FixedPortStrategy
All Implemented Interfaces:
SecurePortStrategy

@Deprecated public final class FixedPortStrategy extends Object implements SecurePortStrategy
Deprecated.
Use configuration parameters provided by connection listeners.
Basic implementation of SecurePortStrategy with a fixed list of secure ports.
Since:
5.0
  • Field Details

    • securePorts

      private final int[] securePorts
      Deprecated.
  • Constructor Details

    • FixedPortStrategy

      public FixedPortStrategy(int... securePorts)
      Deprecated.
  • Method Details

    • 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.