public class DispatcherServletWebRequest
extends org.springframework.web.context.request.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| 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() |
checkNotModified, checkNotModified, getContextPath, getDescription, getHeader, getHeaderNames, getHeaderValues, getHttpMethod, getNativeRequest, getNativeRequest, getNativeResponse, getNativeResponse, getParameter, getParameterMap, getParameterNames, getParameterValues, getRemoteUser, getResponse, getUserPrincipal, isNotModified, isSecure, isUserInRole, toStringgetAttribute, getAttributeNames, getRequest, getSession, getSessionId, getSessionMutex, registerDestructionCallback, registerSessionDestructionCallback, removeAttribute, resolveReference, setAttribute, updateAccessedSessionAttributesisRequestActive, registerRequestDestructionCallback, removeRequestDestructionCallback, requestCompletedpublic DispatcherServletWebRequest(HttpServletRequest request)
request - current HTTP requestpublic DispatcherServletWebRequest(HttpServletRequest request, HttpServletResponse response)
request - current HTTP requestresponse - current HTTP responsepublic Locale getLocale()
getLocale in interface org.springframework.web.context.request.WebRequestgetLocale in class org.springframework.web.context.request.ServletWebRequest