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 全局WAF模式,取值有:
block:阻断(全局阻断,但可对详细规则配置观察);
observe:观察(无论详细规则配置什么,都为观察)。
|
String |
getSwitch()
Get WafConfig开关,取值有:
on:开启;
off:关闭。开关仅与配置是否生效有关,即使为off(关闭),也可以正常修改配置的内容。
|
WafRule |
getWafRule()
Get 托管规则详细配置。如果为null,默认使用历史配置。
|
void |
setAiRule(AiRule AiRule)
Set AI规则引擎防护配置。如果为null,默认使用历史配置。
|
void |
setLevel(String Level)
Set 上一次设置的防护级别,取值有:
loose:宽松;
normal:正常;
strict:严格;
stricter:超严格;
custom:自定义。
|
void |
setMode(String Mode)
Set 全局WAF模式,取值有:
block:阻断(全局阻断,但可对详细规则配置观察);
observe:观察(无论详细规则配置什么,都为观察)。
|
void |
setSwitch(String Switch)
Set WafConfig开关,取值有:
on:开启;
off:关闭。开关仅与配置是否生效有关,即使为off(关闭),也可以正常修改配置的内容。
|
void |
setWafRule(WafRule WafRule)
Set 托管规则详细配置。如果为null,默认使用历史配置。
|
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
- WafConfig开关,取值有:
public String getLevel()
public void setLevel(String Level)
Level
- 上一次设置的防护级别,取值有:
public String getMode()
public void setMode(String Mode)
Mode
- 全局WAF模式,取值有:
public WafRule getWafRule()
public void setWafRule(WafRule WafRule)
WafRule
- 托管规则详细配置。如果为null,默认使用历史配置。public AiRule getAiRule()
public void setAiRule(AiRule AiRule)
AiRule
- AI规则引擎防护配置。如果为null,默认使用历史配置。Copyright © 2022. All rights reserved.