public class CorsSettings extends Object implements SettingsSection
Constructor and Description |
---|
CorsSettings() |
public CorsSettings()
public void postLoad()
postLoad
in interface SettingsSection
public boolean isAllowAll()
public CorsSettings setAllowAll(boolean allowAll)
public List<String> getOriginWhitelist()
public CorsSettings setOriginWhitelist(List<String> originWhitelist)
public List<String> getOriginRegexWhitelist()
public CorsSettings setOriginRegexWhitelist(List<String> originRegexWhitelist)
public List<Pattern> getOriginPatternWhitelist()
public CorsSettings setOriginPatternWhitelist(List<Pattern> originPatternWhitelist)
public boolean isAllowCredentials()
public CorsSettings setAllowCredentials(boolean allowCredentials)
public String getUrlsRegex()
public CorsSettings setUrlsRegex(String urlsRegex)
public Pattern getUrlPattern()
public CorsSettings setUrlPattern(Pattern urlPattern)
public List<String> getExposeHeaders()
public CorsSettings setExposeHeaders(List<String> exposeHeaders)
public String getExposeHeadersString()
public List<String> getAllowHeaders()
public CorsSettings setAllowHeaders(List<String> allowHeaders)
public List<String> getAllowedMethods()
public CorsSettings setAllowedMethods(List<String> allowedMethods)
public Integer getPreflightMaxAge()
public CorsSettings setPreflightMaxAge(Integer preflightMaxAge)
public String getAllowedMethodsString()
public boolean isAllowAllForFonts()
public CorsSettings setAllowAllForFonts(boolean allowAllForFonts)
Copyright © 2016. All rights reserved.