com.aliyun.oss.common.comm

## 类 ServiceClient

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

- 直接已知子类:
    DefaultServiceClient

      public abstract class ServiceClient
      extends Object

  Abstract service client that provides interfaces to access OSS services.

- - ### 嵌套类概要

    嵌套类
    限定符和类型 | 类和说明
    --- | ---
    `static class` | `ServiceClient.Request` Wrapper class based on `HttpMessage` that represents HTTP request message to OSS.

  - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `protected ClientConfiguration` | `config`

  - ### 构造器概要

    构造器
    限定符 | 构造器和说明
    --- | ---
    `protected` | `ServiceClient(ClientConfiguration config)`

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `ClientConfiguration` | `getClientConfiguration()`
    `protected abstract RetryStrategy` | `getDefaultRetryStrategy()`
    `ResponseMessage` | `sendRequest(RequestMessage request, ExecutionContext context)` Send HTTP request with specified context to OSS and wait for HTTP response.
    `protected abstract ResponseMessage` | `sendRequestCore(ServiceClient.Request request, ExecutionContext context)` Implements the core logic to send requests to Aliyun OSS services.
    `abstract void` | `shutdown()`

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

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

- - ### 字段详细资料

    - #### config

          protected ClientConfiguration config

  - ### 构造器详细资料

    - #### ServiceClient

          protected ServiceClient(ClientConfiguration config)

  - ### 方法详细资料

    - #### getClientConfiguration

          public ClientConfiguration getClientConfiguration()

    - #### sendRequest

          public ResponseMessage sendRequest(RequestMessage request,
                                    ExecutionContext context)
                                      throws ServiceException,
                                             ClientException

      Send HTTP request with specified context to OSS and wait for HTTP response.
      抛出:
        `ServiceException`
        `ClientException`

    - #### sendRequestCore

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

      Implements the core logic to send requests to Aliyun OSS services.
      抛出:
        `IOException`

    - #### getDefaultRetryStrategy

          protected abstract RetryStrategy getDefaultRetryStrategy()

    - #### shutdown

          public abstract void shutdown()

Copyright © 2020. All Rights Reserved.