Class VisitorTypes.Builder
java.lang.Object
org.frontcache.bots.VisitorTypes.Builder
- Enclosing class:
VisitorTypes
Builds a vocabulary from
@type lines, refusing each bad one alone - the file's rule: one bad line costs
that line. Not thread safe; one per load.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
add
- Parameters:
line- one trimmed bots.conf line thatstarts with the directive- Returns:
- a warning to log when the line was accepted with a remark (a duplicate - first wins), else null
- Throws:
GuardConfigException- when the line cannot be used
-
build
-