ServletWebRequest subclass that is aware of
org.springframework.web.servlet.DispatcherServlet 's
request context, such as the Locale determined by the configured
org.springframework.web.servlet.LocaleResolver .
getLocale(), org.springframework.web.servlet.LocaleResolver
| Access | Constructor and Description |
|---|---|
| public | DispatcherServletWebRequest(HttpServletRequest
current HTTP request request)Create a new DispatcherServletWebRequest instance for the given request. |
| public | DispatcherServletWebRequest(HttpServletRequest
current HTTP request request, HttpServletResponse current HTTP response response)Create a new DispatcherServletWebRequest instance for the given request and response. |
| Modifier and Type | Method and Description |
|---|---|
| public Locale | getLocale()
Overrides org. Implements org. Return the primary Locale for this request. |
| DispatcherServletWebRequest | back to summary |
|---|---|
| public DispatcherServletWebRequest(HttpServletRequest request) Create a new DispatcherServletWebRequest instance for the given request.
| |
| DispatcherServletWebRequest | back to summary |
|---|---|
| public DispatcherServletWebRequest(HttpServletRequest request, HttpServletResponse response) Create a new DispatcherServletWebRequest instance for the given request and response.
| |
| getLocale | back to summary |
|---|---|
| public Locale getLocale() Overrides org. Implements org. Doc from org. Return the primary Locale for this request.
| |