Enum Class RegexAction

java.lang.Object
java.lang.Enum<RegexAction>
com.codingchili.core.security.RegexAction
All Implemented Interfaces:
Serializable, Comparable<RegexAction>, Constable

public enum RegexAction extends Enum<RegexAction>
Determines if text matching a regex should be replaced or if the validation should fail.
  • Enum Constant Details

    • REJECT

      public static final RegexAction REJECT
      Rejects the input whenever the configured regex matches.
    • SUBSTITUTE

      public static final RegexAction SUBSTITUTE
      Substitutes parts of the input which matches the regex.
    • ACCEPT

      public static final RegexAction ACCEPT
      Accepts the input if there is a complete match for the input.
  • Method Details

    • values

      public static RegexAction[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static RegexAction valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null