|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.client.ClientProperties
public final class ClientProperties
Jersey client implementation configuration properties.
| Field Summary | |
|---|---|
static java.lang.String |
ASYNC_THREADPOOL_SIZE
Asynchronous thread pool size. |
static java.lang.String |
BUFFER_RESPONSE_ENTITY_ON_EXCEPTION
Automatic response buffering in case of an exception. |
static java.lang.String |
CHUNKED_ENCODING_SIZE
Chunked encoding size. |
static java.lang.String |
CONNECT_TIMEOUT
Connect timeout interval, in milliseconds. |
static java.lang.String |
FEATURE_DISABLE_AUTO_DISCOVERY
If true then disable auto-discovery on the client. |
static java.lang.String |
FEATURE_DISABLE_JSON_PROCESSING
If true then disable registration of Json Processing (JSR-353) feature on client. |
static java.lang.String |
FOLLOW_REDIRECTS
Automatic redirection. |
static java.lang.String |
HTTP_URL_CONNECTION_SET_METHOD_WORKAROUND
A value of true declares that the client will try to set unsupported HTTP method
to HttpURLConnection via reflection. |
static java.lang.String |
READ_TIMEOUT
Read timeout interval, in milliseconds. |
static java.lang.String |
USE_ENCODING
If EncodingFilter is registered, this property indicates the value
of Content-Encoding property the filter should be adding. |
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String FOLLOW_REDIRECTS
true declares that the client will
automatically redirect to the URI declared in 3xx responses.
The value MUST be an instance convertible to Boolean.
The default value is true.
The name of the configuration property is "jersey.config.client.followRedirects".
public static final java.lang.String READ_TIMEOUT
Integer.
A value of zero (0) is equivalent to an interval of infinity.
The default value is infinity (0).
The name of the configuration property is "jersey.config.client.readTimeout".
public static final java.lang.String CONNECT_TIMEOUT
Integer.
A value of zero (0) is equivalent to an interval of infinity.
The default value is infinity (0).
The name of the configuration property is "jersey.config.client.connectTimeout".
public static final java.lang.String CHUNKED_ENCODING_SIZE
Integer.
If the property is absent then chunked encoding will not be used.
A value <= 0 declares that chunked encoding will be used with
the default chunk size. A value > 0 declares that chunked encoding
will be used with the value as the declared chunk size.
A default value is not set.
The name of the configuration property is "jersey.config.client.chunkedEncodingSize".
public static final java.lang.String BUFFER_RESPONSE_ENTITY_ON_EXCEPTION
true declares that the client will automatically read &
buffer the response entity (if any) and close all resources associated with
the response.
The value MUST be an instance convertible to Boolean.
The default value is true.
The name of the configuration property is "jersey.config.client.bufferResponseEntityOnException".
public static final java.lang.String ASYNC_THREADPOOL_SIZE
Integer.
If the property is absent then thread pool used for async requests will
be initialized as default cached thread pool, which creates new thread
for every new request, see Executors. When
a value > 0 is provided, the created cached thread pool limited to that
number of threads will be utilized.
A default value is not set.
The name of the configuration property is "jersey.config.client.async.threadPoolSize".
public static final java.lang.String USE_ENCODING
EncodingFilter is registered, this property indicates the value
of Content-Encoding property the filter should be adding.
The value MUST be an instance of String.
The default value is null.
The name of the configuration property is "jersey.config.client.useEncoding".
public static final java.lang.String HTTP_URL_CONNECTION_SET_METHOD_WORKAROUND
true declares that the client will try to set unsupported HTTP method
to HttpURLConnection via reflection.
NOTE: Enabling this feature might cause security related warnings/errors and it might break when other JDK implementation is used. Use only when you know what you are doing.
The value MUST be an instance of Boolean.
The default value is false.
The name of the configuration property is "jersey.config.client.httpUrlConnection.setMethodWorkaround".
public static final java.lang.String FEATURE_DISABLE_AUTO_DISCOVERY
true then disable auto-discovery on the client.
By default auto-discovery on client is automatically enabled if global property "jersey.config.disableAutoDiscovery" is not disabled. If set then the client property value overrides the global property value.
The default value is false.
The name of the configuration property is "jersey.config.disableAutoDiscovery.client".
CommonProperties.FEATURE_DISABLE_AUTO_DISCOVERY,
Constant Field Valuespublic static final java.lang.String FEATURE_DISABLE_JSON_PROCESSING
true then disable registration of Json Processing (JSR-353) feature on client.
By default Json Processing on client is automatically enabled if global property "jersey.config.disableJsonProcessing" is not disabled. If set then the client property value overrides the global property value.
The default value is false.
The name of the configuration property is "jersey.config.disableJsonProcessing.client".
CommonProperties.FEATURE_DISABLE_JSON_PROCESSING,
Constant Field Values
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||