@Deprecated @ThreadSafe public class ContentEncodingHttpClient extends DefaultHttpClient
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 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.| Constructor and Description |
|---|
ContentEncodingHttpClient()
Deprecated.
|
ContentEncodingHttpClient(ClientConnectionManager conman,
HttpParams params)
Deprecated.
Creates a new HTTP client from parameters and a connection manager.
|
ContentEncodingHttpClient(HttpParams params)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected BasicHttpProcessor |
createHttpProcessor()
Deprecated.
Create the processor with the following interceptors:
RequestDefaultHeaders
RequestContent
RequestTargetHost
RequestClientConnControl
RequestUserAgent
RequestExpectContinue
RequestAddCookies
ResponseProcessCookies
RequestAuthCache
RequestTargetAuthentication
RequestProxyAuthentication
|
createHttpParams, setDefaultHttpParamsaddRequestInterceptor, addRequestInterceptor, addResponseInterceptor, addResponseInterceptor, clearRequestInterceptors, clearResponseInterceptors, createAuthSchemeRegistry, createClientConnectionManager, createClientRequestDirector, createClientRequestDirector, createClientRequestDirector, createConnectionKeepAliveStrategy, createConnectionReuseStrategy, createCookieSpecRegistry, createCookieStore, createCredentialsProvider, createHttpContext, createHttpRequestRetryHandler, createHttpRoutePlanner, createProxyAuthenticationHandler, createProxyAuthenticationStrategy, createRedirectHandler, createRequestExecutor, createTargetAuthenticationHandler, createTargetAuthenticationStrategy, createUserTokenHandler, determineParams, execute, execute, execute, execute, execute, execute, execute, execute, getAuthSchemes, getBackoffManager, getConnectionBackoffStrategy, getConnectionKeepAliveStrategy, getConnectionManager, getConnectionReuseStrategy, getCookieSpecs, getCookieStore, getCredentialsProvider, getHttpProcessor, getHttpRequestRetryHandler, getParams, getProxyAuthenticationHandler, getProxyAuthenticationStrategy, getRedirectHandler, getRedirectStrategy, getRequestExecutor, getRequestInterceptor, getRequestInterceptorCount, getResponseInterceptor, getResponseInterceptorCount, getRoutePlanner, getTargetAuthenticationHandler, getTargetAuthenticationStrategy, getUserTokenHandler, removeRequestInterceptorByClass, removeResponseInterceptorByClass, setAuthSchemes, setBackoffManager, setConnectionBackoffStrategy, setCookieSpecs, setCookieStore, setCredentialsProvider, setHttpRequestRetryHandler, setKeepAliveStrategy, setParams, setProxyAuthenticationHandler, setProxyAuthenticationStrategy, setRedirectHandler, setRedirectStrategy, setReuseStrategy, setRoutePlanner, setTargetAuthenticationHandler, setTargetAuthenticationStrategy, setUserTokenHandlerpublic ContentEncodingHttpClient(ClientConnectionManager conman, HttpParams params)
params - the parametersconman - the connection managerpublic ContentEncodingHttpClient(HttpParams params)
params - public ContentEncodingHttpClient()
protected BasicHttpProcessor createHttpProcessor()
createHttpProcessor in class DefaultHttpClientCopyright © 1999–2013 The Apache Software Foundation. All rights reserved.