public class CORSSettingInProfile extends Object implements CORSSetting
ALLOW_CREDENTIALS, ALLOW_HEADERS, ALLOW_METHOD, ALLOW_ORIGIN, EXPOSE_HEADERS, MAX_AGE| Constructor and Description |
|---|
CORSSettingInProfile() |
CORSSettingInProfile(String profileName) |
| Modifier and Type | Method and Description |
|---|---|
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 in interface CORSSettingpublic String exposeHeaders()
CORSSettingexposeHeaders in interface CORSSettingpublic String allowMethod()
CORSSettingallowMethod in interface CORSSettingpublic String allowHeaders()
CORSSettingallowHeaders in interface CORSSettingpublic Long maxAge()
CORSSettingmaxAge in interface CORSSettingpublic Boolean allowCredentials()
CORSSettingallowCredentials in interface CORSSettingCopyright © 2018. All rights reserved.