Class BotRuleEntry

java.lang.Object
org.frontcache.bots.BotRuleEntry

public class BotRuleEntry extends Object
Wire/DTO view of a BotRule - what the management API (get-bots) returns and the console renders, alongside the flat botKeywords an older console knows how to read. Deliberately flat and JSON-friendly: the live rule holds compiled patterns and a counter, none of which travel. hits is a snapshot taken when the response was built; counters are in-memory and reset when the node restarts or the rules are reloaded.
  • Constructor Details

    • BotRuleEntry

      public BotRuleEntry()
    • BotRuleEntry

      public BotRuleEntry(String name, String condition, String clientType, boolean dryRun, long hits)
  • Method Details

    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getCondition

      public String getCondition()
    • setCondition

      public void setCondition(String condition)
    • getClientType

      public String getClientType()
    • setClientType

      public void setClientType(String clientType)
    • isDryRun

      public boolean isDryRun()
    • setDryRun

      public void setDryRun(boolean dryRun)
    • getHits

      public long getHits()
    • setHits

      public void setHits(long hits)
    • toString

      public String toString()
      Overrides:
      toString in class Object