public class RangeOriginPullRule extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| RangeOriginPullRule() | 
| RangeOriginPullRule(RangeOriginPullRule 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[] | getRulePaths()Get RuleType 对应类型下的匹配内容:
file 时填充后缀名,如 jpg、txt
directory 时填充路径,如 /xxx/test
path 时填充绝对路径,如 /xxx/test.html
注意:此字段可能返回 null,表示取不到有效值。 | 
| String | getRuleType()Get 规则类型:
file:指定文件后缀生效
directory:指定路径生效
path:指定绝对路径生效
注意:此字段可能返回 null,表示取不到有效值。 | 
| String | getSwitch()Get 分片回源配置开关,取值有:
on:开启
off:关闭 | 
| void | setRulePaths(String[] RulePaths)Set RuleType 对应类型下的匹配内容:
file 时填充后缀名,如 jpg、txt
directory 时填充路径,如 /xxx/test
path 时填充绝对路径,如 /xxx/test.html
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setRuleType(String RuleType)Set 规则类型:
file:指定文件后缀生效
directory:指定路径生效
path:指定绝对路径生效
注意:此字段可能返回 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, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic RangeOriginPullRule()
public RangeOriginPullRule(RangeOriginPullRule source)
public String getSwitch()
public void setSwitch(String Switch)
Switch - 分片回源配置开关,取值有:
on:开启
off:关闭public String getRuleType()
public void setRuleType(String RuleType)
RuleType - 规则类型:
file:指定文件后缀生效
directory:指定路径生效
path:指定绝对路径生效
注意:此字段可能返回 null,表示取不到有效值。public String[] getRulePaths()
public void setRulePaths(String[] RulePaths)
RulePaths - RuleType 对应类型下的匹配内容:
file 时填充后缀名,如 jpg、txt
directory 时填充路径,如 /xxx/test
path 时填充绝对路径,如 /xxx/test.html
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2025. All rights reserved.