public final class CorsRule extends Object
Constructor and Description |
---|
CorsRule() |
Modifier and Type | Method and Description |
---|---|
String |
allowedHeaders()
Get the allowedHeaders value.
|
String |
allowedMethods()
Get the allowedMethods value.
|
String |
allowedOrigins()
Get the allowedOrigins value.
|
String |
exposedHeaders()
Get the exposedHeaders value.
|
int |
maxAgeInSeconds()
Get the maxAgeInSeconds value.
|
CorsRule |
withAllowedHeaders(String allowedHeaders)
Set the allowedHeaders value.
|
CorsRule |
withAllowedMethods(String allowedMethods)
Set the allowedMethods value.
|
CorsRule |
withAllowedOrigins(String allowedOrigins)
Set the allowedOrigins value.
|
CorsRule |
withExposedHeaders(String exposedHeaders)
Set the exposedHeaders value.
|
CorsRule |
withMaxAgeInSeconds(int maxAgeInSeconds)
Set the maxAgeInSeconds value.
|
public String allowedOrigins()
public CorsRule withAllowedOrigins(String allowedOrigins)
allowedOrigins
- the allowedOrigins value to set.public String allowedMethods()
public CorsRule withAllowedMethods(String allowedMethods)
allowedMethods
- the allowedMethods value to set.public String allowedHeaders()
public CorsRule withAllowedHeaders(String allowedHeaders)
allowedHeaders
- the allowedHeaders value to set.public String exposedHeaders()
public CorsRule withExposedHeaders(String exposedHeaders)
exposedHeaders
- the exposedHeaders value to set.public int maxAgeInSeconds()
public CorsRule withMaxAgeInSeconds(int maxAgeInSeconds)
maxAgeInSeconds
- the maxAgeInSeconds value to set.Copyright © 2018. All rights reserved.