spring-framework / org.springframework.web.servlet.handler / DispatcherServletWebRequest

DispatcherServletWebRequest

open class DispatcherServletWebRequest : ServletWebRequest

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

Author
Juergen Hoeller

Since
2.0

See Also
#getLocale()org.springframework.web.servlet.LocaleResolver

Constructors

<init>

DispatcherServletWebRequest(request: HttpServletRequest)

Create a new DispatcherServletWebRequest instance for the given request.

DispatcherServletWebRequest(request: HttpServletRequest, response: HttpServletResponse)

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

Functions

getLocale

open fun getLocale(): Locale