If an {@link ApacheHttpClientHandler} is not explicitly passed as aconstructor or method parameter then by default an instance is created with an {@link HttpClient} constructed with a {@link MultiThreadedHttpConnectionManager}instance.
The following properties are only supported at construction of this class: {@link ApacheHttpClientConfig#PROPERTY_PREEMPTIVE_AUTHENTICATION} and{@link ClientConfig#PROPERTY_CONNECT_TIMEOUT}.
By default a request entity is buffered and repeatable such that authorization may be performed automatically in response to a 401 response.
If the property {@link ClientConfig#PROPERTY_CHUNKED_ENCODING_SIZE} sizeis set to a value greater than 0 then chunked encoding will be enabled and the request entity (if present) will not be buffered and is not repeatable. For authorization to work in such scenarios the property {@link ApacheHttpClientConfig#PROPERTY_PREEMPTIVE_AUTHENTICATION} mustbe set to true.
If a response entity is obtained that is an instance of {@link java.io.Closeable}then the instance MUST be closed after processing the entity to release connection-based resources.
If a {@link com.sun.jersey.api.client.ClientResponse} is obtained and anentity is not read from the response then {@link com.sun.jersey.api.client.ClientResponse#close() } MUST be called after processing the response to release connection-based resources. @author jorgeluisw@mac.com @author Paul.Sandoz@Sun.Com
|
|
|
|
|
|
|
|