public class AclCondition extends AbstractModel
header, skipSign
Constructor and Description |
---|
AclCondition() |
AclCondition(AclCondition 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 |
getMatchContent()
Get 匹配内容。
|
String |
getMatchFrom()
Get 匹配字段,取值有:
host:请求域名;
sip:客户端IP;
ua:User-Agent;
cookie:会话 Cookie;
cgi:CGI 脚本;
xff:XFF 扩展头部;
url:请求 URL;
accept:请求内容类型;
method:请求方式;
header:请求头部;
app_proto:应用层协议;
sip_proto:网络层协议;
uabot:UA 特征规则,仅bot自定义规则可用;
idcid:IDC 规则,仅bot自定义规则可用;
sipbot:搜索引擎规则,仅bot自定义规则可用;
portrait:画像分析,仅bot自定义规则可用;
header_seq:请求头顺序,仅bot自定义规则可用;
hdr:请求正文,仅Web防护自定义规则可用。
|
String |
getMatchParam()
Get 匹配字符串。当 MatchFrom 为 header 时,可以填入 header 的 key 作为参数。
|
String |
getOperator()
Get 匹配关系,取值有:
equal:字符串等于;
not_equal:数值不等于;
include:字符包含;
not_include:字符不包含;
match:ip匹配;
not_match:ip不匹配;
include_area:地域包含;
is_empty:存在字段但值为空;
not_exists:不存在关键字段;
regexp:正则匹配;
len_gt:数值大于;
len_lt:数值小于;
len_eq:数值等于;
match_prefix:前缀匹配;
match_suffix:后缀匹配;
wildcard:通配符。
|
void |
setMatchContent(String MatchContent)
Set 匹配内容。
|
void |
setMatchFrom(String MatchFrom)
Set 匹配字段,取值有:
host:请求域名;
sip:客户端IP;
ua:User-Agent;
cookie:会话 Cookie;
cgi:CGI 脚本;
xff:XFF 扩展头部;
url:请求 URL;
accept:请求内容类型;
method:请求方式;
header:请求头部;
app_proto:应用层协议;
sip_proto:网络层协议;
uabot:UA 特征规则,仅bot自定义规则可用;
idcid:IDC 规则,仅bot自定义规则可用;
sipbot:搜索引擎规则,仅bot自定义规则可用;
portrait:画像分析,仅bot自定义规则可用;
header_seq:请求头顺序,仅bot自定义规则可用;
hdr:请求正文,仅Web防护自定义规则可用。
|
void |
setMatchParam(String MatchParam)
Set 匹配字符串。当 MatchFrom 为 header 时,可以填入 header 的 key 作为参数。
|
void |
setOperator(String Operator)
Set 匹配关系,取值有:
equal:字符串等于;
not_equal:数值不等于;
include:字符包含;
not_include:字符不包含;
match:ip匹配;
not_match:ip不匹配;
include_area:地域包含;
is_empty:存在字段但值为空;
not_exists:不存在关键字段;
regexp:正则匹配;
len_gt:数值大于;
len_lt:数值小于;
len_eq:数值等于;
match_prefix:前缀匹配;
match_suffix:后缀匹配;
wildcard:通配符。
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public AclCondition()
public AclCondition(AclCondition source)
public String getMatchFrom()
public void setMatchFrom(String MatchFrom)
MatchFrom
- 匹配字段,取值有:
public String getMatchParam()
public void setMatchParam(String MatchParam)
MatchParam
- 匹配字符串。当 MatchFrom 为 header 时,可以填入 header 的 key 作为参数。public String getOperator()
public void setOperator(String Operator)
Operator
- 匹配关系,取值有:
public String getMatchContent()
public void setMatchContent(String MatchContent)
MatchContent
- 匹配内容。Copyright © 2024. All rights reserved.