类 OptionsInfoResult

java.lang.Object
com.obs.services.internal.service.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
  • 字段详细资料

    • allowOrigin

      protected String allowOrigin
    • allowHeaders

      protected List<String> allowHeaders
    • maxAge

      protected int maxAge
    • allowMethods

      protected List<String> allowMethods
    • exposeHeaders

      protected List<String> exposeHeaders
  • 构造器详细资料

    • OptionsInfoResult

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

      protected OptionsInfoResult()
  • 方法详细资料

    • 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