com.aliyun.oss.common.comm

## 类 HttpMesssage

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

- 直接已知子类:
    RequestMessage, ResponseMessage, ServiceClient.Request

      public abstract class HttpMesssage
      extends Object

  Common class for both HTTP request and HTTP response.

- - ### 构造器概要

    构造器
    构造器和说明
    `HttpMesssage()`

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `addHeader(String key, String value)`
    `void` | `close()`
    `InputStream` | `getContent()`
    `long` | `getContentLength()`
    `Map<String,String>` | `getHeaders()`
    `void` | `setContent(InputStream content)`
    `void` | `setContentLength(long contentLength)`
    `void` | `setHeaders(Map<String,String> headers)`

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

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

- - ### 构造器详细资料

    - #### HttpMesssage

          public HttpMesssage()

  - ### 方法详细资料

    - #### getHeaders

          public Map<String,String> getHeaders()

    - #### setHeaders

          public void setHeaders(Map<String,String> headers)

    - #### addHeader

          public void addHeader(String key,
                       String value)

    - #### getContent

          public InputStream getContent()

    - #### setContent

          public void setContent(InputStream content)

    - #### getContentLength

          public long getContentLength()

    - #### setContentLength

          public void setContentLength(long contentLength)

    - #### close

          public void close()
                     throws IOException

      抛出:
        `IOException`

Copyright © 2020. All Rights Reserved.