public class BucketCorsRule extends Object
Constructor and Description |
---|
BucketCorsRule() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getAllowedHeader()
Obtain the list of request headers allowed by the CORS rules.
|
List<String> |
getAllowedMethod()
Obtain the list of methods allowed by the CORS rules.
|
List<String> |
getAllowedOrigin()
Obtain the list of origins (character strings representing domain names) allowed by the CORS rules.
|
List<String> |
getExposeHeader()
Obtain the additional response headers allowed by the CORS rules.
|
String |
getId()
Obtain the CORS rule ID.
|
int |
getMaxAgeSecond()
Obtain the cache duration (in seconds) of the request result in the instance of ObsClient.
|
void |
setAllowedHeader(List<String> allowedHeader)
Set the list of request headers allowed by the CORS rules.
|
void |
setAllowedMethod(List<String> allowedMethod)
Set the methods allowed by the CORS rules.
|
void |
setAllowedOrigin(List<String> allowedOrigin)
Set the list of origins (character strings representing domain names) allowed by the CORS rules.
|
void |
setExposeHeader(List<String> exposeHeader)
Specify the additional response headers allowed by the CORS rules.
|
void |
setId(String id)
Set the CORS rule ID.
|
void |
setMaxAgeSecond(int maxAgeSecond)
Set the cache duration (in seconds) of the request result in the instance of ObsClient.
|
String |
toString() |
public String getId()
public void setId(String id)
id
- CORS rule IDpublic int getMaxAgeSecond()
public void setMaxAgeSecond(int maxAgeSecond)
maxAgeSecond
- Cache durationpublic List<String> getAllowedMethod()
public void setAllowedMethod(List<String> allowedMethod)
allowedMethod
- Method listpublic List<String> getAllowedOrigin()
public void setAllowedOrigin(List<String> allowedOrigin)
allowedOrigin
- List of request originspublic List<String> getAllowedHeader()
public void setAllowedHeader(List<String> allowedHeader)
allowedHeader
- List of request headerspublic List<String> getExposeHeader()
public void setExposeHeader(List<String> exposeHeader)
exposeHeader
- List of additional headersCopyright © 2019. All rights reserved.