com.aliyun.oss.model

## 类 ResponseHeaderOverrides

- java.lang.Object
- - com.aliyun.oss.model.ResponseHeaderOverrides

-     public class ResponseHeaderOverrides
      extends Object

  The class wraps the HTTP Get response headers to override. For Response headers, please refer to https://help.aliyun.com/document_detail/31980.html?spm=5176.doc31980.6.870. zfxavo Basically it tells the OSS to return the specified headers in the response.

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `static String` | `RESPONSE_HEADER_CACHE_CONTROL`
    `static String` | `RESPONSE_HEADER_CONTENT_DISPOSITION`
    `static String` | `RESPONSE_HEADER_CONTENT_ENCODING`
    `static String` | `RESPONSE_HEADER_CONTENT_LANGUAGE`
    `static String` | `RESPONSE_HEADER_CONTENT_TYPE`
    `static String` | `RESPONSE_HEADER_EXPIRES`

  - ### 构造器概要

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

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `String` | `getCacheControl()` Gets the Cache-Control header.
    `String` | `getContentDisposition()` Gets the Content-Disposition header.
    `String` | `getContentEncoding()` Gets the Content-Encoding header.
    `String` | `getContentLangauge()` Gets the content language header.
    `String` | `getContentType()` Gets the content type.
    `String` | `getExpires()` Gets the expires header.
    `void` | `setCacheControl(String cacheControl)` Sets the Cache-Control header.
    `void` | `setContentDisposition(String contentDisposition)` Sets the Content-Disposition header.
    `void` | `setContentEncoding(String contentEncoding)` Sets the Content-Encoding header.
    `void` | `setContentLangauge(String contentLangauge)` Sets the content language.
    `void` | `setContentType(String contentType)` Sets the content type.
    `void` | `setExpires(String expires)` Sets the expires header.

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

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

- - ### 字段详细资料

    - #### RESPONSE_HEADER_CONTENT_TYPE

          public static final String RESPONSE_HEADER_CONTENT_TYPE

      另请参阅:
        常量字段值

    - #### RESPONSE_HEADER_CONTENT_LANGUAGE

          public static final String RESPONSE_HEADER_CONTENT_LANGUAGE

      另请参阅:
        常量字段值

    - #### RESPONSE_HEADER_EXPIRES

          public static final String RESPONSE_HEADER_EXPIRES

      另请参阅:
        常量字段值

    - #### RESPONSE_HEADER_CACHE_CONTROL

          public static final String RESPONSE_HEADER_CACHE_CONTROL

      另请参阅:
        常量字段值

    - #### RESPONSE_HEADER_CONTENT_DISPOSITION

          public static final String RESPONSE_HEADER_CONTENT_DISPOSITION

      另请参阅:
        常量字段值

    - #### RESPONSE_HEADER_CONTENT_ENCODING

          public static final String RESPONSE_HEADER_CONTENT_ENCODING

      另请参阅:
        常量字段值

  - ### 构造器详细资料

    - #### ResponseHeaderOverrides

          public ResponseHeaderOverrides()

  - ### 方法详细资料

    - #### getContentType

          public String getContentType()

      Gets the content type. If the type is not specified, return null.
      返回:
        The override content type. If it's not specified, return null.

    - #### setContentType

          public void setContentType(String contentType)

      Sets the content type.
      参数:
        `contentType` - The override content type.

    - #### getContentLangauge

          public String getContentLangauge()

      Gets the content language header. If it's not specified, returns null.
      返回:
        The override content language.

    - #### setContentLangauge

          public void setContentLangauge(String contentLangauge)

      Sets the content language.
      参数:
        `contentLangauge` - The override content language header.

    - #### getExpires

          public String getExpires()

      Gets the expires header. If it's not specfied, return null.
      返回:
        The override expires header.

    - #### setExpires

          public void setExpires(String expires)

      Sets the expires header.
      参数:
        `expires` - The override expires header.

    - #### getCacheControl

          public String getCacheControl()

      Gets the Cache-Control header. If it's not specified, return null.
      返回:
        The override Cache-Control header.

    - #### setCacheControl

          public void setCacheControl(String cacheControl)

      Sets the Cache-Control header.
      参数:
        `cacheControl` - The override Cache-Control header.

    - #### getContentDisposition

          public String getContentDisposition()

      Gets the Content-Disposition header. If it's not specified, return null.
      返回:
        The override Content-Disposition header.

    - #### setContentDisposition

          public void setContentDisposition(String contentDisposition)

      Sets the Content-Disposition header.
      参数:
        `contentDisposition` - The override Content-Disposition header.

    - #### getContentEncoding

          public String getContentEncoding()

      Gets the Content-Encoding header.
      返回:
        The override Content-Encoding header.

    - #### setContentEncoding

          public void setContentEncoding(String contentEncoding)

      Sets the Content-Encoding header.
      参数:
        `contentEncoding` - The override Content-Encoding header.

Copyright © 2020. All Rights Reserved.