public class CorsRule extends Object
| Constructor and Description |
|---|
CorsRule() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
allowedHeaders()
Get required if CorsRule element is present.
|
List<String> |
allowedMethods()
Get required if CorsRule element is present.
|
List<String> |
allowedOrigins()
Get required if CorsRule element is present.
|
List<String> |
exposedHeaders()
Get required if CorsRule element is present.
|
int |
maxAgeInSeconds()
Get required if CorsRule element is present.
|
CorsRule |
withAllowedHeaders(List<String> allowedHeaders)
Set required if CorsRule element is present.
|
CorsRule |
withAllowedMethods(List<String> allowedMethods)
Set required if CorsRule element is present.
|
CorsRule |
withAllowedOrigins(List<String> allowedOrigins)
Set required if CorsRule element is present.
|
CorsRule |
withExposedHeaders(List<String> exposedHeaders)
Set required if CorsRule element is present.
|
CorsRule |
withMaxAgeInSeconds(int maxAgeInSeconds)
Set required if CorsRule element is present.
|
public List<String> allowedOrigins()
public CorsRule withAllowedOrigins(List<String> allowedOrigins)
allowedOrigins - the allowedOrigins value to setpublic List<String> allowedMethods()
public CorsRule withAllowedMethods(List<String> allowedMethods)
allowedMethods - the allowedMethods value to setpublic int maxAgeInSeconds()
public CorsRule withMaxAgeInSeconds(int maxAgeInSeconds)
maxAgeInSeconds - the maxAgeInSeconds value to setpublic List<String> exposedHeaders()
public CorsRule withExposedHeaders(List<String> exposedHeaders)
exposedHeaders - the exposedHeaders value to setpublic List<String> allowedHeaders()
Copyright © 2019. All rights reserved.