org.springframework.web.servlet.handler
Class DispatcherServletWebRequest
java.lang.Object
   org.springframework.web.context.request.AbstractRequestAttributes
org.springframework.web.context.request.AbstractRequestAttributes
       org.springframework.web.context.request.ServletRequestAttributes
org.springframework.web.context.request.ServletRequestAttributes
           org.springframework.web.context.request.ServletWebRequest
org.springframework.web.context.request.ServletWebRequest
               org.springframework.web.servlet.handler.DispatcherServletWebRequest
org.springframework.web.servlet.handler.DispatcherServletWebRequest
- All Implemented Interfaces: 
- NativeWebRequest, RequestAttributes, WebRequest
- public class DispatcherServletWebRequest 
- extends ServletWebRequest
ServletWebRequest subclass that is aware of
 DispatcherServlet's
 request context, such as the Locale determined by the configured
 LocaleResolver.
- Since:
- 2.0
- Author:
- Juergen Hoeller
- See Also:
- getLocale(),- LocaleResolver
 
 
 
 
 
| Method Summary | 
|  Locale | getLocale()Return the primary Locale for this request.
 | 
 
| Methods inherited from class org.springframework.web.context.request.ServletWebRequest | 
| checkNotModified, getContextPath, getDescription, getNativeRequest, getNativeResponse, getParameter, getParameterMap, getParameterValues, getRemoteUser, getResponse, getUserPrincipal, isNotModified, isSecure, isUserInRole, toString | 
 
 
 
 
 
DispatcherServletWebRequest
public DispatcherServletWebRequest(HttpServletRequest request)
- Create a new DispatcherServletWebRequest instance for the given request.
 
- Parameters:
- request- current HTTP request
 
getLocale
public Locale getLocale()
- Description copied from interface: WebRequest
- Return the primary Locale for this request.
 
- 
- Specified by:
- getLocalein interface- WebRequest
- Overrides:
- getLocalein class- ServletWebRequest
 
- 
- See Also:
- ServletRequest.getLocale()
 
Copyright © 2002-2008 The Spring Framework.