Class NettyClientProperties
- java.lang.Object
-
- org.glassfish.jersey.netty.connector.NettyClientProperties
-
public class NettyClientProperties extends Object
Configuration options specific to the Client API that utilizesNettyConnectorProvider.- Since:
- 2.32
-
-
Field Summary
Fields Modifier and Type Field Description static IntegerDEFAULT_CHUNK_SIZEDefault chunk size for Netty Connector.static IntegerDEFAULT_EXPECT_100_CONTINUE_TIMEOUT_VALUEThe default value of EXPECT_100_CONTINUE_TIMEOUT.static IntegerDEFAULT_HEADER_SIZEDefault header size for Netty Connector.static IntegerDEFAULT_INITIAL_LINE_LENGTHDefault initial line length for Netty Connector.static StringENABLE_SSL_HOSTNAME_VERIFICATIONSets the endpoint identification algorithm to HTTPS.static StringEXPECT_100_CONTINUE_TIMEOUTThis timeout is used for waiting for 100-Continue response when 100-Continue is sent by the client.static StringFILTER_HEADERS_FOR_PROXYFilter the HTTP headers for requests (CONNECT) towards the proxy except for PROXY-prefixed and HOST headers whentrue.static StringHTTP_REDIRECT_CONTROLLERThe implementation of customNettyHttpRedirectControllerredirect logic.static StringIDLE_CONNECTION_PRUNE_TIMEOUTThis property determines the number of seconds the idle connections are kept in the pool before pruned.static StringMAX_CHUNK_SIZEParameter which allows extending of the chunk size for the Netty connectorstatic StringMAX_CONNECTIONSThis property determines the maximum number of idle connections that will be simultaneously kept alive, per destination.static StringMAX_CONNECTIONS_TOTALThis property determines the maximum number of idle connections that will be simultaneously kept alive in total, rather than per destination.static StringMAX_HEADER_SIZEParameter which allows extending of the header size for the Netty connectorstatic StringMAX_INITIAL_LINE_LENGTHParameter which allows extending of the initial line length for the Netty connectorstatic StringMAX_REDIRECTSThe maximal number of redirects during single request.static StringPRESERVE_METHOD_ON_REDIRECTSets the HTTP POST method to be preserved on HTTP status 301 (MOVED PERMANENTLY) or status 302 (FOUND) whentrueor redirected as GET whenfalse.
-
Constructor Summary
Constructors Constructor Description NettyClientProperties()
-
-
-
Field Detail
-
ENABLE_SSL_HOSTNAME_VERIFICATION
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".
- Since:
- 2.35
- See Also:
SSLParameters.setEndpointIdentificationAlgorithm(String), Constant Field Values
-
FILTER_HEADERS_FOR_PROXY
public 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
trueand the headers are filtered out.The name of the configuration property is "jersey.config.client.filter.headers.proxy".
- Since:
- 2.41
- See Also:
- Constant Field Values
-
HTTP_REDIRECT_CONTROLLER
public static final String HTTP_REDIRECT_CONTROLLER
The implementation of custom
NettyHttpRedirectControllerredirect logic.- Since:
- 2.47
- See Also:
- Constant Field Values
-
IDLE_CONNECTION_PRUNE_TIMEOUT
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.
- See Also:
- Constant Field Values
-
MAX_CONNECTIONS
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.
- See Also:
- Constant Field Values
-
MAX_CONNECTIONS_TOTAL
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.
- See Also:
- Constant Field Values
-
MAX_REDIRECTS
public static final String MAX_REDIRECTS
The maximal number of redirects during single request. Value is expected to be positiveInteger. Default value is 5. HTTP redirection must be enabled by propertyClientProperties.FOLLOW_REDIRECTS, otherwiseMAX_REDIRECTSis not applied.- Since:
- 2.36
- See Also:
ClientProperties.FOLLOW_REDIRECTS,RedirectException, Constant Field Values
-
PRESERVE_METHOD_ON_REDIRECT
public 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
trueor redirected as GET whenfalse.The default value is
trueand the HTTP POST request is not redirected as GET.The name of the configuration property is "jersey.config.client.redirect.preserve.method".
- Since:
- 2.41
- See Also:
- Constant Field Values
-
EXPECT_100_CONTINUE_TIMEOUT
public static final String EXPECT_100_CONTINUE_TIMEOUT
This timeout is used for waiting for 100-Continue response when 100-Continue is sent by the client.- Since:
- 2.41
- See Also:
- Constant Field Values
-
DEFAULT_EXPECT_100_CONTINUE_TIMEOUT_VALUE
public static final Integer DEFAULT_EXPECT_100_CONTINUE_TIMEOUT_VALUE
The default value of EXPECT_100_CONTINUE_TIMEOUT.- Since:
- 2.41
-
MAX_HEADER_SIZE
public static final String MAX_HEADER_SIZE
Parameter which allows extending of the header size for the Netty connector- Since:
- 2.44
- See Also:
- Constant Field Values
-
DEFAULT_HEADER_SIZE
public static final Integer DEFAULT_HEADER_SIZE
Default header size for Netty Connector. Taken fromHttpClientCodec(int, int, int)- Since:
- 2.44
-
MAX_INITIAL_LINE_LENGTH
public static final String MAX_INITIAL_LINE_LENGTH
Parameter which allows extending of the initial line length for the Netty connector- Since:
- 2.44
- See Also:
- Constant Field Values
-
DEFAULT_INITIAL_LINE_LENGTH
public static final Integer DEFAULT_INITIAL_LINE_LENGTH
Default initial line length for Netty Connector. Taken fromHttpClientCodec(int, int, int)- Since:
- 2.44
-
MAX_CHUNK_SIZE
public static final String MAX_CHUNK_SIZE
Parameter which allows extending of the chunk size for the Netty connector- Since:
- 2.44
- See Also:
- Constant Field Values
-
DEFAULT_CHUNK_SIZE
public static final Integer DEFAULT_CHUNK_SIZE
Default chunk size for Netty Connector. Taken fromHttpClientCodec(int, int, int)- Since:
- 2.44
-
-