Package nl.basjes.parse.useragent.config
Class AnalyzerConfig.AnalyzerConfigBuilder
java.lang.Object
nl.basjes.parse.useragent.config.AnalyzerConfig.AnalyzerConfigBuilder
- Enclosing class:
- AnalyzerConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMatcherConfigs(String filename, MatcherConfig matcherConfig) addTestCase(TestCase testCase) build()Store the keys and values.putLookupMerges(String name, Set<String> lookupNames) Store the additional lookups that need to be merged in with a lookupputLookupSets(String name, Set<String> values) Store the keys and values.putLookupSets(Map<String, Set<String>> newLookupSets) putLookupSetsMerges(String name, Set<String> setNames) Store the additional lookupSets that need to be merged in with a lookupSetwithUserAgentMaxLength(int userAgentMaxLength)
-
Constructor Details
-
AnalyzerConfigBuilder
public AnalyzerConfigBuilder()
-
-
Method Details
-
addMatcherConfigs
-
putLookup
Store the keys and values.- Parameters:
name- The name of the lookupvalues- The additional keys and values for this lookup.
-
putLookups
- Parameters:
newLookups- The additional lookups.
-
putLookupMerges
Store the additional lookups that need to be merged in with a lookup- Parameters:
name- The name of the lookuplookupNames- The names of the lookups that must be added to the specified lookup.
-
putLookupSets
Store the keys and values.- Parameters:
name- The name of the lookupSetvalues- The additional keys and values for this lookup.
-
putLookupSets
- Parameters:
newLookupSets- The additional lookup sets.
-
putLookupSetsMerges
Store the additional lookupSets that need to be merged in with a lookupSet- Parameters:
name- The name of the lookupSetsetNames- The names of the lookupSets that must be added to the specified lookupSet.
-
clearAllTestCases
-
addTestCase
-
withUserAgentMaxLength
-
build
-