public class CorsOriginConfiguration
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.List<java.lang.String> |
ANY
Constant to represent any value.
|
static java.util.List<HttpMethod> |
ANY_METHOD
Constant to represent any method.
|
Constructor and Description |
---|
CorsOriginConfiguration() |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getAllowedHeaders() |
java.util.List<HttpMethod> |
getAllowedMethods() |
java.util.List<java.lang.String> |
getAllowedOrigins() |
java.util.List<java.lang.String> |
getExposedHeaders() |
java.lang.Long |
getMaxAge() |
boolean |
isAllowCredentials() |
void |
setAllowCredentials(boolean allowCredentials)
Sets whether to allow credentials.
|
void |
setAllowedHeaders(java.util.List<java.lang.String> allowedHeaders)
Sets the allowed headers.
|
void |
setAllowedMethods(java.util.List<HttpMethod> allowedMethods)
Sets the allowed methods.
|
void |
setAllowedOrigins(java.util.List<java.lang.String> allowedOrigins)
Sets the allowed origins.
|
void |
setExposedHeaders(java.util.List<java.lang.String> exposedHeaders)
Sets the exposed headers.
|
void |
setMaxAge(java.lang.Long maxAge)
Sets the max age.
|
public static final java.util.List<java.lang.String> ANY
public static final java.util.List<HttpMethod> ANY_METHOD
public java.util.List<java.lang.String> getAllowedOrigins()
public void setAllowedOrigins(@Nullable java.util.List<java.lang.String> allowedOrigins)
allowedOrigins
- The allow originspublic java.util.List<HttpMethod> getAllowedMethods()
public void setAllowedMethods(@Nullable java.util.List<HttpMethod> allowedMethods)
allowedMethods
- The allowed methodspublic java.util.List<java.lang.String> getAllowedHeaders()
public void setAllowedHeaders(@Nullable java.util.List<java.lang.String> allowedHeaders)
allowedHeaders
- The allowed headerspublic java.util.List<java.lang.String> getExposedHeaders()
public void setExposedHeaders(@Nullable java.util.List<java.lang.String> exposedHeaders)
exposedHeaders
- The exposed headerspublic boolean isAllowCredentials()
public void setAllowCredentials(boolean allowCredentials)
allowCredentials
- The credentialspublic java.lang.Long getMaxAge()
public void setMaxAge(@Nullable java.lang.Long maxAge)
maxAge
- The max age