com.baidubce.services.cdn.model.domain
Class Cors

java.lang.Object
  extended by com.baidubce.services.cdn.model.JsonObject
      extended by com.baidubce.services.cdn.model.domain.Cors

public class Cors
extends JsonObject


Constructor Summary
Cors()
           
 
Method Summary
 Cors addOriginList(String origin)
           
 String getAllow()
          o
 List<String> getOriginList()
           
 void setAllow(String allow)
           
 void setOriginList(List<String> originList)
           
 Cors withAllow(String allow)
           
 Cors withOriginList(List<String> originList)
           
 
Methods inherited from class com.baidubce.services.cdn.model.JsonObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Cors

public Cors()
Method Detail

getAllow

public String getAllow()
o

Returns:
allow

setAllow

public void setAllow(String allow)
Parameters:
allow - whether cross-domain access is allowed

getOriginList

public List<String> getOriginList()
Returns:
originList

setOriginList

public void setOriginList(List<String> originList)
Parameters:
originList - List of domain names allowed across domains

withAllow

public Cors withAllow(String allow)
Parameters:
allow - whether cross-domain access is allowed
Returns:
this object

withOriginList

public Cors withOriginList(List<String> originList)
Parameters:
originList - List of domain names allowed across domains
Returns:
this object

addOriginList

public Cors addOriginList(String origin)
Parameters:
origin - domain's name
Returns:
this object


Copyright © 2020. All rights reserved.