public class RuleCache extends AbstractModel
header, skipSign| Constructor and Description |
|---|
RuleCache() |
RuleCache(RuleCache 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 |
|---|---|
RuleCacheConfig |
getCacheConfig()
Get Cache configuration
|
String[] |
getRulePaths()
Get Matching content under the corresponding type of RuleType: Fill in * when all is used; Fill in suffix name when file is used, such as jpg, txt; Fill in path when directory is used, such as /xxx/ test/; Fill in the absolute path when path is specified, such as /xxx/test.html.
|
String |
getRuleType()
Get Rule type: all: valid for all files; file: valid for specified file suffix; directory: valid for specified path; path: specified absolute The path takes effect.
|
void |
setCacheConfig(RuleCacheConfig CacheConfig)
Set Cache configuration
|
void |
setRulePaths(String[] RulePaths)
Set Matching content under the corresponding type of RuleType: Fill in * when all is used; Fill in suffix name when file is used, such as jpg, txt; Fill in path when directory is used, such as /xxx/ test/; Fill in the absolute path when path is specified, such as /xxx/test.html.
|
void |
setRuleType(String RuleType)
Set Rule type: all: valid for all files; file: valid for specified file suffix; directory: valid for specified path; path: specified absolute The path takes effect.
|
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 RuleCache()
public RuleCache(RuleCache source)
public String getRuleType()
public void setRuleType(String RuleType)
RuleType - Rule type: public String[] getRulePaths()
public void setRulePaths(String[] RulePaths)
RulePaths - Matching content under the corresponding type of RuleType: public RuleCacheConfig getCacheConfig()
public void setCacheConfig(RuleCacheConfig CacheConfig)
CacheConfig - Cache configurationCopyright © 2025. All rights reserved.