|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.baidubce.services.bos.model.CorsConfiguration
public class CorsConfiguration
CorsConfiguration for Bucket CORS(Cross-Origin Resource Sharing). Bucket's CORS rule container. Allow up to 100 rules. If there are multiple configurations, the order of execution is from top to bottom. Required Parameters: allowedOrigins. Required Parameters: allowedMethods. Optional Parameters: allowedHeaders. Optional Parameters: allowedExposeHeaders. Optional Parameters: maxAgeSeconds.
Constructor Summary | |
---|---|
CorsConfiguration()
The void Constructor of Bucket CORS. |
|
CorsConfiguration(List<String> allowedOrigins,
List<AllowedMethods> allowedMethods,
List<String> allowedHeaders,
List<String> allowedExposeHeaders,
int maxAgeSeconds)
The Constructor of Bucket CORS. |
Method Summary | |
---|---|
List<String> |
getAllowedExposeHeaders()
Gets allowedExposeHeaders of Bucket CORS. |
List<String> |
getAllowedHeaders()
Gets allowedHeaders of Bucket CORS. |
List<AllowedMethods> |
getAllowedMethods()
Gets allowedMethods of Bucket CORS. |
List<String> |
getAllowedOrigins()
Gets allowedOrigins of Bucket CORS. |
int |
getMaxAgeSeconds()
Gets maxAgeSeconds of Bucket CORS. |
void |
setAllowedExposeHeaders(List<String> allowedExposeHeaders)
Sets allowedExposeHeaders of Bucket CORS. |
void |
setAllowedHeaders(List<String> allowedHeaders)
Sets allowedHeaders of Bucket CORS. |
void |
setAllowedMethods(List<AllowedMethods> allowedMethods)
Sets allowedMethods of Bucket CORS. |
void |
setAllowedOrigins(List<String> allowedOrigins)
Sets allowedOrigins of Bucket CORS. |
void |
setMaxAgeSeconds(int maxAgeSeconds)
Sets maxAgeSeconds of Bucket CORS. |
String |
toString()
|
CorsConfiguration |
withAllowedExposeHeaders(List<String> allowedExposeHeaders)
Sets allowedExposeHeaders of Bucket CORS. |
CorsConfiguration |
withAllowedHeaders(List<String> allowedHeaders)
Sets allowedHeaders of Bucket CORS. |
CorsConfiguration |
withAllowedMethods(List<AllowedMethods> allowedMethods)
Sets allowedMethods of Bucket CORS. |
CorsConfiguration |
withAllowedOrigins(List<String> allowedOrigins)
Sets allowedOrigins of Bucket CORS. |
CorsConfiguration |
withMaxAgeSeconds(int maxAgeSeconds)
Sets maxAgeSeconds of Bucket CORS. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CorsConfiguration()
public CorsConfiguration(List<String> allowedOrigins, List<AllowedMethods> allowedMethods, List<String> allowedHeaders, List<String> allowedExposeHeaders, int maxAgeSeconds)
allowedOrigins
- The allowedOrigins of Bucket CROS.allowedMethods
- The allowedMethods of Bucket CROS.allowedHeaders
- The allowedHeaders of Bucket CROS.allowedExposeHeaders
- The allowedExposeHeaders of Bucket CROS.maxAgeSeconds
- The maxAgeSeconds of Bucket CROS.Method Detail |
---|
public List<String> getAllowedOrigins()
public void setAllowedOrigins(List<String> allowedOrigins)
allowedOrigins
- The allowedOrigins of Bucket CORS.public CorsConfiguration withAllowedOrigins(List<String> allowedOrigins)
allowedOrigins
- The allowedOrigins of Bucket CORS.
public List<AllowedMethods> getAllowedMethods()
public void setAllowedMethods(List<AllowedMethods> allowedMethods)
allowedMethods
- The allowedMethods of Bucket CORS.public CorsConfiguration withAllowedMethods(List<AllowedMethods> allowedMethods)
allowedMethods
- The allowedMethods of Bucket CORS.
public List<String> getAllowedHeaders()
public void setAllowedHeaders(List<String> allowedHeaders)
allowedHeaders
- The allowedHeaders of Bucket CORS.public CorsConfiguration withAllowedHeaders(List<String> allowedHeaders)
allowedHeaders
- The allowedHeaders of Bucket CORS.
public List<String> getAllowedExposeHeaders()
public void setAllowedExposeHeaders(List<String> allowedExposeHeaders)
allowedExposeHeaders
- The allowedExposeHeaders of Bucket CORS.public CorsConfiguration withAllowedExposeHeaders(List<String> allowedExposeHeaders)
allowedExposeHeaders
- The allowedExposeHeaders of Bucket CORS.
public int getMaxAgeSeconds()
public void setMaxAgeSeconds(int maxAgeSeconds)
maxAgeSeconds
- The maxAgeSeconds of Bucket CORS.public CorsConfiguration withMaxAgeSeconds(int maxAgeSeconds)
maxAgeSeconds
- The maxAgeSeconds of Bucket CORS.
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |