public class RequestFieldsForException extends AbstractModel
header, skipSign
Constructor and Description |
---|
RequestFieldsForException() |
RequestFieldsForException(RequestFieldsForException 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 |
getCondition()
Get 跳过的具体字段的表达式,需要符合表达式语法。
Condition 支持表达式配置语法: 按规则的匹配条件表达式语法编写,支持引用 key、value。 支持 in、like 操作符,以及 and 逻辑组合。 例如:${key} in ['x-trace-id']:参数名称等于x-trace-id。${key} in ['x-trace-id'] and ${value} like ['Bearer *']:参数名称等于x-trace-id并且参数值通配符匹配Bearer *。 |
String |
getScope()
Get 跳过的具体字段。取值支持:
body.json:JSON 请求内容;此时 Condition 支持 key、value, TargetField 支持 key、value,例如 { "Scope": "body.json", "Condition": "", "TargetField": "key" },表示 JSON 请求内容所有参数跳过 WAF 扫描; |
String |
getTargetField()
Get Scope 参数使用不同取值时,TargetField 表达式中支持的值如下:
body.json:支持 key、value
cookie:支持 key、value
header:支持 key、value
uri.query:支持 key、value
uri:支持 path、query、fullpath
body:支持 fullbody、multipart
|
void |
setCondition(String Condition)
Set 跳过的具体字段的表达式,需要符合表达式语法。
Condition 支持表达式配置语法: 按规则的匹配条件表达式语法编写,支持引用 key、value。 支持 in、like 操作符,以及 and 逻辑组合。 例如:${key} in ['x-trace-id']:参数名称等于x-trace-id。${key} in ['x-trace-id'] and ${value} like ['Bearer *']:参数名称等于x-trace-id并且参数值通配符匹配Bearer *。 |
void |
setScope(String Scope)
Set 跳过的具体字段。取值支持:
body.json:JSON 请求内容;此时 Condition 支持 key、value, TargetField 支持 key、value,例如 { "Scope": "body.json", "Condition": "", "TargetField": "key" },表示 JSON 请求内容所有参数跳过 WAF 扫描; |
void |
setTargetField(String TargetField)
Set Scope 参数使用不同取值时,TargetField 表达式中支持的值如下:
body.json:支持 key、value
cookie:支持 key、value
header:支持 key、value
uri.query:支持 key、value
uri:支持 path、query、fullpath
body:支持 fullbody、multipart
|
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, toJsonString
public RequestFieldsForException()
public RequestFieldsForException(RequestFieldsForException source)
public String getScope()
public void setScope(String Scope)
Scope
- 跳过的具体字段。取值支持:public String getCondition()
public void setCondition(String Condition)
Condition
- 跳过的具体字段的表达式,需要符合表达式语法。public String getTargetField()
public void setTargetField(String TargetField)
TargetField
- Scope 参数使用不同取值时,TargetField 表达式中支持的值如下:
Copyright © 2025. All rights reserved.