Top Description Fields Constructors Methods
org.apache.hc.core5.http.nio.ssl

public final Class FixedPortStrategy

extends Object
implements SecurePortStrategy
Class Inheritance
All Implemented Interfaces
org.apache.hc.core5.http.nio.ssl.SecurePortStrategy
Annotations
@Deprecated
Imports
java.net.InetSocketAddress, .SocketAddress, org.apache.hc.core5.util.Args

Deprecated

Use configuration parameters provided by connection listeners.

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

Field Summary

Modifier and TypeField and Description
private final int[]

Constructor Summary

AccessConstructor and Description
public
FixedPortStrategy(final int... securePorts)

Method Summary

Modifier and TypeMethod and Description
public boolean
isSecure(final SocketAddress
the given address.
localAddress
)

Implements org.apache.hc.core5.http.nio.ssl.SecurePortStrategy.isSecure.

Determines if the given address should be secured or considered secure.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

securePortsback to summary
private final int[] securePorts

Constructor Detail

FixedPortStrategyback to summary
public FixedPortStrategy(final int... securePorts)

Method Detail

isSecureback to summary
public boolean isSecure(final SocketAddress localAddress)

Implements org.apache.hc.core5.http.nio.ssl.SecurePortStrategy.isSecure.

Doc from org.apache.hc.core5.http.nio.ssl.SecurePortStrategy.isSecure.

Determines if the given address should be secured or considered secure.

Parameters
localAddress:SocketAddress

the given address.

Returns:boolean

secure flag.

Annotations
@Override