Package ddf.security.expansion.impl
Class StraightExpansionImpl
java.lang.Object
ddf.security.expansion.impl.AbstractExpansion
ddf.security.expansion.impl.StraightExpansionImpl
- All Implemented Interfaces:
ddf.security.expansion.Expansion
-
Field Summary
Fields inherited from class ddf.security.expansion.impl.AbstractExpansion
CFG_COMMENT_STR, DEFAULT_CONFIG_FILE_NAME, DEFAULT_VALUE_SEPARATOR, expansionTable, LOGGER, RULE_SPLIT_REGEX, rulePattern, SEPARATOR_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringdoExpansion(String original, String[] rule) Performs an expansion using straight string equality and substitution for both parts of the rule.Methods inherited from class ddf.security.expansion.impl.AbstractExpansion
addExpansionList, addExpansionRule, expand, expand, getExpansionMap, loadConfiguration, removeExpansionRule, setAttributeSeparator, setExpansionFileName, setExpansionMap, setExpansionRules, split, update
-
Constructor Details
-
StraightExpansionImpl
public StraightExpansionImpl()
-
-
Method Details
-
doExpansion
Performs an expansion using straight string equality and substitution for both parts of the rule. The first element is the string that must match the entire original string, the second element is the complete replacement string to be substituted for the original.- Specified by:
doExpansionin classAbstractExpansion- Parameters:
original- The original string to be expandedrule- Two values specifying the expression to search for and the string to replace it with- Returns:
- the (potentially) expanded string as a result of applying the provided rule
-