|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.web.context.request.AbstractRequestAttributes
org.springframework.web.context.request.ServletRequestAttributes
org.springframework.web.context.request.ServletWebRequest
org.springframework.web.servlet.handler.DispatcherServletWebRequest
public class DispatcherServletWebRequest
ServletWebRequest that is aware of DispatcherServlet's request context, such as the Locale determined by a LocaleResolver.
getLocale()
,
LocaleResolver
Field Summary |
---|
Fields inherited from class org.springframework.web.context.request.ServletRequestAttributes |
---|
DESTRUCTION_CALLBACK_NAME_PREFIX |
Fields inherited from class org.springframework.web.context.request.AbstractRequestAttributes |
---|
requestDestructionCallbacks |
Fields inherited from interface org.springframework.web.context.request.RequestAttributes |
---|
SCOPE_GLOBAL_SESSION, SCOPE_REQUEST, SCOPE_SESSION |
Constructor Summary | |
---|---|
DispatcherServletWebRequest(HttpServletRequest request)
Create a new DispatcherServletWebRequest instance for the given request. |
Method Summary | |
---|---|
Locale |
getLocale()
Return the primary Locale for this request. |
Methods inherited from class org.springframework.web.context.request.ServletWebRequest |
---|
getContextPath, getDescription, getParameter, getParameterMap, getParameterValues, getRemoteUser, getUserPrincipal, isSecure, isUserInRole, toString |
Methods inherited from class org.springframework.web.context.request.ServletRequestAttributes |
---|
getAttribute, getAttributeNames, getRequest, getSession, getSessionId, getSessionMutex, registerDestructionCallback, removeAttribute, setAttribute, updateAccessedSessionAttributes |
Methods inherited from class org.springframework.web.context.request.AbstractRequestAttributes |
---|
registerRequestDestructionCallback, removeRequestDestructionCallback, requestCompleted |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.springframework.web.context.request.RequestAttributes |
---|
getAttribute, getAttributeNames, getSessionId, getSessionMutex, registerDestructionCallback, removeAttribute, setAttribute |
Constructor Detail |
---|
public DispatcherServletWebRequest(HttpServletRequest request)
request
- current HTTP requestMethod Detail |
---|
public Locale getLocale()
WebRequest
getLocale
in interface WebRequest
getLocale
in class ServletWebRequest
ServletRequest.getLocale()
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |