public class ServletFileUpload
extends org.apache.commons.fileupload.servlet.ServletFileUpload
ServletRequestContext
,以便在处理字符集编码时,和servlet规范相容。详见
ServletRequestContext
。org.apache.commons.fileupload.FileUploadBase.FileSizeLimitExceededException, org.apache.commons.fileupload.FileUploadBase.FileUploadIOException, org.apache.commons.fileupload.FileUploadBase.InvalidContentTypeException, org.apache.commons.fileupload.FileUploadBase.IOFileUploadException, org.apache.commons.fileupload.FileUploadBase.SizeException, org.apache.commons.fileupload.FileUploadBase.SizeLimitExceededException, org.apache.commons.fileupload.FileUploadBase.UnknownSizeException
Constructor and Description |
---|
ServletFileUpload() |
ServletFileUpload(org.apache.commons.fileupload.FileItemFactory fileItemFactory) |
Modifier and Type | Method and Description |
---|---|
protected String |
getFileName(org.apache.commons.fileupload.FileItemHeaders headers) |
protected String |
getFileName(Map headers) |
String[] |
getFileNameKey() |
org.apache.commons.fileupload.FileItemIterator |
getItemIterator(javax.servlet.http.HttpServletRequest request) |
List<?> |
parseRequest(javax.servlet.http.HttpServletRequest request) |
List<?> |
parseRequest(org.apache.commons.fileupload.RequestContext ctx) |
void |
setFileNameKey(String[] fileNameKey) |
isMultipartContent
getFileItemFactory, setFileItemFactory
createItem, getBoundary, getFieldName, getFieldName, getFileSizeMax, getHeader, getHeaderEncoding, getItemIterator, getParsedHeaders, getProgressListener, getSizeMax, isMultipartContent, newFileItemHeaders, parseHeaders, setFileSizeMax, setHeaderEncoding, setProgressListener, setSizeMax
public ServletFileUpload()
public ServletFileUpload(org.apache.commons.fileupload.FileItemFactory fileItemFactory)
public String[] getFileNameKey()
public void setFileNameKey(String[] fileNameKey)
public List<?> parseRequest(javax.servlet.http.HttpServletRequest request) throws org.apache.commons.fileupload.FileUploadException
parseRequest
in class org.apache.commons.fileupload.servlet.ServletFileUpload
org.apache.commons.fileupload.FileUploadException
public List<?> parseRequest(org.apache.commons.fileupload.RequestContext ctx) throws org.apache.commons.fileupload.FileUploadException
parseRequest
in class org.apache.commons.fileupload.FileUploadBase
org.apache.commons.fileupload.FileUploadException
protected String getFileName(Map headers)
getFileName
in class org.apache.commons.fileupload.FileUploadBase
protected String getFileName(org.apache.commons.fileupload.FileItemHeaders headers)
getFileName
in class org.apache.commons.fileupload.FileUploadBase
public org.apache.commons.fileupload.FileItemIterator getItemIterator(javax.servlet.http.HttpServletRequest request) throws org.apache.commons.fileupload.FileUploadException, IOException
getItemIterator
in class org.apache.commons.fileupload.servlet.ServletFileUpload
org.apache.commons.fileupload.FileUploadException
IOException
Copyright © 2006–2018 TinyGroup. All rights reserved.