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 Ignore Query String).
|
String |
getIgnoreCase()
Get Whether caches are case insensitive
Note: This field may return `null`, indicating that no valid value can be obtained.
|
RuleQueryString |
getQueryString()
Get Request parameter contained in `CacheKey`
Note: This field may return `null`, indicating that no valid value can be obtained.
|
String[] |
getRulePaths()
Get Content for each CacheType:
For `file`, enter a suffix, e.g., `jpg` or `txt`.
|
String |
getRuleTag()
Get Path cache key tag, the value "user" is passed.
|
String |
getRuleType()
Get Rule types:
`file`: Apply to files with the specified suffixes.
|
void |
setFullUrlCache(String FullUrlCache)
Set Whether to enable full-path cache
`on`: Enable full-path cache (i.e., disable Ignore Query String).
|
void |
setIgnoreCase(String IgnoreCase)
Set Whether caches are case insensitive
Note: This field may return `null`, indicating that no valid value can be obtained.
|
void |
setQueryString(RuleQueryString QueryString)
Set Request parameter contained in `CacheKey`
Note: This field may return `null`, indicating that no valid value can be obtained.
|
void |
setRulePaths(String[] RulePaths)
Set Content for each CacheType:
For `file`, enter a suffix, e.g., `jpg` or `txt`.
|
void |
setRuleTag(String RuleTag)
Set Path cache key tag, the value "user" is passed.
|
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, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public KeyRule()
public KeyRule(KeyRule source)
public String[] getRulePaths()
public void setRulePaths(String[] RulePaths)
RulePaths
- Content for each CacheType:
For `file`, enter a suffix, e.g., `jpg` or `txt`.
For `directory`, enter the path, such as /xxx/test/.
For `path`, enter an absolute path, e.g., `/xxx/test.html`.
For `index`, enter a backslash (/).
Note: this field may return `null`, indicating that no valid value can be obtained.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`: home page
Note: This field may return `null`, indicating that no valid value can be obtained.public String getFullUrlCache()
public void setFullUrlCache(String FullUrlCache)
FullUrlCache
- Whether to enable full-path cache
`on`: Enable full-path cache (i.e., disable Ignore Query String).
`off`: Disable full-path cache (i.e., enable Ignore Query String).
Note: This field may return `null`, indicating that no valid value can be 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 can be 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 can be 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 can be obtained.Copyright © 2023. All rights reserved.