public class CorsConfiguration extends Object
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.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.Copyright © 2023. All rights reserved.