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.
Use configuration parameters provided by connection listeners.
Basic implementation of
SecurePortStrategy
with a fixed list of secure ports.- Since:
- 5.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isSecure
(SocketAddress localAddress) Deprecated.Determines if the given address should be secured or considered secure.
-
Field Details
-
securePorts
private final int[] securePortsDeprecated.
-
-
Constructor Details
-
FixedPortStrategy
public FixedPortStrategy(int... securePorts) Deprecated.
-
-
Method Details
-
isSecure
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.
-