Class GetBotsActionResponse
java.lang.Object
org.frontcache.io.ActionResponse
org.frontcache.io.GetBotsActionResponse
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.-
Field Summary
Fields inherited from class 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.voidsetBotKeywords(Set<String> botKeywords) voidsetBotRules(List<BotRuleEntry> botRules) voidDeprecated.pre-2.7 shape ofsetBotKeywords(Set)Methods inherited from class 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
-
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.