public interface UploadService extends UploadConfiguration
multipart/form-data
格式的HTTP POST请求,并将它们转换成form字段或文件。FILE_SIZE_MAX_DEFAULT, SIZE_MAX_DEFAULT, SIZE_THRESHOLD_DEFAULT
Modifier and Type | Method and Description |
---|---|
boolean |
isMultipartContent(javax.servlet.http.HttpServletRequest request)
判断是否是符合RFC 1867标准的
multipart/form-data 类型的HTTP请求。 |
org.apache.commons.fileupload.FileItem[] |
parseRequest(javax.servlet.http.HttpServletRequest request)
解析符合RFC 1867标准的
multipart/form-data 类型的HTTP请求。 |
org.apache.commons.fileupload.FileItem[] |
parseRequest(javax.servlet.http.HttpServletRequest request,
UploadParameters params)
解析符合RFC 1867标准的
multipart/form-data 类型的HTTP请求。 |
getFileNameKey, getFileSizeMax, getItemStorageBeanName, getRepository, getSizeMax, getSizeThreshold, isDiskItemFactory, isKeepFormFieldInMemory, isSaveInFile, isTemporary
boolean isMultipartContent(javax.servlet.http.HttpServletRequest request)
multipart/form-data
类型的HTTP请求。request
- HTTP请求true
org.apache.commons.fileupload.FileItem[] parseRequest(javax.servlet.http.HttpServletRequest request)
multipart/form-data
类型的HTTP请求。request
- HTTP请求FileItem
的列表,按其输入的顺序罗列UploadException
- 如果解析时出现异常org.apache.commons.fileupload.FileItem[] parseRequest(javax.servlet.http.HttpServletRequest request, UploadParameters params)
request
- HTTP请求params
- upload参数FileItem
的列表,按其输入的顺序罗列UploadException
- 如果解析时出现异常Copyright © 2006–2018 TinyGroup. All rights reserved.