public enum ApacheClientProperties extends Enum<ApacheClientProperties>
Commonly used Apache client properties from ApacheClientProperties, but with the correct type
information.
| Modifier and Type | Field and Description |
|---|---|
static JerseyClientProperty<org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy> |
CONNECTION_CLOSING_STRATEGY |
static JerseyClientProperty<org.apache.http.conn.HttpClientConnectionManager> |
CONNECTION_MANAGER
Note that if you specify your own
SSLContext using StandardClientProperties.SSL_CONTEXT, you will most likely have
to provide the SSLContext to the connection manager as well. |
static JerseyClientProperty<Boolean> |
CONNECTION_MANAGER_SHARED |
static JerseyClientProperty<org.apache.http.conn.ConnectionKeepAliveStrategy> |
KEEPALIVE_STRATEGY |
static JerseyClientProperty<org.apache.http.client.config.RequestConfig> |
REQUEST_CONFIG |
static JerseyClientProperty<org.apache.http.client.HttpRequestRetryHandler> |
RETRY_HANDLER |
static JerseyClientProperty<org.apache.http.ConnectionReuseStrategy> |
REUSE_STRATEGY |
| Modifier and Type | Method and Description |
|---|---|
static ApacheClientProperties |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ApacheClientProperties[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JerseyClientProperty<org.apache.http.ConnectionReuseStrategy> REUSE_STRATEGY
public static final JerseyClientProperty<org.apache.http.client.HttpRequestRetryHandler> RETRY_HANDLER
public static final JerseyClientProperty<org.apache.http.conn.HttpClientConnectionManager> CONNECTION_MANAGER
Note that if you specify your own SSLContext using StandardClientProperties.SSL_CONTEXT, you will most likely have
to provide the SSLContext to the connection manager as well.
JerseyHttpClientBuilder#buildDefaultPoolingHttpClientConnectionManagerForApacheConnector(javax.net.ssl.SSLContext)}public static final JerseyClientProperty<org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy> CONNECTION_CLOSING_STRATEGY
public static final JerseyClientProperty<org.apache.http.conn.ConnectionKeepAliveStrategy> KEEPALIVE_STRATEGY
public static final JerseyClientProperty<org.apache.http.client.config.RequestConfig> REQUEST_CONFIG
public static final JerseyClientProperty<Boolean> CONNECTION_MANAGER_SHARED
public static ApacheClientProperties[] values()
for (ApacheClientProperties c : ApacheClientProperties.values()) System.out.println(c);
public static ApacheClientProperties valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2016–2024. All rights reserved.