public class HSTSParameters extends AbstractModel
header, skipSign
Constructor and Description |
---|
HSTSParameters() |
HSTSParameters(HSTSParameters source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getIncludeSubDomains()
Get 是否允许其他子域名继承相同的 HSTS 头部,取值有:
on:允许其他子域名继承相同的 HSTS 头部;
off:不允许其他子域名继承相同的 HSTS 头部。注意:当 Switch 为 on 时,此字段必填;当 Switch 为 off 时,无需填写此字段,若填写则不生效。
|
String |
getPreload()
Get 是否允许浏览器预加载 HSTS 头部,取值有:
on:允许浏览器预加载 HSTS 头部;
off:不允许浏览器预加载 HSTS 头部。注意:当 Switch 为 on 时,此字段必填;当 Switch 为 off 时,无需填写此字段,若填写则不生效。
|
String |
getSwitch()
Get HSTS 配置开关,取值有:
on:开启;
off:关闭。
|
Long |
getTimeout()
Get 缓存 HSTS 头部时间,单位为秒,取值:1-31536000。
注意:当 Switch 为 on 时,此字段必填;当 Switch 为 off 时,无需填写此字段,若填写则不生效。 |
void |
setIncludeSubDomains(String IncludeSubDomains)
Set 是否允许其他子域名继承相同的 HSTS 头部,取值有:
on:允许其他子域名继承相同的 HSTS 头部;
off:不允许其他子域名继承相同的 HSTS 头部。注意:当 Switch 为 on 时,此字段必填;当 Switch 为 off 时,无需填写此字段,若填写则不生效。
|
void |
setPreload(String Preload)
Set 是否允许浏览器预加载 HSTS 头部,取值有:
on:允许浏览器预加载 HSTS 头部;
off:不允许浏览器预加载 HSTS 头部。注意:当 Switch 为 on 时,此字段必填;当 Switch 为 off 时,无需填写此字段,若填写则不生效。
|
void |
setSwitch(String Switch)
Set HSTS 配置开关,取值有:
on:开启;
off:关闭。
|
void |
setTimeout(Long Timeout)
Set 缓存 HSTS 头部时间,单位为秒,取值:1-31536000。
注意:当 Switch 为 on 时,此字段必填;当 Switch 为 off 时,无需填写此字段,若填写则不生效。 |
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public HSTSParameters()
public HSTSParameters(HSTSParameters source)
public String getSwitch()
public void setSwitch(String Switch)
Switch
- HSTS 配置开关,取值有:
public Long getTimeout()
public void setTimeout(Long Timeout)
Timeout
- 缓存 HSTS 头部时间,单位为秒,取值:1-31536000。public String getIncludeSubDomains()
public void setIncludeSubDomains(String IncludeSubDomains)
IncludeSubDomains
- 是否允许其他子域名继承相同的 HSTS 头部,取值有:
public String getPreload()
public void setPreload(String Preload)
Preload
- 是否允许浏览器预加载 HSTS 头部,取值有:
Copyright © 2025. All rights reserved.