站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 2.1.0 API 文档英文版

DispatcherServletWebRequest (Spring Framework API 2.1) - Spring Framework 2.1.0 API 文档英文版


The Spring Framework

org.springframework.web.servlet.handler
Class DispatcherServletWebRequest

java.lang.Object
  extended by org.springframework.web.context.request.AbstractRequestAttributes
      extended by org.springframework.web.context.request.ServletRequestAttributes
          extended by org.springframework.web.context.request.ServletWebRequest
              extended by org.springframework.web.servlet.handler.DispatcherServletWebRequest
All Implemented Interfaces:
RequestAttributes, WebRequest

public class DispatcherServletWebRequest
extends ServletWebRequest

ServletWebRequest that is aware of DispatcherServlet's request context, such as the Locale determined by a LocaleResolver.

Since:
2.0
Author:
Juergen Hoeller
See Also:
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, getParameter, getParameterMap, getParameterValues, getRemoteUser, getUserPrincipal, isSecure, isUserInRole
 
Methods inherited from class org.springframework.web.context.request.ServletRequestAttributes
getAttribute, 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, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.web.context.request.RequestAttributes
getAttribute, getSessionId, getSessionMutex, registerDestructionCallback, removeAttribute, setAttribute
 

Constructor Detail

DispatcherServletWebRequest

public DispatcherServletWebRequest(HttpServletRequest request)
Create a new DispatcherServletWebRequest instance for the given request.

Parameters:
request - current HTTP request
Method Detail

getLocale

public Locale getLocale()
Description copied from interface: WebRequest
Return the primary Locale for this request.

Specified by:
getLocale in interface WebRequest
Overrides:
getLocale in class ServletWebRequest
See Also:
ServletRequest.getLocale()

The Spring Framework

Copyright © 2002-2007 The Spring Framework.