| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Utility class for easy access to various request-specific state, set by the DispatcherServlet.
| Method Summary | |
static Locale | getLocale(HttpServletRequest request)Retrieves the current locale from the given request, using the LocaleResolver bound to the request by the DispatcherServlet. |
static LocaleResolver | getLocaleResolver(HttpServletRequest request)Return the LocaleResolver that has been bound to the request by the DispatcherServlet. |
static MultipartResolver | getMultipartResolver(HttpServletRequest request)Return the MultipartResolver that has been bound to the request by the DispatcherServlet. |
static Theme | getTheme(HttpServletRequest request)Retrieves the current theme from the given request, using the ThemeResolver bound to the request by the DispatcherServlet, and the current WebApplicationContext. |
static ThemeResolver | getThemeResolver(HttpServletRequest request)Return the ThemeResolver that has been bound to the request by the DispatcherServlet. |
static WebApplicationContext | getWebApplicationContext(ServletRequest request)Look for the WebApplicationContext associated with the controller servlet that has initiated request processing. |
static WebApplicationContext | getWebApplicationContext(ServletRequest request, ServletContext servletContext)Look for the WebApplicationContext associated with the controller servlet that has initiated request processing, and for the global context if none was found associated with the current request. |
| Method Detail |
public static Locale getLocale(HttpServletRequest request)
throws java.lang.IllegalStateException
public static LocaleResolver getLocaleResolver(HttpServletRequest request)
throws java.lang.IllegalStateException
public static MultipartResolver getMultipartResolver(HttpServletRequest request)
public static Theme getTheme(HttpServletRequest request)
throws java.lang.IllegalStateException
public static ThemeResolver getThemeResolver(HttpServletRequest request)
throws java.lang.IllegalStateException
public static WebApplicationContext getWebApplicationContext(ServletRequest request)
throws java.lang.IllegalStateException
public static WebApplicationContext getWebApplicationContext(ServletRequest request, ServletContext servletContext)
throws java.lang.IllegalStateException
| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||