Class JdkConnectorProperties
java.lang.Object
org.glassfish.jersey.jdk.connector.JdkConnectorProperties
Configuration options specific to
JdkConnector
.- Author:
- Adam Lindenthal
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
An amount of time in milliseconds (Integer
value) during which an idle connection will be kept open.static final String
Container idle timeout in milliseconds (Integer
value).static final String
To set the cookie policy of this cookie manager.static final int
Default value for theCONTAINER_IDLE_TIMEOUT
property.static final int
Default value for theCONNECTION_IDLE_TIMEOUT
property.static final CookiePolicy
Default value for theCOOKIE_POLICY
property.static final int
Default value for theClientProperties.CHUNKED_ENCODING_SIZE
property.static final int
Default value for theMAX_CONNECTIONS_PER_DESTINATION
property.static final int
Default value for theMAX_HEADER_SIZE
property.static final int
Default value for theMAX_REDIRECTS
property.static final String
A maximum number of open connections per each destination.static final String
A configurable property of HTTP parser.static final String
The maximal number of redirects during single request.static final String
Configuration of the connector thread pool. -
Method Summary
-
Field Details
-
WORKER_THREAD_POOL_CONFIG
Configuration of the connector thread pool. An instance ofThreadPoolConfig
is expected.- See Also:
-
CONTAINER_IDLE_TIMEOUT
Container idle timeout in milliseconds (Integer
value). When the timeout elapses, the shared thread pool will be destroyed. The default value is 30000- See Also:
-
MAX_HEADER_SIZE
A configurable property of HTTP parser. It defines the maximal acceptable size of HTTP response initial line, each header and chunk header. The default value is 8192- See Also:
-
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_REDIRECTS
is not applied. -
COOKIE_POLICY
To set the cookie policy of this cookie manager. The default value isCookiePolicy.ACCEPT_ORIGINAL_SERVER
.- See Also:
-
MAX_CONNECTIONS_PER_DESTINATION
A maximum number of open connections per each destination. A destination is determined by the following triple:- host
- port
- protocol (HTTP/HTTPS)
- See Also:
-
CONNECTION_IDLE_TIMEOUT
An amount of time in milliseconds (Integer
value) during which an idle connection will be kept open. The default value is 1000000- See Also:
-
DEFAULT_HTTP_CHUNK_SIZE
public static final int DEFAULT_HTTP_CHUNK_SIZEDefault value for theClientProperties.CHUNKED_ENCODING_SIZE
property.- See Also:
-
DEFAULT_MAX_HEADER_SIZE
public static final int DEFAULT_MAX_HEADER_SIZEDefault value for theMAX_HEADER_SIZE
property.- See Also:
-
DEFAULT_MAX_REDIRECTS
public static final int DEFAULT_MAX_REDIRECTSDefault value for theMAX_REDIRECTS
property.- See Also:
-
DEFAULT_COOKIE_POLICY
Default value for theCOOKIE_POLICY
property. -
DEFAULT_MAX_CONNECTIONS_PER_DESTINATION
public static final int DEFAULT_MAX_CONNECTIONS_PER_DESTINATIONDefault value for theMAX_CONNECTIONS_PER_DESTINATION
property.- See Also:
-
DEFAULT_CONNECTION_IDLE_TIMEOUT
public static final int DEFAULT_CONNECTION_IDLE_TIMEOUTDefault value for theCONNECTION_IDLE_TIMEOUT
property.- See Also:
-
DEFAULT_CONNECTION_CLOSE_WAIT
public static final int DEFAULT_CONNECTION_CLOSE_WAITDefault value for theCONTAINER_IDLE_TIMEOUT
property.- See Also:
-
-
Method Details
-
getValue
-
getValue
-