RequestContextUtils org.springframework.web.servlet.support | |
---|---|
Modifier and Type | Method and Description |
static WebApplicationContext | findWebApplicationContext(HttpServletRequest request)
Look for the WebApplicationContext associated with the DispatcherServlet
that has initiated request processing, and for the global context if none
was found associated with the current request.
|
static WebApplicationContext | findWebApplicationContext(HttpServletRequest request,
ServletContext servletContext)
Look for the WebApplicationContext associated with the DispatcherServlet
that has initiated request processing, and for the global context if none
was found associated with the current request.
|
static FlashMapManager | getFlashMapManager(HttpServletRequest request)
Return the FlashMapManager instance to save flash attributes with
before a redirect.
|
static Map<String,?> | getInputFlashMap(HttpServletRequest request)
Return a read-only
Map with “input” flash attributes saved on a
previous request. |
static Locale | getLocale(HttpServletRequest request)
Retrieve the current locale from the given request, using the
LocaleResolver bound to the request by the DispatcherServlet
(if available), falling back to the request’s accept-header Locale.
|
static LocaleResolver | getLocaleResolver(HttpServletRequest request)
Return the LocaleResolver that has been bound to the request by the
DispatcherServlet.
|
static FlashMap | getOutputFlashMap(HttpServletRequest request)
Return the “output” FlashMap with attributes to save for a subsequent request.
|
static Theme | getTheme(HttpServletRequest request)
Retrieves the current theme from the given request, using the ThemeResolver
and ThemeSource bound to the request by the DispatcherServlet.
|
static ThemeResolver | getThemeResolver(HttpServletRequest request)
Return the ThemeResolver that has been bound to the request by the
DispatcherServlet.
|
static ThemeSource | getThemeSource(HttpServletRequest request)
Return the ThemeSource that has been bound to the request by the
DispatcherServlet.
|
static TimeZone | getTimeZone(HttpServletRequest request)
Retrieve the current time zone from the given request, using the
TimeZoneAwareLocaleResolver bound to the request by the DispatcherServlet
(if available), falling back to the system’s default time zone.
|
static WebApplicationContext |
Deprecated.
as of Spring 4.2.1, in favor of
findWebApplicationContext(HttpServletRequest) |
static WebApplicationContext |
Deprecated.
as of Spring 4.2.1, in favor of
findWebApplicationContext(HttpServletRequest, ServletContext) |
API-SpringMVC-RequestContextUtils
最新推荐文章于 2024-06-09 16:15:40 发布