com.aliyun.oss.common.comm

## 类 DefaultServiceClient

- java.lang.Object
- - com.aliyun.oss.common.comm.ServiceClient
  - - com.aliyun.oss.common.comm.DefaultServiceClient

- 直接已知子类:
    TimeoutServiceClient

      public class DefaultServiceClient
      extends ServiceClient

  Default implementation of `ServiceClient`.

- - ### 嵌套类概要

    - ### 从类继承的嵌套类/接口 com.aliyun.oss.common.comm.ServiceClient

      `ServiceClient.Request`

  - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `protected org.apache.http.client.AuthCache` | `authCache`
    `protected org.apache.http.conn.HttpClientConnectionManager` | `connectionManager`
    `protected org.apache.http.client.CredentialsProvider` | `credentialsProvider`
    `protected org.apache.http.impl.client.CloseableHttpClient` | `httpClient`
    `protected static com.aliyun.oss.common.comm.HttpRequestFactory` | `httpRequestFactory`
    `protected org.apache.http.HttpHost` | `proxyHttpHost`
    `protected org.apache.http.client.config.RequestConfig` | `requestConfig`

    - ### 从类继承的字段 com.aliyun.oss.common.comm.ServiceClient

      `config`

  - ### 构造器概要

    构造器
    构造器和说明
    `DefaultServiceClient(ClientConfiguration config)`

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `protected static ResponseMessage` | `buildResponse(ServiceClient.Request request, org.apache.http.client.methods.CloseableHttpResponse httpResponse)`
    `protected org.apache.http.impl.client.CloseableHttpClient` | `createHttpClient(org.apache.http.conn.HttpClientConnectionManager connectionManager)`
    `protected org.apache.http.conn.HttpClientConnectionManager` | `createHttpClientConnectionManager()`
    `protected org.apache.http.client.protocol.HttpClientContext` | `createHttpContext()`
    `protected RetryStrategy` | `getDefaultRetryStrategy()`
    `ResponseMessage` | `sendRequestCore(ServiceClient.Request request, ExecutionContext context)` Implements the core logic to send requests to Aliyun OSS services.
    `void` | `shutdown()`

    - ### 从类继承的方法 com.aliyun.oss.common.comm.ServiceClient

      `getClientConfiguration, sendRequest`

    - ### 从类继承的方法 java.lang.Object

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

- - ### 字段详细资料

    - #### httpRequestFactory

          protected static com.aliyun.oss.common.comm.HttpRequestFactory httpRequestFactory

    - #### httpClient

          protected org.apache.http.impl.client.CloseableHttpClient httpClient

    - #### connectionManager

          protected org.apache.http.conn.HttpClientConnectionManager connectionManager

    - #### requestConfig

          protected org.apache.http.client.config.RequestConfig requestConfig

    - #### credentialsProvider

          protected org.apache.http.client.CredentialsProvider credentialsProvider

    - #### proxyHttpHost

          protected org.apache.http.HttpHost proxyHttpHost

    - #### authCache

          protected org.apache.http.client.AuthCache authCache

  - ### 构造器详细资料

    - #### DefaultServiceClient

          public DefaultServiceClient(ClientConfiguration config)

  - ### 方法详细资料

    - #### sendRequestCore

          public ResponseMessage sendRequestCore(ServiceClient.Request request,
                                        ExecutionContext context)
                                          throws IOException

      从类复制的说明: `ServiceClient`
      Implements the core logic to send requests to Aliyun OSS services.
      指定者:
        `sendRequestCore` 在类中 `ServiceClient`
      抛出:
        `IOException`

    - #### buildResponse

          protected static ResponseMessage buildResponse(ServiceClient.Request request,
                                      org.apache.http.client.methods.CloseableHttpResponse httpResponse)
                                                  throws IOException

      抛出:
        `IOException`

    - #### getDefaultRetryStrategy

          protected RetryStrategy getDefaultRetryStrategy()

      指定者:
        `getDefaultRetryStrategy` 在类中 `ServiceClient`

    - #### createHttpClient

          protected org.apache.http.impl.client.CloseableHttpClient createHttpClient(org.apache.http.conn.HttpClientConnectionManager connectionManager)

    - #### createHttpClientConnectionManager

          protected org.apache.http.conn.HttpClientConnectionManager createHttpClientConnectionManager()

    - #### createHttpContext

          protected org.apache.http.client.protocol.HttpClientContext createHttpContext()

    - #### shutdown

          public void shutdown()

      指定者:
        `shutdown` 在类中 `ServiceClient`

Copyright © 2020. All Rights Reserved.