类 Cors

    • 构造器详细资料

      • Cors

        public Cors()
    • 方法详细资料

      • getAllow

        public String getAllow()
        o
        返回:
        allow
      • setAllow

        public void setAllow​(String allow)
        参数:
        allow - whether cross-domain access is allowed
      • getOriginList

        public List<String> getOriginList()
        返回:
        originList
      • setOriginList

        public void setOriginList​(List<String> originList)
        参数:
        originList - List of domain names allowed across domains
      • withAllow

        public Cors withAllow​(String allow)
        参数:
        allow - whether cross-domain access is allowed
        返回:
        this object
      • withOriginList

        public Cors withOriginList​(List<String> originList)
        参数:
        originList - List of domain names allowed across domains
        返回:
        this object
      • addOriginList

        public Cors addOriginList​(String origin)
        参数:
        origin - domain's name
        返回:
        this object