Class DispatcherServletWebRequest

All Implemented Interfaces:
NativeWebRequest, RequestAttributes, WebRequest

public class DispatcherServletWebRequest extends ServletWebRequest
ServletWebRequest subclass that is aware of DispatcherServlet's request context, such as the Locale determined by the configured LocaleResolver.
Since:
2.0
Author:
Juergen Hoeller
See Also:
  • Constructor Details

    • DispatcherServletWebRequest

      public DispatcherServletWebRequest(HttpServletRequest request)
      Create a new DispatcherServletWebRequest instance for the given request.
      Parameters:
      request - current HTTP request
    • DispatcherServletWebRequest

      public DispatcherServletWebRequest(HttpServletRequest request, HttpServletResponse response)
      Create a new DispatcherServletWebRequest instance for the given request and response.
      Parameters:
      request - current HTTP request
      response - current HTTP response
  • Method Details