Class SessionLocaleInterpolator

  • All Implemented Interfaces:
    javax.validation.MessageInterpolator

    public class SessionLocaleInterpolator
    extends Object
    implements javax.validation.MessageInterpolator
    MessageInterpolator that adapts another to a locale from Wicket's Session
    Author:
    igor
    • Constructor Detail

      • SessionLocaleInterpolator

        public SessionLocaleInterpolator​(javax.validation.MessageInterpolator delegate)
        Constructor
        Parameters:
        delegate - the MessageInterpolator to delegate to
    • Method Detail

      • interpolate

        public String interpolate​(String messageTemplate,
                                  javax.validation.MessageInterpolator.Context context)
        Specified by:
        interpolate in interface javax.validation.MessageInterpolator
      • interpolate

        public String interpolate​(String message,
                                  javax.validation.MessageInterpolator.Context context,
                                  Locale locale)
        Specified by:
        interpolate in interface javax.validation.MessageInterpolator