@Test public void resolveLocaleContextWithWellFormattedLocaleIsTaken() throws Exception { DataprepLocaleContextResolver resolver = new DataprepLocaleContextResolver(TEST_LOCALE); Locale locale = resolver.resolveLocale(request); assertNotNull(locale); assertEquals(TEST_LOCALE, locale.toLanguageTag()); }
@Override public Locale resolveLocale(HttpServletRequest request) { return getLocale(request); }
DataprepLocaleContextResolver implements LocaleContextResolver { @Override public Locale resolveLocale(HttpServletRequest request) { return getLocale(request); } }
DataprepLocaleContextResolver implements LocaleContextResolver { @Override public Locale resolveLocale(HttpServletRequest request) { return getLocale(request); } DataprepLocaleContextResolver(@Value("${dataprep.locale:en-US}") String configuredLocale); }
DataprepLocaleContextResolver implements LocaleContextResolver { @Override public Locale resolveLocale(HttpServletRequest request) { return getLocale(request); } DataprepLocaleContextResolver(@Value("${dataprep.locale:en-US}") String configuredLocale); @Override Locale resolveLocale(HttpServletRequest request); @Override void setLocale(HttpServletRequest request, HttpServletResponse response, Locale locale); @Override LocaleContext resolveLocaleContext(HttpServletRequest request); @Override void setLocaleContext(HttpServletRequest request, HttpServletResponse response,
            LocaleContext localeContext); }
DataprepLocaleContextResolver implements LocaleContextResolver { @Override public Locale resolveLocale(HttpServletRequest request) { return getLocale(request); } DataprepLocaleContextResolver(@Value("${dataprep.locale:en-US}") String configuredLocale); @Override Locale resolveLocale(HttpServletRequest request); @Override void setLocale(HttpServletRequest request, HttpServletResponse response, Locale locale); @Override LocaleContext resolveLocaleContext(HttpServletRequest request); @Override void setLocaleContext(HttpServletRequest request, HttpServletResponse response,
            LocaleContext localeContext);  }