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()
,
LocaleResolver
DESTRUCTION_CALLBACK_NAME_PREFIX, immutableValueTypes
requestDestructionCallbacks
REFERENCE_REQUEST, REFERENCE_SESSION, SCOPE_GLOBAL_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 |
---|---|
java.util.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, toString
getAttribute, getAttributeNames, getRequest, getResponse, getSession, getSessionId, getSessionMutex, isImmutableSessionAttribute, registerDestructionCallback, registerSessionDestructionCallback, removeAttribute, resolveReference, setAttribute, updateAccessedSessionAttributes
isRequestActive, registerRequestDestructionCallback, removeRequestDestructionCallback, requestCompleted
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAttribute, getAttributeNames, getSessionId, getSessionMutex, registerDestructionCallback, removeAttribute, resolveReference, setAttribute
public DispatcherServletWebRequest(HttpServletRequest request)
request
- current HTTP requestpublic DispatcherServletWebRequest(HttpServletRequest request, HttpServletResponse response)
request
- current HTTP requestresponse
- current HTTP responsepublic java.util.Locale getLocale()
WebRequest
getLocale
in interface WebRequest
getLocale
in class ServletWebRequest
ServletRequest.getLocale()