类 AbstractMultipartRequest
java.lang.Object
cn.taketoday.web.multipart.support.AbstractMultipartRequest
- 所有已实现的接口:
MultipartRequest
- 直接已知子类:
ServletMultipartRequest
Abstract base implementation of the
MultipartRequest interface.
Provides management of pre-generated MultipartFile instances.
- 从以下版本开始:
- 4.0 2022/4/28 17:16
- 作者:
- Harry Yang
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidcleanup()Cleanup any resources used for the multipart handling, like a storage for the uploaded files.Return the contents plus description of an uploaded file in this request, ornullif it does not exist.Return aMapof the multipart files contained in this request.Return anIteratorof String objects containing the parameter names of the multipart files contained in this request.Return the contents plus description of uploaded files in this request, or an empty list if it does not exist.cn.taketoday.util.MultiValueMap<String,MultipartFile> Obtain the MultipartFile Map for retrieval, lazily initializing it if necessary.booleanDetermine whether the underlying multipart request has been resolved.Get the parts of a multipart request, provided the Content-Type is"multipart/form-data", or an exception otherwise.multipartData(String name) Return the contents in this request, or an empty list if it does not exist.Lazily initialize the multipart request, if possible.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 cn.taketoday.web.multipart.MultipartRequest
getMultipartContentType, getMultipartHeaders
-
字段详细资料
-
parts
-
multipartFiles
-
-
构造器详细资料
-
AbstractMultipartRequest
public AbstractMultipartRequest()
-
-
方法详细资料
-
getFileNames
从接口复制的说明:MultipartRequestReturn anIteratorof String objects containing the parameter names of the multipart files contained in this request. These are the field names of the form (like with normal parameters), not the original file names.- 指定者:
getFileNames在接口中MultipartRequest- 返回:
- the names of the files
-
getFile
从接口复制的说明:MultipartRequestReturn the contents plus description of an uploaded file in this request, ornullif it does not exist.- 指定者:
getFile在接口中MultipartRequest- 参数:
name- a String specifying the parameter name of the multipart file- 返回:
- the uploaded content in the form of a
MultipartFileobject
-
getFiles
从接口复制的说明:MultipartRequestReturn the contents plus description of uploaded files in this request, or an empty list if it does not exist.- 指定者:
getFiles在接口中MultipartRequest- 参数:
name- a String specifying the parameter name of the multipart file- 返回:
- the uploaded content in the form of a
MultipartFilelist
-
multipartData
从接口复制的说明:MultipartRequestReturn the contents in this request, or an empty list if it does not exist.- 指定者:
multipartData在接口中MultipartRequest- 参数:
name- a String specifying the parameter name of the multipart
-
getFileMap
从接口复制的说明:MultipartRequestReturn aMapof the multipart files contained in this request.- 指定者:
getFileMap在接口中MultipartRequest- 返回:
- a map containing the parameter names as keys, and the
MultipartFileobjects as values
-
getMultipartFiles
Obtain the MultipartFile Map for retrieval, lazily initializing it if necessary.- 指定者:
getMultipartFiles在接口中MultipartRequest- 返回:
- a map containing the parameter names as keys, and a list of
MultipartFileobjects as values - 另请参阅:
-
multipartData
从接口复制的说明:MultipartRequestGet the parts of a multipart request, provided the Content-Type is"multipart/form-data", or an exception otherwise.- 指定者:
multipartData在接口中MultipartRequest- 返回:
- the multipart data, mapping from name to part(s)
- 另请参阅:
-
isResolved
public boolean isResolved()Determine whether the underlying multipart request has been resolved.- 返回:
truewhen eagerly initialized or lazily triggered,falsein case of a lazy-resolution request that got aborted before any parameters or multipart files have been accessed- 另请参阅:
-
cleanup
public void cleanup()从接口复制的说明:MultipartRequestCleanup any resources used for the multipart handling, like a storage for the uploaded files.- 指定者:
cleanup在接口中MultipartRequest
-
parseRequest
Lazily initialize the multipart request, if possible. Only called if not already eagerly initialized.
-