Enum Class GuardPredicateFactory.Scope
- All Implemented Interfaces:
Serializable, Comparable<GuardPredicateFactory.Scope>, Constable
- Enclosing class:
GuardPredicateFactory
Which config file a predicate is being parsed for. The grammar is shared; two predicates are
not.
client-type:is refused inBOTSbecause it is circular - classification computes the value that predicate reads.rate:is refused inBOTSbecause it counts. Classification runs for every request including every include, before the guard rules, so metering there would spend a visitor's budget once per fragment of their page. Rate-based reactions belong in guard-rules.conf, which can read the classification back throughclient-type:.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiongetFile()static GuardPredicateFactory.ScopeReturns the enum constant of this class with the specified name.static GuardPredicateFactory.Scope[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GUARD
-
BOTS
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getFile
-