public class CorsHeaders extends Object
CorsHeaders
This is the cors headers holder.Constructor and Description |
---|
CorsHeaders() |
Modifier and Type | Method and Description |
---|---|
static CorsHeaders |
buildCorsHeaders(Struct corsConfig) |
int |
getAllowCredentials() |
List<String> |
getAllowHeaders() |
List<String> |
getAllowMethods() |
List<String> |
getAllowOrigins() |
List<String> |
getExposeHeaders() |
long |
getMaxAge() |
boolean |
isAvailable() |
void |
setAllowCredentials(int allowCredentials) |
void |
setAllowHeaders(List<String> allowHeaders) |
void |
setAllowMethods(List<String> allowMethods) |
void |
setAllowOrigins(List<String> allowOrigins) |
void |
setExposeHeaders(List<String> exposeHeaders) |
void |
setMaxAge(long maxAge) |
public boolean isAvailable()
public int getAllowCredentials()
public void setAllowCredentials(int allowCredentials)
public long getMaxAge()
public void setMaxAge(long maxAge)
public static CorsHeaders buildCorsHeaders(Struct corsConfig)
Copyright © 2018 WSO2. All rights reserved.