Class JdkConnectorProperties
- java.lang.Object
-
- org.glassfish.jersey.jdk.connector.JdkConnectorProperties
-
public final class JdkConnectorProperties extends java.lang.Object
Configuration options specific toJdkConnector
.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CONNECTION_IDLE_TIMEOUT
An amount of time in milliseconds (Integer
value) during which an idle connection will be kept open.static java.lang.String
CONTAINER_IDLE_TIMEOUT
Container idle timeout in milliseconds (Integer
value).static java.lang.String
COOKIE_POLICY
To set the cookie policy of this cookie manager.static int
DEFAULT_CONNECTION_CLOSE_WAIT
Default value for theCONTAINER_IDLE_TIMEOUT
property.static int
DEFAULT_CONNECTION_IDLE_TIMEOUT
Default value for theCONNECTION_IDLE_TIMEOUT
property.static java.net.CookiePolicy
DEFAULT_COOKIE_POLICY
Default value for theCOOKIE_POLICY
property.static int
DEFAULT_HTTP_CHUNK_SIZE
Default value for theClientProperties.CHUNKED_ENCODING_SIZE
property.static int
DEFAULT_MAX_CONNECTIONS_PER_DESTINATION
Default value for theMAX_CONNECTIONS_PER_DESTINATION
property.static int
DEFAULT_MAX_HEADER_SIZE
Default value for theMAX_HEADER_SIZE
property.static int
DEFAULT_MAX_REDIRECTS
Default value for theMAX_REDIRECTS
property.static java.lang.String
MAX_CONNECTIONS_PER_DESTINATION
A maximal number of open connection to each destination.static java.lang.String
MAX_HEADER_SIZE
A configurable property of HTTP parser.static java.lang.String
MAX_REDIRECTS
The maximal number of redirects during single request.static java.lang.String
WORKER_THREAD_POOL_CONFIG
Configuration of the connector thread pool.
-
Constructor Summary
Constructors Modifier Constructor Description private
JdkConnectorProperties()
Prevents instantiation.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> T
getValue(java.util.Map<java.lang.String,?> properties, java.lang.String key, java.lang.Class<T> type)
static <T> T
getValue(java.util.Map<java.lang.String,?> properties, java.lang.String key, T defaultValue, java.lang.Class<T> type)
-
-
-
Field Detail
-
WORKER_THREAD_POOL_CONFIG
public static final java.lang.String WORKER_THREAD_POOL_CONFIG
Configuration of the connector thread pool. An instance ofThreadPoolConfig
is expected.- See Also:
- Constant Field Values
-
CONTAINER_IDLE_TIMEOUT
public static final java.lang.String 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:
- Constant Field Values
-
MAX_HEADER_SIZE
public static final java.lang.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 java.lang.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_HEADER_SIZE
is not applied.
-
COOKIE_POLICY
public static final java.lang.String COOKIE_POLICY
To set the cookie policy of this cookie manager. The default value is ACCEPT_ORIGINAL_SERVER.- See Also:
CookieManager
, Constant Field Values
-
MAX_CONNECTIONS_PER_DESTINATION
public static final java.lang.String MAX_CONNECTIONS_PER_DESTINATION
A maximal number of open connection to 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 java.lang.String 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:
- Constant Field Values
-
DEFAULT_HTTP_CHUNK_SIZE
public static final int DEFAULT_HTTP_CHUNK_SIZE
Default value for theClientProperties.CHUNKED_ENCODING_SIZE
property.- See Also:
- Constant Field Values
-
DEFAULT_MAX_HEADER_SIZE
public static final int DEFAULT_MAX_HEADER_SIZE
Default value for theMAX_HEADER_SIZE
property.- See Also:
- Constant Field Values
-
DEFAULT_MAX_REDIRECTS
public static final int DEFAULT_MAX_REDIRECTS
Default value for theMAX_REDIRECTS
property.- See Also:
- Constant Field Values
-
DEFAULT_COOKIE_POLICY
public static final java.net.CookiePolicy DEFAULT_COOKIE_POLICY
Default value for theCOOKIE_POLICY
property.
-
DEFAULT_MAX_CONNECTIONS_PER_DESTINATION
public static final int DEFAULT_MAX_CONNECTIONS_PER_DESTINATION
Default value for theMAX_CONNECTIONS_PER_DESTINATION
property.- See Also:
- Constant Field Values
-
DEFAULT_CONNECTION_IDLE_TIMEOUT
public static final int DEFAULT_CONNECTION_IDLE_TIMEOUT
Default value for theCONNECTION_IDLE_TIMEOUT
property.- See Also:
- Constant Field Values
-
DEFAULT_CONNECTION_CLOSE_WAIT
public static final int DEFAULT_CONNECTION_CLOSE_WAIT
Default value for theCONTAINER_IDLE_TIMEOUT
property.- See Also:
- Constant Field Values
-
-