Package org.springframework.context.i18n

Examples of org.springframework.context.i18n.SimpleLocaleContext


        ((AbstractLocaleContextResolver) localeContextResolver).setDefaultTimeZone(TimeZone.getTimeZone("GMT+1"));
        assertEquals(((TimeZoneAwareLocaleContext) localeContext).getTimeZone(), TimeZone.getTimeZone("GMT+1"));
      }

      try {
        localeContextResolver.setLocaleContext(request, response, new SimpleLocaleContext(Locale.US));
        if (!shouldSet) {
          fail("should not be able to set Locale");
        }
        localeContext = localeContextResolver.resolveLocaleContext(request);
        assertEquals(localeContext.getLocale(), Locale.US);
View Full Code Here


   * primary locale as current locale.
   * @param request current HTTP request
   * @return the corresponding LocaleContext
   */
  protected LocaleContext buildLocaleContext(HttpServletRequest request) {
    return new SimpleLocaleContext(request.getLocale());
  }
View Full Code Here

   * primary locale as current locale.
   * @param request current HTTP request
   * @return the corresponding LocaleContext
   */
  protected LocaleContext buildLocaleContext(HttpServletRequest request) {
    return new SimpleLocaleContext(request.getLocale());
  }
View Full Code Here

TOP

Related Classes of org.springframework.context.i18n.SimpleLocaleContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.