public class KeyRule extends AbstractModel
| Constructor and Description | 
|---|
| KeyRule() | 
| KeyRule(KeyRule 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 | getFullUrlCache()Get Whether to enable full-path cache
on: enable full-path cache (i.e., disable parameter filter)
off: disable full-path cache (i.e., enable parameter filter)
Note: this field may return null, indicating that no valid value is obtained. | 
| String | getIgnoreCase()Get Whether caches are case insensitive
Note: this field may return null, indicating that no valid value is obtained. | 
| RuleQueryString | getQueryString()Get Request parameter contained in `CacheKey`
Note: this field may return null, indicating that no valid value is obtained. | 
| String[] | getRulePaths()Get Content for each CacheType:
For `file`, enter the suffix, such as jpg, txt. | 
| String | getRuleTag()Get Path cache key tag, the value "user" is passed. | 
| String | getRuleType()Get Rule types:
`file`: effective for specified file suffixes
`directory`: effective for specified paths
`path`: effective for specified absolute paths
`index`: home page
Note: this field may return null, indicating that no valid value is obtained. | 
| void | setFullUrlCache(String FullUrlCache)Set Whether to enable full-path cache
on: enable full-path cache (i.e., disable parameter filter)
off: disable full-path cache (i.e., enable parameter filter)
Note: this field may return null, indicating that no valid value is obtained. | 
| void | setIgnoreCase(String IgnoreCase)Set Whether caches are case insensitive
Note: this field may return null, indicating that no valid value is obtained. | 
| void | setQueryString(RuleQueryString QueryString)Set Request parameter contained in `CacheKey`
Note: this field may return null, indicating that no valid value is obtained. | 
| void | setRulePaths(String[] RulePaths)Set Content for each CacheType:
For `file`, enter the suffix, such as jpg, txt. | 
| void | setRuleTag(String RuleTag)Set Path cache key tag, the value "user" is passed. | 
| void | setRuleType(String RuleType)Set Rule types:
`file`: effective for specified file suffixes
`directory`: effective for specified paths
`path`: effective for specified absolute paths
`index`: home page
Note: this field may return null, indicating that no valid value is obtained. | 
| 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 KeyRule()
public KeyRule(KeyRule source)
public String[] getRulePaths()
public void setRulePaths(String[] RulePaths)
RulePaths - Content for each CacheType:
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.
For `index`, enter a backslash (/).
Note: this field may return null, indicating that no valid value is obtained.public String getRuleType()
public void setRuleType(String RuleType)
RuleType - Rule types:
`file`: effective for specified file suffixes
`directory`: effective for specified paths
`path`: effective for specified absolute paths
`index`: home page
Note: this field may return null, indicating that no valid value is obtained.public String getFullUrlCache()
public void setFullUrlCache(String FullUrlCache)
FullUrlCache - Whether to enable full-path cache
on: enable full-path cache (i.e., disable parameter filter)
off: disable full-path cache (i.e., enable parameter filter)
Note: this field may return null, indicating that no valid value is obtained.public String getIgnoreCase()
public void setIgnoreCase(String IgnoreCase)
IgnoreCase - Whether caches are case insensitive
Note: this field may return null, indicating that no valid value is obtained.public RuleQueryString getQueryString()
public void setQueryString(RuleQueryString QueryString)
QueryString - Request parameter contained in `CacheKey`
Note: this field may return null, indicating that no valid value is obtained.public String getRuleTag()
public void setRuleTag(String RuleTag)
RuleTag - Path cache key tag, the value "user" is passed.
Note: this field may return null, indicating that no valid value is obtained.Copyright © 2021. All rights reserved.