Class ClientSelector
java.lang.Object
org.frontcache.bots.ClientSelector
The
client="..." attribute of an <fc:include>: which visitors the fragment is resolved for.
- a name selects by is-a -
client="guest"is every guest and every typelike guest, so a page written before declared types existed keeps its audience; - a comma list selects any of its names -
client="customer, captcha-passed"; !nameexcludes -client="!customer"is everyone who is not a customer, bots included, andclient="guest, !customer"guests who are not. Resolved when the request is-a some positive name (or there is none) and is-a no negated one.
bot / guest meant before: a typo
fails the way it always failed. all, the documented spelling of the default, is everyone without a warning.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ClientSelectorparse(String value, VisitorTypes types) booleantoString()
-
Field Details
-
BOT
-
GUEST
-
-
Method Details
-
parse
- Parameters:
value- the attribute's value, or nulltypes- the node's vocabulary- Returns:
- the selector, or null for "resolve for everyone" - no attribute, or no name this node knows
-
selects
-
toString
-