Class GetBotsActionResponse
java.lang.Object
org.frontcache.io.ActionResponse
org.frontcache.io.GetBotsActionResponse
public class GetBotsActionResponse
extends org.frontcache.io.ActionResponse
Bot classification config from ./conf/bots.conf: the ordered rules, and the bare User-Agent
keywords.
A flat set as of 2.7. Before that it was a
Map<domain, Set<String>> - a shape that outlived
its reason: one node serves one site, so the map always held exactly one entry, and the console's
JSPs had to switch on the literal "default-domain" to render it.
Both shapes go out on the wire, and both are accepted coming in. See
LegacyDomainKeyedField for why.
botRules is additive, as of 2.9.0. botKeywords keeps meaning exactly what it did -
the BARE keyword lines, nothing else - so a console older than the rules still renders the list it
knows; a newer console reading an older node finds botRules absent and falls back to the same
list. The console is deployed separately from the fleet and upgrades in either order.
visitorTypes is additive likewise, as of 2.13.0: the roots and the declared types, each with its base, its
no-store flag and the hits of the rules deciding it. An older node leaves it absent; an older console
ignores it and renders a declared type as the string in a rule's verdict column.-
Field Summary
Fields inherited from class org.frontcache.io.ActionResponse
RESPONSE_STATUS_ERROR, RESPONSE_STATUS_OK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe rules in evaluation order (built-ins included), each with its hit count since load.getBots()Deprecated.The roots, then the declared types.voidsetBotKeywords(Set<String> botKeywords) voidsetBotRules(List<BotRuleEntry> botRules) voidDeprecated.pre-2.7 shape ofsetBotKeywords(Set)voidsetVisitorTypes(List<VisitorTypeEntry> visitorTypes) Methods inherited from class org.frontcache.io.ActionResponse
getAction, getErrorDescription, getResponseStatus, setAction, setErrorDescription, setResponseStatus
-
Constructor Details
-
GetBotsActionResponse
public GetBotsActionResponse()
-
-
Method Details
-
getBotKeywords
-
setBotKeywords
-
getBotRules
The rules in evaluation order (built-ins included), each with its hit count since load. Null from a node older than 2.9.0. -
setBotRules
-
getVisitorTypes
The roots, then the declared types. Null from a node older than 2.13.0 - it knows bot and guest only. -
setVisitorTypes
-
getBots
Deprecated.pre-2.7 shape ofgetBotKeywords()- a single-entry map keyed by domain. -
setBots
Deprecated.pre-2.7 shape ofsetBotKeywords(Set)
-
getBotKeywords()- a single-entry map keyed by domain.