Top Description Constructors Methods
org.apache.http.impl.client

public Class ContentEncodingHttpClient

extends DefaultHttpClient
Class Inheritance
Annotations
@Deprecated
@Contract
threading:SAFE_CONDITIONAL
Imports
org.apache.http.annotation.Contract, .ThreadingBehavior, org.apache.http.client.protocol.RequestAcceptEncoding, .ResponseContentEncoding, org.apache.http.conn.ClientConnectionManager, org.apache.http.params.HttpParams, org.apache.http.protocol.BasicHttpProcessor

Deprecated

(4.2) use HttpClientBuilder

DefaultHttpClient sub-class which includes a RequestAcceptEncoding for the request and response. Deprecation note: due to the way this class modifies a response body without changing the response headers to reflect the entity changes, it cannot be used as the "backend" for a caching org.apache.http.client.HttpClient and still have uncompressed responses be cached. Users are encouraged to use the DecompressingHttpClient instead of this class, which can be wired in either before or after caching, depending on whether you want to cache responses in compressed or uncompressed form.
Since
4.1

Constructor Summary

AccessConstructor and Description
public
ContentEncodingHttpClient(final ClientConnectionManager
the connection manager
conman
,
final HttpParams
the parameters
params
)

Deprecated as a consequence of ClientConnectionManager and HttpParams being deprecated.
Creates a new HTTP client from parameters and a connection manager.
public
ContentEncodingHttpClient(final HttpParams params)

Deprecated as a consequence of HttpParams being deprecated.
public

Method Summary

Modifier and TypeMethod and Description
protected BasicHttpProcessor
Inherited from org.apache.http.impl.client.DefaultHttpClient:
createHttpParamssetDefaultHttpParams

Constructor Detail

ContentEncodingHttpClientback to summary
public ContentEncodingHttpClient(final ClientConnectionManager conman, final HttpParams params)

Deprecated

as a consequence of ClientConnectionManager and HttpParams being deprecated. See corresponding docs for further information.

Creates a new HTTP client from parameters and a connection manager.

Parameters
conman:ClientConnectionManager

the connection manager

params:HttpParams

the parameters

ContentEncodingHttpClientback to summary
public ContentEncodingHttpClient(final HttpParams params)

Deprecated

as a consequence of HttpParams being deprecated. See corresponding docs for further information.

ContentEncodingHttpClientback to summary
public ContentEncodingHttpClient()

Method Detail

createHttpProcessorback to summary
protected BasicHttpProcessor createHttpProcessor()

Overrides org.apache.http.impl.client.DefaultHttpClient.createHttpProcessor.

Doc from org.apache.http.impl.client.DefaultHttpClient.createHttpProcessor.

Deprecated

as a consequence of BasicHttpProcessor being deprecated. See corresponding docs for further information.

Create the processor with the following interceptors:

Returns:BasicHttpProcessor

the processor with the added interceptors.

Annotations
@Override