Class ExceptUserRuleCondition

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String getMatchContent()
      Get 匹配值。
      String getMatchFrom()
      Get 匹配项,取值有: host:请求域名; sip:客户端IP; ua:User-Agent; cookie:会话 Cookie; cgi:CGI 脚本; xff:XFF 扩展头部; url:请求 URL; accept:请求内容类型; method:请求方式; header:请求头部; sip_proto:网络层协议。
      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:请求头部; sip_proto:网络层协议。
      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.
    • Constructor Detail

      • ExceptUserRuleCondition

        public ExceptUserRuleCondition()
      • ExceptUserRuleCondition

        public ExceptUserRuleCondition​(ExceptUserRuleCondition 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.
    • Method Detail

      • getMatchFrom

        public String getMatchFrom()
        Get 匹配项,取值有:
      • host:请求域名;
      • sip:客户端IP;
      • ua:User-Agent;
      • cookie:会话 Cookie;
      • cgi:CGI 脚本;
      • xff:XFF 扩展头部;
      • url:请求 URL;
      • accept:请求内容类型;
      • method:请求方式;
      • header:请求头部;
      • sip_proto:网络层协议。
Returns:
MatchFrom 匹配项,取值有:
  • host:请求域名;
  • sip:客户端IP;
  • ua:User-Agent;
  • cookie:会话 Cookie;
  • cgi:CGI 脚本;
  • xff:XFF 扩展头部;
  • url:请求 URL;
  • accept:请求内容类型;
  • method:请求方式;
  • header:请求头部;
  • sip_proto:网络层协议。
  • Parameters:
    MatchFrom - 匹配项,取值有:
  • host:请求域名;
  • sip:客户端IP;
  • ua:User-Agent;
  • cookie:会话 Cookie;
  • cgi:CGI 脚本;
  • xff:XFF 扩展头部;
  • url:请求 URL;
  • accept:请求内容类型;
  • method:请求方式;
  • header:请求头部;
  • sip_proto:网络层协议。