org.apache.http.impl.client

## Class ContentEncodingHttpClient

- java.lang.Object
- - org.apache.http.impl.client.CloseableHttpClient
  - - org.apache.http.impl.client.AbstractHttpClient
    - - org.apache.http.impl.client.DefaultHttpClient
      - - org.apache.http.impl.client.ContentEncodingHttpClient

- All Implemented Interfaces:
    Closeable ， AutoCloseable ， HttpClient

  已过时。
  （4.2）使用`HttpClientBuilder`

      @Deprecated
      @Contract(threading=SAFE_CONDITIONAL)
      public class ContentEncodingHttpClient
      extends DefaultHttpClient

  `DefaultHttpClient`子类，其中包含`RequestAcceptEncoding`的请求和响应。 弃用笔记：由于此类修改响应正文而不更改响应标头以反映实体更改的方式，因此不能将其用作缓存的“后端” `HttpClient`，并且仍将缓存未压缩的响应。 鼓励用户使用`DecompressingHttpClient`而不是此类，可以在缓存之前或之后连接，具体取决于您是要以压缩或未压缩形式缓存响应。
  从以下版本开始：
    4.1

- - ### 构造方法摘要

    构造方法
    Constructor and Description
    `ContentEncodingHttpClient()` 已过时。
    `ContentEncodingHttpClient(ClientConnectionManager conman, HttpParams params)` 已过时。 从参数和连接管理器创建一个新的HTTP客户端。
    `ContentEncodingHttpClient(HttpParams params)` 已过时。

  - ### 方法摘要

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected BasicHttpProcessor` | `createHttpProcessor()` 已过时。 使用以下拦截器创建处理器： `RequestDefaultHeaders` `RequestContent` `RequestTargetHost` `RequestClientConnControl` `RequestUserAgent` `RequestExpectContinue` `RequestAddCookies` `ResponseProcessCookies` `RequestAuthCache` `RequestTargetAuthentication` `RequestProxyAuthentication`

    - ### Methods inherited from class org.apache.http.impl.client.DefaultHttpClient

      `createHttpParams, setDefaultHttpParams`

    - ### Methods inherited from class org.apache.http.impl.client.AbstractHttpClient

      `addRequestInterceptor, addRequestInterceptor, addResponseInterceptor, addResponseInterceptor, clearRequestInterceptors, clearResponseInterceptors, close, createAuthSchemeRegistry, createClientConnectionManager, createClientRequestDirector, createClientRequestDirector, createClientRequestDirector, createConnectionKeepAliveStrategy, createConnectionReuseStrategy, createCookieSpecRegistry, createCookieStore, createCredentialsProvider, createHttpContext, createHttpRequestRetryHandler, createHttpRoutePlanner, createProxyAuthenticationHandler, createProxyAuthenticationStrategy, createRedirectHandler, createRequestExecutor, createTargetAuthenticationHandler, createTargetAuthenticationStrategy, createUserTokenHandler, determineParams, doExecute, 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, setUserTokenHandler`

    - ### Methods inherited from class org.apache.http.impl.client.CloseableHttpClient

      `execute, execute, execute, execute, execute, execute, execute, execute`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造方法详细信息

    - #### ContentEncodingHttpClient

          public ContentEncodingHttpClient(ClientConnectionManager conman,
                                   HttpParams params)

      已过时。
      从参数和连接管理器创建一个新的HTTP客户端。
      参数
        `params` - 参数
        `conman` - 连接管理器

    - #### ContentEncodingHttpClient

          public ContentEncodingHttpClient(HttpParams params)

      已过时。
      参数
        `params` -

    - #### ContentEncodingHttpClient

          public ContentEncodingHttpClient()

      已过时。

  - ### 方法详细信息

    - #### createHttpProcessor

          protected BasicHttpProcessor createHttpProcessor()

      已过时。
      使用以下拦截器创建处理器：
      - `RequestDefaultHeaders`
      - `RequestContent`
      - `RequestTargetHost`
      - `RequestClientConnControl`
      - `RequestUserAgent`
      - `RequestExpectContinue`
      - `RequestAddCookies`
      - `ResponseProcessCookies`
      - `RequestAuthCache`
      - `RequestTargetAuthentication`
      - `RequestProxyAuthentication`

      重写：
        `createHttpProcessor`在 `DefaultHttpClient`
      结果
        处理器带有拦截器。

Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.

本帮助文档是使用 《谷歌翻译》翻译，请与英文版配合使用 by--QQ:654638585