public class StaticResourceCorsConfig extends Object implements IStaticResourceCorsConfig
| Constructor and Description |
|---|
StaticResourceCorsConfig(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()
IStaticResourceCorsConfiggetAllowedOrigins in interface IStaticResourceCorsConfigpublic Set<String> getExtraHeadersAllowedToBeRead()
IStaticResourceCorsConfiggetExtraHeadersAllowedToBeRead in interface IStaticResourceCorsConfigpublic Set<String> getExtraHeadersAllowedToBeSent()
IStaticResourceCorsConfiggetExtraHeadersAllowedToBeSent in interface IStaticResourceCorsConfigpublic boolean isAllowCookies()
IStaticResourceCorsConfigisAllowCookies in interface IStaticResourceCorsConfigpublic int getMaxAgeInSeconds()
IStaticResourceCorsConfiggetMaxAgeInSeconds in interface IStaticResourceCorsConfigCopyright © 2016. All rights reserved.