Class ExtPredicate
java.lang.Object
org.frontcache.guard.ExtPredicate
- All Implemented Interfaces:
GuardPredicate
ext:<name>[:<argument>] - a condition a started plugin offers (decide, E3). Parsed here into its name
and argument only: the rules load before the plugins start, and the console and the portal check files with no
plugin at all. The plugin compiles the argument when the predicate is first bound after the plugins (re)start - see
PluginPredicates.
When it has no answer - no started plugin offers the name, the plugin refused the argument, threw, or is switched
off for going over its budget - test(RequestContext) throws PredicateUndecided and the rule does not match.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbinding()ForPluginPredicatesonly.voidForPluginPredicatesonly.describe()getName()The plugin's predicate this one is, or negates; null for a core predicate.booleantest(RequestContext context) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GuardPredicate
isPluginPredicate
-
Field Details
-
PREFIX
- See Also:
-
NAME
A predicate's name, as a plugin's provider names it.
-
-
Method Details
-
getName
-
getArgument
-
test
- Specified by:
testin interfaceGuardPredicate- Parameters:
context- request context - may carry a null servlet request (async include, or a synthetic probe context used for startup loop detection)- Returns:
- true when this condition holds for the request
-
pluginPredicate
Description copied from interface:GuardPredicateThe plugin's predicate this one is, or negates; null for a core predicate.- Specified by:
pluginPredicatein interfaceGuardPredicate
-
describe
- Specified by:
describein interfaceGuardPredicate- Returns:
- the predicate as written in guard-rules.conf (used by logs and the admin API)
-
binding
ForPluginPredicatesonly. -
binding
ForPluginPredicatesonly.
-