类 BucketCorsRule
java.lang.Object
com.obs.services.model.BucketCorsRule
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Obtain the list of request headers allowed by the CORS rules.Obtain the list of methods allowed by the CORS rules.Obtain the list of origins (character strings representing domain names) allowed by the CORS rules.Obtain the additional response headers allowed by the CORS rules.getId()Obtain the CORS rule ID.intObtain the cache duration (in seconds) of the request result in the instance of ObsClient.voidsetAllowedHeader(List<String> allowedHeader) Set the list of request headers allowed by the CORS rules.voidsetAllowedMethod(List<String> allowedMethod) Set the methods allowed by the CORS rules.voidsetAllowedOrigin(List<String> allowedOrigin) Set the list of origins (character strings representing domain names) allowed by the CORS rules.voidsetExposeHeader(List<String> exposeHeader) Specify the additional response headers allowed by the CORS rules.voidSet the CORS rule ID.voidsetMaxAgeSecond(int maxAgeSecond) Set the cache duration (in seconds) of the request result in the instance of ObsClient.toString()
-
构造器详细资料
-
BucketCorsRule
public BucketCorsRule()
-
-
方法详细资料
-
getId
-
setId
-
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
-
setAllowedMethod
-
getAllowedOrigin
-
setAllowedOrigin
-
getAllowedHeader
-
setAllowedHeader
-
getExposeHeader
-
setExposeHeader
-
toString
-