类 ServletMultipartRequest
java.lang.Object
cn.taketoday.web.multipart.support.AbstractMultipartRequest
cn.taketoday.web.multipart.support.ServletMultipartRequest
- 所有已实现的接口:
MultipartRequest
For Servlet Multipart
- 从以下版本开始:
- 4.0 2022/4/28 17:22
- 作者:
- Harry Yang
-
字段概要
字段 -
构造器概要
构造器构造器说明Create a new ServletMultipartRequest wrapper for the given request, immediately parsing the multipart content.ServletMultipartRequest(HttpServletRequest request, boolean lazyParsing) Create a new ServletMultipartRequest wrapper for the given request. -
方法概要
修饰符和类型方法说明getMultipartContentType(String paramOrFileName) Determine the content type of the specified request part.getMultipartHeaders(String paramOrFileName) Return the headers for the specified part of the multipart request.Lazily initialize the multipart request, if possible.parseRequest(HttpServletRequest request) 从类继承的方法 cn.taketoday.web.multipart.support.AbstractMultipartRequest
cleanup, getFile, getFileMap, getFileNames, getFiles, getMultipartFiles, isResolved, multipartData, multipartData
-
字段详细资料
-
request
-
-
构造器详细资料
-
ServletMultipartRequest
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 wraplazyParsing- whether multipart parsing should be triggered lazily on first access of multipart files or parameters- 抛出:
MultipartException- if an immediate parsing attempt failed
-
-
方法详细资料
-
parseRequest
-
parseRequest
从类复制的说明:AbstractMultipartRequestLazily initialize the multipart request, if possible. Only called if not already eagerly initialized.- 指定者:
parseRequest在类中AbstractMultipartRequest
-
getMultipartContentType
从接口复制的说明:MultipartRequestDetermine the content type of the specified request part.- 参数:
paramOrFileName- the name of the part- 返回:
- the associated content type, or
nullif not defined
-
getMultipartHeaders
从接口复制的说明:MultipartRequestReturn 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.
-