public class FollowOrigin extends AbstractModel
header, skipSign
Constructor and Description |
---|
FollowOrigin() |
FollowOrigin(FollowOrigin 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 |
getDefaultCache()
Get 源站未返回 Cache-Control 头时,缓存/不缓存开关。当 Switch 为 on 时,此字段必填,当 Switch 为 off 时,无需填写此字段,若填写则不生效。取值有:
on:缓存;
off:不缓存。
|
String |
getDefaultCacheStrategy()
Get 源站未返回 Cache-Control 头时,使用/不使用默认缓存策略开关。当 DefaultCache 为 on 时,此字段必填,否则此字段不生效;当 DefaultCacheTime 不为 0 时,此字段必须为 off。取值有:
on:使用默认缓存策略;
off:不使用默认缓存策略。
|
Long |
getDefaultCacheTime()
Get 源站未返回 Cache-Control 头时,表示默认的缓存时间,单位为秒,取值:0-315360000。当 DefaultCache 为 on 时,此字段必填,否则此字段不生效;当 DefaultCacheStrategy 为 on 时, 此字段必须为 0。
|
String |
getSwitch()
Get 遵循源站配置开关,取值有:
on:开启;
off:关闭。
|
void |
setDefaultCache(String DefaultCache)
Set 源站未返回 Cache-Control 头时,缓存/不缓存开关。当 Switch 为 on 时,此字段必填,当 Switch 为 off 时,无需填写此字段,若填写则不生效。取值有:
on:缓存;
off:不缓存。
|
void |
setDefaultCacheStrategy(String DefaultCacheStrategy)
Set 源站未返回 Cache-Control 头时,使用/不使用默认缓存策略开关。当 DefaultCache 为 on 时,此字段必填,否则此字段不生效;当 DefaultCacheTime 不为 0 时,此字段必须为 off。取值有:
on:使用默认缓存策略;
off:不使用默认缓存策略。
|
void |
setDefaultCacheTime(Long DefaultCacheTime)
Set 源站未返回 Cache-Control 头时,表示默认的缓存时间,单位为秒,取值:0-315360000。当 DefaultCache 为 on 时,此字段必填,否则此字段不生效;当 DefaultCacheStrategy 为 on 时, 此字段必须为 0。
|
void |
setSwitch(String Switch)
Set 遵循源站配置开关,取值有:
on:开启;
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 FollowOrigin()
public FollowOrigin(FollowOrigin source)
public String getSwitch()
public void setSwitch(String Switch)
Switch
- 遵循源站配置开关,取值有:
public String getDefaultCache()
public void setDefaultCache(String DefaultCache)
DefaultCache
- 源站未返回 Cache-Control 头时,缓存/不缓存开关。当 Switch 为 on 时,此字段必填,当 Switch 为 off 时,无需填写此字段,若填写则不生效。取值有:
public String getDefaultCacheStrategy()
public void setDefaultCacheStrategy(String DefaultCacheStrategy)
DefaultCacheStrategy
- 源站未返回 Cache-Control 头时,使用/不使用默认缓存策略开关。当 DefaultCache 为 on 时,此字段必填,否则此字段不生效;当 DefaultCacheTime 不为 0 时,此字段必须为 off。取值有:
public Long getDefaultCacheTime()
public void setDefaultCacheTime(Long DefaultCacheTime)
DefaultCacheTime
- 源站未返回 Cache-Control 头时,表示默认的缓存时间,单位为秒,取值:0-315360000。当 DefaultCache 为 on 时,此字段必填,否则此字段不生效;当 DefaultCacheStrategy 为 on 时, 此字段必须为 0。Copyright © 2025. All rights reserved.