public class CorsRule extends Object
Constructor and Description |
---|
CorsRule() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getAllowedHeaders()
Gets the allowed headers.
|
EnumSet<CorsHttpMethods> |
getAllowedMethods()
Gets the allowed methods.
|
List<String> |
getAllowedOrigins()
Gets the allowed origins.
|
List<String> |
getExposedHeaders()
Gets the exposed headers.
|
int |
getMaxAgeInSeconds()
Gets the maximum age in seconds.
|
void |
setAllowedHeaders(List<String> allowedHeaders)
Sets the allowed headers.
|
void |
setAllowedMethods(EnumSet<CorsHttpMethods> allowedMethods)
Sets the allowed methods.
|
void |
setAllowedOrigins(List<String> allowedOrigins)
Sets the allowed origins.
|
void |
setExposedHeaders(List<String> exposedHeaders)
Sets the exposed headers.
|
void |
setMaxAgeInSeconds(int maxAgeInSeconds)
Sets the maximum age in seconds.
|
public List<String> getAllowedOrigins()
List
object which contains the allowed origins.public void setAllowedOrigins(List<String> allowedOrigins)
allowedOrigins
- A List
object which contains the allowed origins.public List<String> getExposedHeaders()
List
object which contains the exposed headers.public void setExposedHeaders(List<String> exposedHeaders)
exposedHeaders
- A List
object which contains the exposed headers.public List<String> getAllowedHeaders()
List
object which contains the allowed headers.public void setAllowedHeaders(List<String> allowedHeaders)
allowedHeaders
- A List
object which contains the allowed headers.public EnumSet<CorsHttpMethods> getAllowedMethods()
List
object which contains the allowed methods.public void setAllowedMethods(EnumSet<CorsHttpMethods> allowedMethods)
allowedMethods
- A List
object which contains the allowed methods.public int getMaxAgeInSeconds()
int
which represents the the maximum age in seconds.public void setMaxAgeInSeconds(int maxAgeInSeconds)
maxAgeInSeconds
- An int
which represents the the maximum age in seconds.Copyright © 2018. All Rights Reserved.