public class

DispatcherServletWebRequest

extends ServletWebRequest
java.lang.Object
   ↳ org.springframework.web.context.request.AbstractRequestAttributes
     ↳ org.springframework.web.context.request.ServletRequestAttributes
       ↳ org.springframework.web.context.request.ServletWebRequest
         ↳ org.springframework.web.servlet.handler.DispatcherServletWebRequest

Class Overview

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

Summary

[Expand]
Inherited Constants
From interface org.springframework.web.context.request.RequestAttributes
[Expand]
Inherited Fields
From class org.springframework.web.context.request.ServletRequestAttributes
From class org.springframework.web.context.request.AbstractRequestAttributes
Public Constructors
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.
Public Methods
Locale getLocale()
Return the primary Locale for this request.
[Expand]
Inherited Methods
From class org.springframework.web.context.request.ServletWebRequest
From class org.springframework.web.context.request.ServletRequestAttributes
From class org.springframework.web.context.request.AbstractRequestAttributes
From class java.lang.Object
From interface org.springframework.web.context.request.NativeWebRequest
From interface org.springframework.web.context.request.RequestAttributes
From interface org.springframework.web.context.request.WebRequest

Public Constructors

public DispatcherServletWebRequest (HttpServletRequest request)

Create a new DispatcherServletWebRequest instance for the given request.

Parameters
request current HTTP request

public DispatcherServletWebRequest (HttpServletRequest request, HttpServletResponse response)

Create a new DispatcherServletWebRequest instance for the given request and response.

Parameters
request current HTTP response

Public Methods

public Locale getLocale ()

Return the primary Locale for this request.