Class JdkConnectorProperties
- java.lang.Object
-
- org.glassfish.jersey.jdk.connector.JdkConnectorProperties
-
public final class JdkConnectorProperties extends Object
Configuration options specific toJdkConnector.- Author:
- Adam Lindenthal
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONNECTION_IDLE_TIMEOUTAn amount of time in milliseconds (Integervalue) during which an idle connection will be kept open.static StringCONTAINER_IDLE_TIMEOUTContainer idle timeout in milliseconds (Integervalue).static StringCOOKIE_POLICYTo set the cookie policy of this cookie manager.static intDEFAULT_CONNECTION_CLOSE_WAITDefault value for theCONTAINER_IDLE_TIMEOUTproperty.static intDEFAULT_CONNECTION_IDLE_TIMEOUTDefault value for theCONNECTION_IDLE_TIMEOUTproperty.static CookiePolicyDEFAULT_COOKIE_POLICYDefault value for theCOOKIE_POLICYproperty.static intDEFAULT_HTTP_CHUNK_SIZEDefault value for theClientProperties.CHUNKED_ENCODING_SIZEproperty.static intDEFAULT_MAX_CONNECTIONS_PER_DESTINATIONDefault value for theMAX_CONNECTIONS_PER_DESTINATIONproperty.static intDEFAULT_MAX_HEADER_SIZEDefault value for theMAX_HEADER_SIZEproperty.static intDEFAULT_MAX_REDIRECTSDefault value for theMAX_REDIRECTSproperty.static StringMAX_CONNECTIONS_PER_DESTINATIONA maximum number of open connections per each destination.static StringMAX_HEADER_SIZEA configurable property of HTTP parser.static StringMAX_REDIRECTSThe maximal number of redirects during single request.static StringWORKER_THREAD_POOL_CONFIGConfiguration of the connector thread pool.
-
-
-
Field Detail
-
WORKER_THREAD_POOL_CONFIG
public static final String WORKER_THREAD_POOL_CONFIG
Configuration of the connector thread pool. An instance ofThreadPoolConfigis expected.- See Also:
- Constant Field Values
-
CONTAINER_IDLE_TIMEOUT
public static final String CONTAINER_IDLE_TIMEOUT
Container idle timeout in milliseconds (Integervalue). When the timeout elapses, the shared thread pool will be destroyed. The default value is 30000- See Also:
- Constant Field Values
-
MAX_HEADER_SIZE
public static final String 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:
- 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.
-
COOKIE_POLICY
public static final String COOKIE_POLICY
To set the cookie policy of this cookie manager. The default value isCookiePolicy.ACCEPT_ORIGINAL_SERVER.- See Also:
CookieManager, Constant Field Values
-
MAX_CONNECTIONS_PER_DESTINATION
public static final String 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:
- Constant Field Values
-
CONNECTION_IDLE_TIMEOUT
public static final String CONNECTION_IDLE_TIMEOUT
An amount of time in milliseconds (Integervalue) during which an idle connection will be kept open. The default value is 1000000- See Also:
- Constant Field Values
-
DEFAULT_HTTP_CHUNK_SIZE
public static final int DEFAULT_HTTP_CHUNK_SIZE
Default value for theClientProperties.CHUNKED_ENCODING_SIZEproperty.- See Also:
- Constant Field Values
-
DEFAULT_MAX_HEADER_SIZE
public static final int DEFAULT_MAX_HEADER_SIZE
Default value for theMAX_HEADER_SIZEproperty.- See Also:
- Constant Field Values
-
DEFAULT_MAX_REDIRECTS
public static final int DEFAULT_MAX_REDIRECTS
Default value for theMAX_REDIRECTSproperty.- See Also:
- Constant Field Values
-
DEFAULT_COOKIE_POLICY
public static final CookiePolicy DEFAULT_COOKIE_POLICY
Default value for theCOOKIE_POLICYproperty.
-
DEFAULT_MAX_CONNECTIONS_PER_DESTINATION
public static final int DEFAULT_MAX_CONNECTIONS_PER_DESTINATION
Default value for theMAX_CONNECTIONS_PER_DESTINATIONproperty.- See Also:
- Constant Field Values
-
DEFAULT_CONNECTION_IDLE_TIMEOUT
public static final int DEFAULT_CONNECTION_IDLE_TIMEOUT
Default value for theCONNECTION_IDLE_TIMEOUTproperty.- See Also:
- Constant Field Values
-
DEFAULT_CONNECTION_CLOSE_WAIT
public static final int DEFAULT_CONNECTION_CLOSE_WAIT
Default value for theCONTAINER_IDLE_TIMEOUTproperty.- See Also:
- Constant Field Values
-
-