Class StandardMultipartHttpServletRequest

All Implemented Interfaces:
HttpServletRequest, ServletRequest, MultipartHttpServletRequest, MultipartRequest

public class StandardMultipartHttpServletRequest extends AbstractMultipartHttpServletRequest
Spring MultipartHttpServletRequest adapter, wrapping a Servlet HttpServletRequest and its Part objects. Parameters get exposed through the native request's getParameter methods - without any custom processing on our side.
Since:
3.1
Author:
Juergen Hoeller, Rossen Stoyanchev
See Also:
  • Constructor Details

    • StandardMultipartHttpServletRequest

      public StandardMultipartHttpServletRequest(HttpServletRequest request) throws MultipartException
      Create a new StandardMultipartHttpServletRequest wrapper for the given request, immediately parsing the multipart content.
      Parameters:
      request - the servlet request to wrap
      Throws:
      MultipartException - if parsing failed
    • StandardMultipartHttpServletRequest

      public StandardMultipartHttpServletRequest(HttpServletRequest request, boolean lazyParsing) throws MultipartException
      Create a new StandardMultipartHttpServletRequest wrapper for the given request.
      Parameters:
      request - the servlet request to wrap
      lazyParsing - whether multipart parsing should be triggered lazily on first access of multipart files or parameters
      Throws:
      MultipartException - if an immediate parsing attempt failed
      Since:
      3.2.9
  • Method Details