Class InterpolationHelper

java.lang.Object
io.dropwizard.validation.InterpolationHelper

public final class InterpolationHelper extends Object
Utilities used for message interpolation.
Since:
2.0.3
Author:
Guillaume Smet
  • Field Details

    • BEGIN_TERM

      public static final char BEGIN_TERM
      A constant representing the '{' character.
      See Also:
    • END_TERM

      public static final char END_TERM
      A constant representing the '}' character.
      See Also:
    • EL_DESIGNATOR

      public static final char EL_DESIGNATOR
      A constant representing the '$' character.
      See Also:
    • ESCAPE_CHARACTER

      public static final char ESCAPE_CHARACTER
      A constant representing the '\' character.
      See Also:
  • Method Details

    • escapeMessageParameter

      public static @Nullable String escapeMessageParameter(@Nullable String messageParameter)
      Escapes a string with the ESCAPE_MESSAGE_PARAMETER_PATTERN.
      Parameters:
      messageParameter - the string to escape
      Returns:
      the escaped string or null, if the input was null