public class NettyClientProperties extends Object
NettyConnectorProvider
.Modifier and Type | Field and Description |
---|---|
static Integer |
DEFAULT_CHUNK_SIZE
Default chunk size for Netty Connector.
|
static Integer |
DEFAULT_EXPECT_100_CONTINUE_TIMEOUT_VALUE
The default value of EXPECT_100_CONTINUE_TIMEOUT.
|
static Integer |
DEFAULT_HEADER_SIZE
Default header size for Netty Connector.
|
static Integer |
DEFAULT_INITIAL_LINE_LENGTH
Default initial line length for Netty Connector.
|
static String |
ENABLE_SSL_HOSTNAME_VERIFICATION
Sets the endpoint identification algorithm to HTTPS.
|
static String |
EXPECT_100_CONTINUE_TIMEOUT
This timeout is used for waiting for 100-Continue response when 100-Continue is sent by the client.
|
static String |
FILTER_HEADERS_FOR_PROXY
Filter the HTTP headers for requests (CONNECT) towards the proxy except for PROXY-prefixed and HOST headers when
true . |
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_CHUNK_SIZE
Parameter which allows extending of the chunk size for the Netty connector
|
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_HEADER_SIZE
Parameter which allows extending of the header size for the Netty connector
|
static String |
MAX_INITIAL_LINE_LENGTH
Parameter which allows extending of the initial line length for the Netty connector
|
static String |
MAX_REDIRECTS
The maximal number of redirects during single request.
|
static String |
PRESERVE_METHOD_ON_REDIRECT
Sets the HTTP POST method to be preserved on HTTP status 301 (MOVED PERMANENTLY) or status 302 (FOUND) when
true
or redirected as GET when false . |
Constructor and Description |
---|
NettyClientProperties() |
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 FILTER_HEADERS_FOR_PROXY
Filter the HTTP headers for requests (CONNECT) towards the proxy except for PROXY-prefixed and HOST headers when true
.
The default value is true
and the headers are filtered out.
The name of the configuration property is "jersey.config.client.filter.headers.proxy".
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 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 MAX_REDIRECTS
Integer
. Default value is 5.
HTTP redirection must be enabled by property ClientProperties.FOLLOW_REDIRECTS
,
otherwise MAX_REDIRECTS
is not applied.ClientProperties.FOLLOW_REDIRECTS
,
RedirectException
,
Constant Field Valuespublic static final String PRESERVE_METHOD_ON_REDIRECT
Sets the HTTP POST method to be preserved on HTTP status 301 (MOVED PERMANENTLY) or status 302 (FOUND) when true
or redirected as GET when false
.
The default value is true
and the HTTP POST request is not redirected as GET.
The name of the configuration property is "jersey.config.client.redirect.preserve.method".
public static final String EXPECT_100_CONTINUE_TIMEOUT
public static final Integer DEFAULT_EXPECT_100_CONTINUE_TIMEOUT_VALUE
public static final String MAX_HEADER_SIZE
public static final Integer DEFAULT_HEADER_SIZE
HttpClientCodec.HttpClientCodec(int, int, int)
public static final String MAX_INITIAL_LINE_LENGTH
public static final Integer DEFAULT_INITIAL_LINE_LENGTH
HttpClientCodec.HttpClientCodec(int, int, int)
public static final String MAX_CHUNK_SIZE
public static final Integer DEFAULT_CHUNK_SIZE
HttpClientCodec.HttpClientCodec(int, int, int)
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.