public class FollowOrigin extends AbstractModel
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 头时, 设置缓存/不缓存
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getDefaultCacheStrategy()
Get 源站未返回 Cache-Control 头时, 使用/不使用默认缓存策略
注意:此字段可能返回 null,表示取不到有效值。
|
Long |
getDefaultCacheTime()
Get 源站未返回 Cache-Control 头时, 设置默认的缓存时间
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getSwitch()
Get 遵循源站配置开关,取值有:
on:开启;
off:关闭。
|
void |
setDefaultCache(String DefaultCache)
Set 源站未返回 Cache-Control 头时, 设置缓存/不缓存
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setDefaultCacheStrategy(String DefaultCacheStrategy)
Set 源站未返回 Cache-Control 头时, 使用/不使用默认缓存策略
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setDefaultCacheTime(Long DefaultCacheTime)
Set 源站未返回 Cache-Control 头时, 设置默认的缓存时间
注意:此字段可能返回 null,表示取不到有效值。
|
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, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public FollowOrigin()
public FollowOrigin(FollowOrigin source)
public String getSwitch()
public void setSwitch(String Switch)
Switch
- 遵循源站配置开关,取值有:
public Long getDefaultCacheTime()
public void setDefaultCacheTime(Long DefaultCacheTime)
DefaultCacheTime
- 源站未返回 Cache-Control 头时, 设置默认的缓存时间
注意:此字段可能返回 null,表示取不到有效值。public String getDefaultCache()
public void setDefaultCache(String DefaultCache)
DefaultCache
- 源站未返回 Cache-Control 头时, 设置缓存/不缓存
注意:此字段可能返回 null,表示取不到有效值。public String getDefaultCacheStrategy()
public void setDefaultCacheStrategy(String DefaultCacheStrategy)
DefaultCacheStrategy
- 源站未返回 Cache-Control 头时, 使用/不使用默认缓存策略
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2023. All rights reserved.