类 BucketCorsRule

java.lang.Object
com.obs.services.model.BucketCorsRule

public class BucketCorsRule extends Object
Bucket CORS rules
  • 构造器详细资料

    • BucketCorsRule

      public BucketCorsRule()
  • 方法详细资料

    • getId

      public String getId()
      Obtain the CORS rule ID.
      返回:
      CORS rule ID
    • setId

      public void setId(String id)
      Set the CORS rule ID.
      参数:
      id - CORS rule ID
    • getMaxAgeSecond

      public int getMaxAgeSecond()
      Obtain the cache duration (in seconds) of the request result in the instance of ObsClient.
      返回:
      Cache duration
    • setMaxAgeSecond

      public void setMaxAgeSecond(int maxAgeSecond)
      Set the cache duration (in seconds) of the request result in the instance of ObsClient.
      参数:
      maxAgeSecond - Cache duration
    • getAllowedMethod

      public List<String> getAllowedMethod()
      Obtain the list of methods allowed by the CORS rules.
      返回:
      Method list
    • setAllowedMethod

      public void setAllowedMethod(List<String> allowedMethod)
      Set the methods allowed by the CORS rules. Possible values are GET, PUT, DELETE, POST, and HEAD.
      参数:
      allowedMethod - Method list
    • getAllowedOrigin

      public List<String> getAllowedOrigin()
      Obtain the list of origins (character strings representing domain names) allowed by the CORS rules.
      返回:
      List of request origins
    • setAllowedOrigin

      public void setAllowedOrigin(List<String> allowedOrigin)
      Set the list of origins (character strings representing domain names) allowed by the CORS rules.
      参数:
      allowedOrigin - List of request origins
    • getAllowedHeader

      public List<String> getAllowedHeader()
      Obtain the list of request headers allowed by the CORS rules.
      返回:
      List of request headers
    • setAllowedHeader

      public void setAllowedHeader(List<String> allowedHeader)
      Set the list of request headers allowed by the CORS rules.
      参数:
      allowedHeader - List of request headers
    • getExposeHeader

      public List<String> getExposeHeader()
      Obtain the additional response headers allowed by the CORS rules.
      返回:
      List of additional headers
    • setExposeHeader

      public void setExposeHeader(List<String> exposeHeader)
      Specify the additional response headers allowed by the CORS rules.
      参数:
      exposeHeader - List of additional headers
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object