类 BucketCorsRule
java.lang.Object
cn.warpin.thirdPart.huawei.obs.obs.services.model.BucketCorsRule
Bucket CORS rules
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明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()
-
字段详细资料
-
id
-
maxAgeSecond
private int maxAgeSecond -
allowedMethod
-
allowedOrigin
-
allowedHeader
-
exposeHeader
-
-
构造器详细资料
-
BucketCorsRule
public BucketCorsRule()
-
-
方法详细资料
-
getId
Obtain the CORS rule ID.- 返回:
- CORS rule ID
-
setId
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
Obtain the list of methods allowed by the CORS rules.- 返回:
- Method list
-
setAllowedMethod
Set the methods allowed by the CORS rules. Possible values are GET, PUT, DELETE, POST, and HEAD.- 参数:
allowedMethod- Method list
-
getAllowedOrigin
Obtain the list of origins (character strings representing domain names) allowed by the CORS rules.- 返回:
- List of request origins
-
setAllowedOrigin
Set the list of origins (character strings representing domain names) allowed by the CORS rules.- 参数:
allowedOrigin- List of request origins
-
getAllowedHeader
Obtain the list of request headers allowed by the CORS rules.- 返回:
- List of request headers
-
setAllowedHeader
Set the list of request headers allowed by the CORS rules.- 参数:
allowedHeader- List of request headers
-
getExposeHeader
Obtain the additional response headers allowed by the CORS rules.- 返回:
- List of additional headers
-
setExposeHeader
Specify the additional response headers allowed by the CORS rules.- 参数:
exposeHeader- List of additional headers
-
toString
-