com.obs.services.model

## 类 OptionsInfoResult

- java.lang.Object
- - com.obs.services.internal.InternalHeaderResponse
  - - com.obs.services.model.HeaderResponse
    - - com.obs.services.model.OptionsInfoResult

- 直接已知子类:
    BucketMetadataInfoResult

      public class OptionsInfoResult
      extends HeaderResponse

  Response to a bucket or object preflight request

- - ### 字段概要

    - ### 从类继承的字段 com.obs.services.internal.InternalHeaderResponse

      `responseHeaders, statusCode`

  - ### 构造器概要

    构造器
    构造器和说明
    `OptionsInfoResult(String allowOrigin, List<String> allowHeaders, int maxAge, List<String> allowMethods, List<String> exposeHeaders)`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `List<String>` | `getAllowHeaders()` Obtain the list of allowed request headers.
    `List<String>` | `getAllowMethods()` Obtain the list of allowed cross-origin request methods.
    `String` | `getAllowOrigin()` Obtain the origin of the allowed cross-origin request.
    `List<String>` | `getExposeHeaders()` Obtain the list of allowed additional headers in the response.
    `int` | `getMaxAge()` Obtain the cache duration (in seconds) of the request result in the instance of ObsClient.
    `String` | `toString()`

    - ### 从类继承的方法 com.obs.services.model.HeaderResponse

      `getRequestId, getResponseHeaders, getStatusCode`

    - ### 从类继承的方法 com.obs.services.internal.InternalHeaderResponse

      `setResponseHeaders, setStatusCode`

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

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

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

    - #### OptionsInfoResult

          public OptionsInfoResult(String allowOrigin,
                                   List<String> allowHeaders,
                                   int maxAge,
                                   List<String> allowMethods,
                                   List<String> exposeHeaders)

  - ### 方法详细资料

    - #### getAllowOrigin

          public String getAllowOrigin()

      Obtain the origin of the allowed cross-origin request.
      返回:
        Origin of the allowed cross-origin request

    - #### getAllowHeaders

          public List<String> getAllowHeaders()

      Obtain the list of allowed request headers.
      返回:
        List of allowed request headers

    - #### getMaxAge

          public int getMaxAge()

      Obtain the cache duration (in seconds) of the request result in the instance of ObsClient.
      返回:
        Cache duration of the request result in the instance of ObsClient

    - #### getAllowMethods

          public List<String> getAllowMethods()

      Obtain the list of allowed cross-origin request methods.
      返回:
        List of allowed cross-origin request methods

    - #### getExposeHeaders

          public List<String> getExposeHeaders()

      Obtain the list of allowed additional headers in the response.
      返回:
        List of allowed additional headers in the response

    - #### toString

          public String toString()

      覆盖:
        `toString` 在类中 `HeaderResponse`

Copyright © 2021. All rights reserved.