org.apache.http.impl.client

## Class SystemDefaultHttpClient

- 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.SystemDefaultHttpClient

- All Implemented Interfaces:
    Closeable ， AutoCloseable ， HttpClient

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

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

  `DefaultHttpClient`的扩展使用系统属性预先配置。

  以下系统属性由此类考虑：

  - ssl.TrustManagerFactory.algorithm
  - javax.net.ssl.trustStoreType
  - javax.net.ssl.trustStore中
  - javax.net.ssl.trustStoreProvider
  - javax.net.ssl.trustStorePassword中
  - java.home
  - ssl.KeyManagerFactory.algorithm
  - javax.net.ssl.keyStoreType
  - javax.net.ssl.keyStore
  - javax.net.ssl.keyStoreProvider
  - javax.net.ssl.keyStorePassword
  - http.proxyHost
  - 把http.proxyPort
  - http.nonProxyHosts
  - http.keepAlive
  - http.maxConnections

  以下参数可用于自定义此类的行为：

  - `CoreProtocolPNames.PROTOCOL_VERSION`
  - `CoreProtocolPNames.STRICT_TRANSFER_ENCODING`
  - `CoreProtocolPNames.HTTP_ELEMENT_CHARSET`
  - `CoreProtocolPNames.USE_EXPECT_CONTINUE`
  - `CoreProtocolPNames.WAIT_FOR_CONTINUE`
  - `CoreProtocolPNames.USER_AGENT`
  - `CoreConnectionPNames.TCP_NODELAY`
  - `CoreConnectionPNames.SO_TIMEOUT`
  - `CoreConnectionPNames.SO_LINGER`
  - `CoreConnectionPNames.SO_REUSEADDR`
  - `CoreConnectionPNames.SOCKET_BUFFER_SIZE`
  - `CoreConnectionPNames.CONNECTION_TIMEOUT`
  - `CoreConnectionPNames.MAX_LINE_LENGTH`
  - `CoreConnectionPNames.MAX_HEADER_COUNT`
  - `CoreConnectionPNames.STALE_CONNECTION_CHECK`
  - `ConnRoutePNames.FORCED_ROUTE`
  - `ConnRoutePNames.LOCAL_ADDRESS`
  - `ConnRoutePNames.DEFAULT_PROXY`
  - `CookieSpecPNames.DATE_PATTERNS`
  - `CookieSpecPNames.SINGLE_COOKIE_HEADER`
  - `AuthPNames.CREDENTIAL_CHARSET`
  - `ClientPNames.COOKIE_POLICY`
  - `ClientPNames.HANDLE_AUTHENTICATION`
  - `ClientPNames.HANDLE_REDIRECTS`
  - `ClientPNames.MAX_REDIRECTS`
  - `ClientPNames.ALLOW_CIRCULAR_REDIRECTS`
  - `ClientPNames.VIRTUAL_HOST`
  - `ClientPNames.DEFAULT_HOST`
  - `ClientPNames.DEFAULT_HEADERS`
  - `ClientPNames.CONN_MANAGER_TIMEOUT`
  从以下版本开始：
    4.2

- - ### 构造方法摘要

    构造方法
    Constructor and Description
    `SystemDefaultHttpClient()` 已过时。
    `SystemDefaultHttpClient(HttpParams params)` 已过时。

  - ### 方法摘要

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected ClientConnectionManager` | `createClientConnectionManager()` 已过时。
    `protected ConnectionReuseStrategy` | `createConnectionReuseStrategy()` 已过时。
    `protected HttpRoutePlanner` | `createHttpRoutePlanner()` 已过时。

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

      `createHttpParams, createHttpProcessor, setDefaultHttpParams`

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

      `addRequestInterceptor, addRequestInterceptor, addResponseInterceptor, addResponseInterceptor, clearRequestInterceptors, clearResponseInterceptors, close, createAuthSchemeRegistry, createClientRequestDirector, createClientRequestDirector, createClientRequestDirector, createConnectionKeepAliveStrategy, createCookieSpecRegistry, createCookieStore, createCredentialsProvider, createHttpContext, createHttpRequestRetryHandler, 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`

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

    - #### SystemDefaultHttpClient

          public SystemDefaultHttpClient(HttpParams params)

      已过时。

    - #### SystemDefaultHttpClient

          public SystemDefaultHttpClient()

      已过时。

  - ### 方法详细信息

    - #### createClientConnectionManager

          protected ClientConnectionManager createClientConnectionManager()

      已过时。
      重写：
        `createClientConnectionManager`在 `AbstractHttpClient`

    - #### createHttpRoutePlanner

          protected HttpRoutePlanner createHttpRoutePlanner()

      已过时。
      重写：
        `createHttpRoutePlanner`在 `AbstractHttpClient`类

    - #### createConnectionReuseStrategy

          protected ConnectionReuseStrategy createConnectionReuseStrategy()

      已过时。
      重写：
        `createConnectionReuseStrategy`在 `AbstractHttpClient`

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

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