public class KeyRule extends AbstractModel
header, skipSign| 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 是否开启全路径缓存
on:开启全路径缓存(即关闭参数忽略)
off:关闭全路径缓存(即开启参数忽略)
注意:此字段可能返回 null,表示取不到有效值。 | 
| String | getIgnoreCase()Get 是否忽略大小写缓存
on:开启
off:关闭
注意:此字段可能返回 null,表示取不到有效值。 | 
| RuleQueryString | getQueryString()Get CacheKey中包含请求参数
注意:此字段可能返回 null,表示取不到有效值。 | 
| String[] | getRulePaths()Get CacheType 对应类型下的匹配内容:
file 时填充后缀名,如 jpg、txt
directory 时填充路径,如 /xxx/test
path 时填充绝对路径,如 /xxx/test.html
index 时填充 /
注意:此字段可能返回 null,表示取不到有效值。 | 
| String | getRuleTag()Get 路径缓存键标签,传 user
注意:此字段可能返回 null,表示取不到有效值。 | 
| String | getRuleType()Get 规则类型:
file:指定文件后缀生效
directory:指定路径生效
path:指定绝对路径生效
index:首页
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setFullUrlCache(String FullUrlCache)Set 是否开启全路径缓存
on:开启全路径缓存(即关闭参数忽略)
off:关闭全路径缓存(即开启参数忽略)
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setIgnoreCase(String IgnoreCase)Set 是否忽略大小写缓存
on:开启
off:关闭
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setQueryString(RuleQueryString QueryString)Set CacheKey中包含请求参数
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setRulePaths(String[] RulePaths)Set CacheType 对应类型下的匹配内容:
file 时填充后缀名,如 jpg、txt
directory 时填充路径,如 /xxx/test
path 时填充绝对路径,如 /xxx/test.html
index 时填充 /
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setRuleTag(String RuleTag)Set 路径缓存键标签,传 user
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setRuleType(String RuleType)Set 规则类型:
file:指定文件后缀生效
directory:指定路径生效
path:指定绝对路径生效
index:首页
注意:此字段可能返回 null,表示取不到有效值。 | 
| 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 KeyRule()
public KeyRule(KeyRule source)
public String[] getRulePaths()
public void setRulePaths(String[] RulePaths)
RulePaths - CacheType 对应类型下的匹配内容:
file 时填充后缀名,如 jpg、txt
directory 时填充路径,如 /xxx/test
path 时填充绝对路径,如 /xxx/test.html
index 时填充 /
注意:此字段可能返回 null,表示取不到有效值。public String getRuleType()
public void setRuleType(String RuleType)
RuleType - 规则类型:
file:指定文件后缀生效
directory:指定路径生效
path:指定绝对路径生效
index:首页
注意:此字段可能返回 null,表示取不到有效值。public String getFullUrlCache()
public void setFullUrlCache(String FullUrlCache)
FullUrlCache - 是否开启全路径缓存
on:开启全路径缓存(即关闭参数忽略)
off:关闭全路径缓存(即开启参数忽略)
注意:此字段可能返回 null,表示取不到有效值。public String getIgnoreCase()
public void setIgnoreCase(String IgnoreCase)
IgnoreCase - 是否忽略大小写缓存
on:开启
off:关闭
注意:此字段可能返回 null,表示取不到有效值。public RuleQueryString getQueryString()
public void setQueryString(RuleQueryString QueryString)
QueryString - CacheKey中包含请求参数
注意:此字段可能返回 null,表示取不到有效值。public String getRuleTag()
public void setRuleTag(String RuleTag)
RuleTag - 路径缓存键标签,传 user
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2025. All rights reserved.