Class CorsProperties

java.lang.Object
icu.easyj.web.cors.CorsProperties

public class CorsProperties extends Object
跨域请求相关配置
Since:
0.6.5
Author:
wangliang181230
  • Constructor Details

    • CorsProperties

      public CorsProperties()
  • Method Details

    • isEnabled

      public boolean isEnabled()
    • setEnabled

      public void setEnabled(boolean enabled)
    • getMapping

      public String getMapping()
    • setMapping

      public void setMapping(String mapping)
    • getAllowCredentials

      public Boolean getAllowCredentials()
    • setAllowCredentials

      public void setAllowCredentials(Boolean allowCredentials)
    • getAllowedOrigins

      public String[] getAllowedOrigins()
    • setAllowedOrigins

      public void setAllowedOrigins(String[] allowedOrigins)
    • getAllowedOriginPatterns

      public String[] getAllowedOriginPatterns()
    • setAllowedOriginPatterns

      public void setAllowedOriginPatterns(String[] allowedOriginPatterns)
    • getAllowedMethods

      public String[] getAllowedMethods()
    • setAllowedMethods

      public void setAllowedMethods(String[] allowedMethods)
    • getAllowedHeaders

      public String[] getAllowedHeaders()
    • setAllowedHeaders

      public void setAllowedHeaders(String[] allowedHeaders)
    • getMaxAge

      public long getMaxAge()
    • setMaxAge

      public void setMaxAge(long maxAge)