public class PathBasedOriginRule extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
PathBasedOriginRule()  | 
PathBasedOriginRule(PathBasedOriginRule 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[] | 
getOrigin()
Get Origin server list. 
 | 
String[] | 
getRulePaths()
Get Content for each `RuleType`:
For `file`, enter a suffix, e.g., `jpg` or `txt`. 
 | 
String | 
getRuleType()
Get Rule types:
`file`: Apply to files with the specified suffixes. 
 | 
void | 
setOrigin(String[] Origin)
Set Origin server list. 
 | 
void | 
setRulePaths(String[] RulePaths)
Set Content for each `RuleType`:
For `file`, enter a suffix, e.g., `jpg` or `txt`. 
 | 
void | 
setRuleType(String RuleType)
Set Rule types:
`file`: Apply to files with the specified suffixes. 
 | 
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 PathBasedOriginRule()
public PathBasedOriginRule(PathBasedOriginRule source)
public String getRuleType()
public void setRuleType(String RuleType)
RuleType - Rule types:
`file`: Apply to files with the specified suffixes.
`directory`: Apply to specified paths.
`path`: Apply to specified absolute paths.
`index`: Apply to specified homepages.public String[] getRulePaths()
public void setRulePaths(String[] RulePaths)
RulePaths - Content for each `RuleType`:
For `file`, enter a suffix, e.g., `jpg` or `txt`.
For `directory`, enter a path, e.g., `/xxx/test/`.
For `path`, enter an absolute path, e.g., `/xxx/test.html`.
For `index`, enter a forward slash `/`.public String[] getOrigin()
public void setOrigin(String[] Origin)
Origin - Origin server list. Domain name and IPv4 addresses are supported.Copyright © 2025. All rights reserved.