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()
,
LocaleResolver
DESTRUCTION_CALLBACK_NAME_PREFIX, immutableValueTypes
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, checkNotModified, getContextPath, getDescription, getHeader, getHeaderNames, getHeaderValues, getHttpMethod, getNativeRequest, getNativeRequest, getNativeResponse, getNativeResponse, getParameter, getParameterMap, getParameterNames, getParameterValues, getRemoteUser, getUserPrincipal, isNotModified, isSecure, isUserInRole, toString
getAttribute, getAttributeNames, getRequest, getResponse, getSession, getSessionId, getSessionMutex, isImmutableSessionAttribute, registerDestructionCallback, registerSessionDestructionCallback, removeAttribute, resolveReference, setAttribute, updateAccessedSessionAttributes
isRequestActive, registerRequestDestructionCallback, removeRequestDestructionCallback, requestCompleted
public 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.WebRequest
getLocale
in class org.springframework.web.context.request.ServletWebRequest