Class AclUserRule

    • Constructor Summary

      Constructors 
      Constructor Description
      AclUserRule()  
      AclUserRule​(AclUserRule 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 Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      AclCondition[] getAclConditions()
      Get 自定义规则。
      String getAction()
      Get 处罚动作,取值有: trans:放行; drop:拦截; monitor:观察; ban:IP封禁; redirect:重定向; page:指定页面; alg:Javascript挑战。
      String getName()
      Get 自定义返回页面的名称。默认为空字符串。 注意:此字段可能返回 null,表示取不到有效值。
      Long getPageId()
      Get 自定义返回页面的实例id。默认为0。 注意:此字段可能返回 null,表示取不到有效值。
      Long getPunishTime()
      Get ip封禁的惩罚时间,取值范围0-2天。默认为0。 注意:此字段可能返回 null,表示取不到有效值。
      String getPunishTimeUnit()
      Get ip封禁的惩罚时间单位,取值有: second:秒; minutes:分; hour:小时。默认为second。 注意:此字段可能返回 null,表示取不到有效值。
      String getRedirectUrl()
      Get 重定向时候的地址,必须为本用户接入的站点子域名。默认为空字符串。 注意:此字段可能返回 null,表示取不到有效值。
      Long getResponseCode()
      Get 重定向时候的返回码。默认为0。 注意:此字段可能返回 null,表示取不到有效值。
      Long getRuleID()
      Get 规则Id。仅出参使用。 注意:此字段可能返回 null,表示取不到有效值。
      String getRuleName()
      Get 规则名。
      Long getRulePriority()
      Get 规则优先级,取值范围0-100。
      String getRuleStatus()
      Get 规则状态,取值有: on:生效; off:失效。
      String getUpdateTime()
      Get 更新时间。仅出参使用。 注意:此字段可能返回 null,表示取不到有效值。
      void setAclConditions​(AclCondition[] AclConditions)
      Set 自定义规则。
      void setAction​(String Action)
      Set 处罚动作,取值有: trans:放行; drop:拦截; monitor:观察; ban:IP封禁; redirect:重定向; page:指定页面; alg:Javascript挑战。
      void setName​(String Name)
      Set 自定义返回页面的名称。默认为空字符串。 注意:此字段可能返回 null,表示取不到有效值。
      void setPageId​(Long PageId)
      Set 自定义返回页面的实例id。默认为0。 注意:此字段可能返回 null,表示取不到有效值。
      void setPunishTime​(Long PunishTime)
      Set ip封禁的惩罚时间,取值范围0-2天。默认为0。 注意:此字段可能返回 null,表示取不到有效值。
      void setPunishTimeUnit​(String PunishTimeUnit)
      Set ip封禁的惩罚时间单位,取值有: second:秒; minutes:分; hour:小时。默认为second。 注意:此字段可能返回 null,表示取不到有效值。
      void setRedirectUrl​(String RedirectUrl)
      Set 重定向时候的地址,必须为本用户接入的站点子域名。默认为空字符串。 注意:此字段可能返回 null,表示取不到有效值。
      void setResponseCode​(Long ResponseCode)
      Set 重定向时候的返回码。默认为0。 注意:此字段可能返回 null,表示取不到有效值。
      void setRuleID​(Long RuleID)
      Set 规则Id。仅出参使用。 注意:此字段可能返回 null,表示取不到有效值。
      void setRuleName​(String RuleName)
      Set 规则名。
      void setRulePriority​(Long RulePriority)
      Set 规则优先级,取值范围0-100。
      void setRuleStatus​(String RuleStatus)
      Set 规则状态,取值有: on:生效; off:失效。
      void setUpdateTime​(String UpdateTime)
      Set 更新时间。仅出参使用。 注意:此字段可能返回 null,表示取不到有效值。
      void toMap​(HashMap<String,​String> map, String prefix)
      Internal implementation, normal users should not use it.
    • Constructor Detail

      • AclUserRule

        public AclUserRule()
      • AclUserRule

        public AclUserRule​(AclUserRule 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

      • getRuleName

        public String getRuleName()
        Get 规则名。
        Returns:
        RuleName 规则名。
      • setRuleName

        public void setRuleName​(String RuleName)
        Set 规则名。
        Parameters:
        RuleName - 规则名。
      • getAction

        public String getAction()
        Get 处罚动作,取值有:
      • trans:放行;
      • drop:拦截;
      • monitor:观察;
      • ban:IP封禁;
      • redirect:重定向;
      • page:指定页面;
      • alg:Javascript挑战。
Returns:
Action 处罚动作,取值有:
  • trans:放行;
  • drop:拦截;
  • monitor:观察;
  • ban:IP封禁;
  • redirect:重定向;
  • page:指定页面;
  • alg:Javascript挑战。
  • Parameters:
    Action - 处罚动作,取值有:
  • trans:放行;
  • drop:拦截;
  • monitor:观察;
  • ban:IP封禁;
  • redirect:重定向;
  • page:指定页面;
  • alg:Javascript挑战。