public class StaticResourceCorsConfigDefault extends Object implements StaticResourceCorsConfig
| Constructor and Description |
|---|
StaticResourceCorsConfigDefault(Set<String> allowedOrigins,
Set<String> extraHeadersAllowedToBeRead,
Set<String> extraHeadersAllowedToBeSent,
boolean allowCookies,
int maxAgeInSeconds) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getAllowedOrigins()
The allowed origins.
|
Set<String> |
getExtraHeadersAllowedToBeRead()
The extra headers a browser will be allowed to read.
|
Set<String> |
getExtraHeadersAllowedToBeSent()
The extra headers a browser will be allowed to send.
|
int |
getMaxAgeInSeconds()
The max Age a preflight request can be cached.
|
boolean |
isAllowCookies()
Are cookies allowed?
|
public Set<String> getAllowedOrigins()
StaticResourceCorsConfiggetAllowedOrigins in interface StaticResourceCorsConfigpublic Set<String> getExtraHeadersAllowedToBeRead()
StaticResourceCorsConfiggetExtraHeadersAllowedToBeRead in interface StaticResourceCorsConfigpublic Set<String> getExtraHeadersAllowedToBeSent()
StaticResourceCorsConfiggetExtraHeadersAllowedToBeSent in interface StaticResourceCorsConfigpublic boolean isAllowCookies()
StaticResourceCorsConfigisAllowCookies in interface StaticResourceCorsConfigpublic int getMaxAgeInSeconds()
StaticResourceCorsConfiggetMaxAgeInSeconds in interface StaticResourceCorsConfigCopyright © 2017. All rights reserved.