public interface CorsConfiguration
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowCookies()
Determines if cookies are supported.
|
boolean |
anyOrigin()
Determines is any origin, "*", is supported.
|
boolean |
exposeHeaders()
Determines if there are any headers configured to be exposed to calling clients.
|
List<String> |
getExposeHeaders()
Returns a comma separated string of headers to be exposed to calling clients.
|
long |
getMaxAge()
Gets the maxAge setting.
|
List<String> |
getValidRequestHeaders()
Returns the allowed set of Request Headers.
|
Set<String> |
getValidRequestMethods()
Returns the allowed set of Request Methods.
|
boolean |
hasMaxAge()
Determines is maxAge has been configured.
|
boolean |
isCorsSupportEnabled()
Determines is support for CORS is enabled.
|
boolean isCorsSupportEnabled()
true if support for CORS is enabled, false otherwise.boolean exposeHeaders()
true if there are headers that should be exposed to clients.getExposeHeaders()List<String> getExposeHeaders()
String a comma separated string of headers to be exposed.boolean anyOrigin()
true if any origin is allowed.boolean allowCookies()
true if cookies are supported.boolean hasMaxAge()
true if maxAge has been set.getMaxAge()long getMaxAge()
long the time in seconds that a preflight request may be cached.Set<String> getValidRequestMethods()
Set strings that represent the allowed Request Methods.Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.