org.apache.http.impl.conn

## Class DefaultHttpClientConnectionOperator

- java.lang.Object
- - org.apache.http.impl.conn.DefaultHttpClientConnectionOperator

- All Implemented Interfaces:
    HttpClientConnectionOperator

      @Contract(threading=IMMUTABLE_CONDITIONAL)
      public class DefaultHttpClientConnectionOperator
      extends Object
      implements HttpClientConnectionOperator

  默认实现`HttpClientConnectionOperator`用作Http客户端的默认值，当用户没有提供实例给`BasicHttpClientConnectionManager`或`PoolingHttpClientConnectionManager`构造函数时。
  从以下版本开始：
    4.4

- - ### 构造方法摘要

    构造方法
    Constructor and Description
    `DefaultHttpClientConnectionOperator(Lookup<ConnectionSocketFactory> socketFactoryRegistry, SchemePortResolver schemePortResolver, DnsResolver dnsResolver)`

  - ### 方法摘要

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `connect(ManagedHttpClientConnection conn, HttpHost host, InetSocketAddress localAddress, int connectTimeout, SocketConfig socketConfig, HttpContext context)`
    `void` | `upgrade(ManagedHttpClientConnection conn, HttpHost host, HttpContext context)`

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

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

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

    - #### DefaultHttpClientConnectionOperator

          public DefaultHttpClientConnectionOperator(Lookup<ConnectionSocketFactory> socketFactoryRegistry,
                                             SchemePortResolver schemePortResolver,
                                             DnsResolver dnsResolver)

  - ### 方法详细信息

    - #### connect

          public void connect(ManagedHttpClientConnection conn,
                     HttpHost host,
                     InetSocketAddress localAddress,
                     int connectTimeout,
                     SocketConfig socketConfig,
                     HttpContext context)
                       throws IOException

      Specified by:
        `connect`在界面 `HttpClientConnectionOperator`
      异常
        `IOException`

    - #### upgrade

          public void upgrade(ManagedHttpClientConnection conn,
                     HttpHost host,
                     HttpContext context)
                       throws IOException

      Specified by:
        `upgrade`在界面 `HttpClientConnectionOperator`
      异常
        `IOException`

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

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