Class RegexExpansion

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

public class RegexExpansion extends AbstractExpansion
  • Constructor Details

    • RegexExpansion

      public RegexExpansion()
  • Method Details

    • doExpansion

      protected String doExpansion(String original, String[] rule)
      Performs an expansion using regular expressions for both parts of the rule. The first element is a regular expression identifying what to find in the original string, the second element is a regular expression indicating what is to be replaced (may contain substitution groups, etc.)
      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 expression to replace it with
      Returns:
      the (potentially) expanded string as a result of applying the expansion rule