Package io.dropwizard.validation
Class InterpolationHelper
java.lang.Object
io.dropwizard.validation.InterpolationHelper
Utilities used for message interpolation.
- Since:
- 2.0.3
- Author:
- Guillaume Smet
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final charA constant representing the '{' character.static final charA constant representing the '$' character.static final charA constant representing the '}' character.static final charA constant representing the '\' character. -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable StringescapeMessageParameter(@Nullable String messageParameter) Escapes a string with theESCAPE_MESSAGE_PARAMETER_PATTERN.
-
Field Details
-
BEGIN_TERM
public static final char BEGIN_TERMA constant representing the '{' character.- See Also:
-
END_TERM
public static final char END_TERMA constant representing the '}' character.- See Also:
-
EL_DESIGNATOR
public static final char EL_DESIGNATORA constant representing the '$' character.- See Also:
-
ESCAPE_CHARACTER
public static final char ESCAPE_CHARACTERA constant representing the '\' character.- See Also:
-
-
Method Details
-
escapeMessageParameter
Escapes a string with theESCAPE_MESSAGE_PARAMETER_PATTERN.- Parameters:
messageParameter- the string to escape- Returns:
- the escaped string or
null, if the input wasnull
-