public class WafConfig extends AbstractModel
Constructor and Description |
---|
WafConfig() |
WafConfig(WafConfig 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 |
---|---|
AiRule |
getAiRule()
Get AI规则引擎防护
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getLevel()
Get 防护级别,loose/normal/strict/stricter/custom
|
String |
getMode()
Get 模式 block-阻断;observe-观察模式;close-关闭
|
String |
getSwitch()
Get 开关
|
WafRule |
getWafRules()
Get 门神黑白名单
|
void |
setAiRule(AiRule AiRule)
Set AI规则引擎防护
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setLevel(String Level)
Set 防护级别,loose/normal/strict/stricter/custom
|
void |
setMode(String Mode)
Set 模式 block-阻断;observe-观察模式;close-关闭
|
void |
setSwitch(String Switch)
Set 开关
|
void |
setWafRules(WafRule WafRules)
Set 门神黑白名单
|
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 WafConfig()
public WafConfig(WafConfig source)
public String getSwitch()
public void setSwitch(String Switch)
Switch
- 开关public String getLevel()
public void setLevel(String Level)
Level
- 防护级别,loose/normal/strict/stricter/custompublic String getMode()
public void setMode(String Mode)
Mode
- 模式 block-阻断;observe-观察模式;close-关闭public WafRule getWafRules()
public void setWafRules(WafRule WafRules)
WafRules
- 门神黑白名单public AiRule getAiRule()
public void setAiRule(AiRule AiRule)
AiRule
- AI规则引擎防护
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2022. All rights reserved.