public class RefererRule extends AbstractModel
| Constructor and Description | 
|---|
| RefererRule() | 
| RefererRule(RefererRule 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 | 
|---|---|
| Boolean | getAllowEmpty()Get Whether to allow empty referer
true: allow empty referer
false: do not allow empty referer | 
| String[] | getReferers()Get Referer content list | 
| String | getRefererType()Get Referer configuration types
whitelist: allowlist
blacklist: blocklist | 
| String[] | getRulePaths()Get Content for each RuleType:
For `all`, enter an asterisk (*). | 
| String | getRuleType()Get Rule types:
`all`: effective for all files
`file`: effective for specified file suffixes
`directory`: effective for specified paths
`path`: effective for specified absolute paths | 
| void | setAllowEmpty(Boolean AllowEmpty)Set Whether to allow empty referer
true: allow empty referer
false: do not allow empty referer | 
| void | setReferers(String[] Referers)Set Referer content list | 
| void | setRefererType(String RefererType)Set Referer configuration types
whitelist: allowlist
blacklist: blocklist | 
| void | setRulePaths(String[] RulePaths)Set Content for each RuleType:
For `all`, enter an asterisk (*). | 
| void | setRuleType(String RuleType)Set Rule types:
`all`: effective for all files
`file`: effective for specified file suffixes
`directory`: effective for specified paths
`path`: effective for specified absolute paths | 
| 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, toJsonStringpublic RefererRule()
public RefererRule(RefererRule source)
public String getRuleType()
public void setRuleType(String RuleType)
RuleType - Rule types:
`all`: effective for all files
`file`: effective for specified file suffixes
`directory`: effective for specified paths
`path`: effective for specified absolute pathspublic String[] getRulePaths()
public void setRulePaths(String[] RulePaths)
RulePaths - Content for each RuleType:
For `all`, enter an asterisk (*).
For `file`, enter the suffix, such as jpg, txt.
For `directory`, enter the path, such as /xxx/test/.
For `path`, enter the corresponding absolute path, such as /xxx/test.html.public String getRefererType()
public void setRefererType(String RefererType)
RefererType - Referer configuration types
whitelist: allowlist
blacklist: blocklistpublic String[] getReferers()
public void setReferers(String[] Referers)
Referers - Referer content listpublic Boolean getAllowEmpty()
public void setAllowEmpty(Boolean AllowEmpty)
AllowEmpty - Whether to allow empty referer
true: allow empty referer
false: do not allow empty refererCopyright © 2022. All rights reserved.