public class DispatcherServletWebRequest extends ServletWebRequest
ServletWebRequest subclass that is aware of
 DispatcherServlet's
 request context, such as the Locale determined by the configured
 LocaleResolver.getLocale(), 
LocaleResolverDESTRUCTION_CALLBACK_NAME_PREFIX, immutableValueTypesrequestDestructionCallbacksREFERENCE_REQUEST, REFERENCE_SESSION, SCOPE_REQUEST, SCOPE_SESSION| Constructor and Description | 
|---|
| DispatcherServletWebRequest(HttpServletRequest request)Create a new DispatcherServletWebRequest instance for the given request. | 
| DispatcherServletWebRequest(HttpServletRequest request,
                           HttpServletResponse response)Create a new DispatcherServletWebRequest instance for the given request and response. | 
| Modifier and Type | Method and Description | 
|---|---|
| Locale | getLocale()Return the primary Locale for this request. | 
checkNotModified, checkNotModified, checkNotModified, getContextPath, getDescription, getHeader, getHeaderNames, getHeaderValues, getHttpMethod, getNativeRequest, getNativeRequest, getNativeResponse, getNativeResponse, getParameter, getParameterMap, getParameterNames, getParameterValues, getRemoteUser, getUserPrincipal, isNotModified, isSecure, isUserInRole, toStringgetAttribute, getAttributeNames, getRequest, getResponse, getSession, getSessionId, getSessionMutex, isImmutableSessionAttribute, registerDestructionCallback, registerSessionDestructionCallback, removeAttribute, resolveReference, setAttribute, updateAccessedSessionAttributesisRequestActive, registerRequestDestructionCallback, removeRequestDestructionCallback, requestCompletedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAttribute, getAttributeNames, getSessionId, getSessionMutex, registerDestructionCallback, removeAttribute, resolveReference, setAttributepublic DispatcherServletWebRequest(HttpServletRequest request)
request - current HTTP requestpublic DispatcherServletWebRequest(HttpServletRequest request, HttpServletResponse response)
request - current HTTP requestresponse - current HTTP responsepublic Locale getLocale()
WebRequestgetLocale in interface WebRequestgetLocale in class ServletWebRequestServletRequest.getLocale()