Package 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 public final class FixedPortStrategy extends java.lang.Object implements SecurePortStrategy
Deprecated.Use configuration parameters provided by connection listeners.Basic implementation ofSecurePortStrategy
with a fixed list of secure ports.- Since:
- 5.0
-
-
Field Summary
Fields Modifier and Type Field Description private int[]
securePorts
Deprecated.
-
Constructor Summary
Constructors Constructor Description FixedPortStrategy(int... securePorts)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
isSecure(java.net.SocketAddress localAddress)
Deprecated.Determines if the given address should be secured or considered secure.
-
-
-
Method Detail
-
isSecure
public boolean isSecure(java.net.SocketAddress localAddress)
Deprecated.Description copied from interface:SecurePortStrategy
Determines if the given address should be secured or considered secure.- Specified by:
isSecure
in interfaceSecurePortStrategy
- Parameters:
localAddress
- the given address.- Returns:
- secure flag.
-
-