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
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 |
---|---|
Locale |
getLocale()
Return the primary Locale for this request.
|
checkNotModified, checkNotModified, getContextPath, getDescription, getHeader, getHeaderNames, getHeaderValues, getNativeRequest, getNativeRequest, getNativeResponse, getNativeResponse, getParameter, getParameterMap, getParameterNames, getParameterValues, getRemoteUser, getResponse, getUserPrincipal, isNotModified, isSecure, isUserInRole, toString
getAttribute, getAttributeNames, getRequest, getSession, getSessionId, getSessionMutex, 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 Locale getLocale()
WebRequest
getLocale
in interface WebRequest
getLocale
in class ServletWebRequest
ServletRequest.getLocale()