Class StraightExpansionImpl

java.lang.Object
ddf.security.expansion.impl.AbstractExpansion
ddf.security.expansion.impl.StraightExpansionImpl
All Implemented Interfaces:
ddf.security.expansion.Expansion

public class StraightExpansionImpl extends AbstractExpansion
  • Constructor Details

    • StraightExpansionImpl

      public StraightExpansionImpl()
  • Method Details

    • doExpansion

      protected String doExpansion(String original, String[] rule)
      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:
      doExpansion in class AbstractExpansion
      Parameters:
      original - The original string to be expanded
      rule - 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