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(jakarta.servlet.http.HttpServletRequest request)
      Create a new DispatcherServletwebRequest instance for the given request.
      Parameters:
      request - current HTTP request
    • DispatcherServletwebRequest

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