public class CORSSettingInProfile extends Object implements CORSSetting
ALLOW_CREDENTIALS, ALLOW_HEADERS, ALLOW_METHOD, ALLOW_ORIGIN, EXPOSE_HEADERS, MAX_AGE| 构造器和说明 |
|---|
CORSSettingInProfile() |
CORSSettingInProfile(String profileName) |
| 限定符和类型 | 方法和说明 |
|---|---|
Boolean |
allowCredentials()
为null表示不需要设置
|
String |
allowHeaders()
依RFC 2616规范,使用逗号分隔,为null表示不需要设置
|
String |
allowMethod()
依RFC 2616规范,使用逗号分隔,为null表示不需要设置
|
String |
allowOrigin()
空格或逗号分隔,为null表示不需要设置
|
String |
exposeHeaders()
依RFC 2616规范,使用逗号分隔,为null表示不需要设置
|
Long |
maxAge()
为null表示不需要设置
|
public CORSSettingInProfile()
public CORSSettingInProfile(String profileName)
public String allowOrigin()
CORSSettingallowOrigin 在接口中 CORSSettingpublic String exposeHeaders()
CORSSettingexposeHeaders 在接口中 CORSSettingpublic String allowMethod()
CORSSettingallowMethod 在接口中 CORSSettingpublic String allowHeaders()
CORSSettingallowHeaders 在接口中 CORSSettingpublic Long maxAge()
CORSSettingmaxAge 在接口中 CORSSettingpublic Boolean allowCredentials()
CORSSettingallowCredentials 在接口中 CORSSettingCopyright © 2018. All rights reserved.