Class InterpolationHelper


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

      • BEGIN_TERM

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

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

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

        public static final char ESCAPE_CHARACTER
        A constant representing the '\' character.
        See Also:
        Constant Field Values
    • Method Detail

      • 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