类 ServletMultipartRequest

java.lang.Object
cn.taketoday.web.multipart.support.AbstractMultipartRequest
cn.taketoday.web.multipart.support.ServletMultipartRequest
所有已实现的接口:
MultipartRequest

public class ServletMultipartRequest extends AbstractMultipartRequest
For Servlet Multipart
从以下版本开始:
4.0 2022/4/28 17:22
作者:
Harry Yang
  • 字段详细资料

  • 构造器详细资料

    • ServletMultipartRequest

      public ServletMultipartRequest(HttpServletRequest request) throws MultipartException
      Create a new ServletMultipartRequest wrapper for the given request, immediately parsing the multipart content.
      参数:
      request - the servlet request to wrap
      抛出:
      MultipartException - if parsing failed
    • ServletMultipartRequest

      public ServletMultipartRequest(HttpServletRequest request, boolean lazyParsing) throws MultipartException
      Create a new ServletMultipartRequest wrapper for the given request.
      参数:
      request - the servlet request to wrap
      lazyParsing - whether multipart parsing should be triggered lazily on first access of multipart files or parameters
      抛出:
      MultipartException - if an immediate parsing attempt failed
  • 方法详细资料

    • parseRequest

      private cn.taketoday.util.MultiValueMap<String,Multipart> parseRequest(HttpServletRequest request)
    • parseRequest

      protected cn.taketoday.util.MultiValueMap<String,Multipart> parseRequest()
      从类复制的说明: AbstractMultipartRequest
      Lazily initialize the multipart request, if possible. Only called if not already eagerly initialized.
      指定者:
      parseRequest 在类中 AbstractMultipartRequest
    • getMultipartContentType

      public String getMultipartContentType(String paramOrFileName)
      从接口复制的说明: MultipartRequest
      Determine the content type of the specified request part.
      参数:
      paramOrFileName - the name of the part
      返回:
      the associated content type, or null if not defined
    • getMultipartHeaders

      public HttpHeaders getMultipartHeaders(String paramOrFileName)
      从接口复制的说明: MultipartRequest
      Return the headers for the specified part of the multipart request.

      If the underlying implementation supports access to part headers, then all headers are returned. Otherwise, e.g. for a file upload, the returned headers may expose a 'Content-Type' if available.