public class NettyClientProperties extends Object
NettyConnectorProvider
.Modifier and Type | Field and Description |
---|---|
static String |
ENABLE_SSL_HOSTNAME_VERIFICATION
Sets the endpoint identification algorithm to HTTPS.
|
static String |
IDLE_CONNECTION_PRUNE_TIMEOUT
This property determines the number of seconds the idle connections are kept in the pool before pruned.
|
static String |
MAX_CONNECTIONS
This property determines the maximum number of idle connections that will be simultaneously kept alive, per destination.
|
static String |
MAX_CONNECTIONS_TOTAL
This property determines the maximum number of idle connections that will be simultaneously kept alive
in total, rather than per destination.
|
static String |
MAX_REDIRECTS
The maximal number of redirects during single request.
|
Constructor and Description |
---|
NettyClientProperties() |
public static final String MAX_CONNECTIONS_TOTAL
This property determines the maximum number of idle connections that will be simultaneously kept alive in total, rather than per destination. The default is 60. Specify 0 to disable.
public static final String IDLE_CONNECTION_PRUNE_TIMEOUT
This property determines the number of seconds the idle connections are kept in the pool before pruned. The default is 60. Specify 0 to disable.
public static final String MAX_CONNECTIONS
This property determines the maximum number of idle connections that will be simultaneously kept alive, per destination. The default is 5.
This property is a Jersey alternative to System property http.maxConnections. The Jersey property takes precedence over the system property.
public static final String ENABLE_SSL_HOSTNAME_VERIFICATION
Sets the endpoint identification algorithm to HTTPS.
The default value is true
(for HTTPS uri scheme).
The name of the configuration property is "jersey.config.client.tls.enableHostnameVerification".
SSLParameters.setEndpointIdentificationAlgorithm(String)
,
Constant Field Valuespublic static final String MAX_REDIRECTS
Integer
. Default value is .
HTTP redirection must be enabled by property ClientProperties.FOLLOW_REDIRECTS
,
otherwise MAX_REDIRECTS
is not applied.ClientProperties.FOLLOW_REDIRECTS
,
RedirectException
,
Constant Field ValuesCopyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.