org.springframework.web.servlet.support
Class JstlUtils.SpringLocalizationContext

java.lang.Object
  extended by LocalizationContext
      extended by org.springframework.web.servlet.support.JstlUtils.SpringLocalizationContext
Enclosing class:
JstlUtils

private static class JstlUtils.SpringLocalizationContext
extends LocalizationContext

Spring-specific LocalizationContext adapter that merges session-scoped JSTL LocalizationContext/Locale attributes with the local Spring request context.


Field Summary
private  MessageSource messageSource
           
private  HttpServletRequest request
           
 
Constructor Summary
JstlUtils.SpringLocalizationContext(MessageSource messageSource, HttpServletRequest request)
           
 
Method Summary
 java.util.Locale getLocale()
           
 java.util.ResourceBundle getResourceBundle()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

messageSource

private final MessageSource messageSource

request

private final HttpServletRequest request
Constructor Detail

JstlUtils.SpringLocalizationContext

public JstlUtils.SpringLocalizationContext(MessageSource messageSource,
                                           HttpServletRequest request)
Method Detail

getResourceBundle

public java.util.ResourceBundle getResourceBundle()

getLocale

public java.util.Locale getLocale()