|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.fileupload.FileUploadBase
org.apache.commons.fileupload.FileUpload
org.apache.commons.fileupload.servlet.ServletFileUpload
org.apache.myfaces.webapp.filter.servlet.ServletChacheFileSizeErrorsFileUpload
public class ServletChacheFileSizeErrorsFileUpload
Custom implementation of ServletFileUpload intended to parse request but it catch and swallow FileSizeLimitExceededExceptions in order to return as many usable items as possible.
NOTE: This class should be used(instantiated) only by ServletMultipartRequestWrapper. By that reason, it could be changed or removed in the future.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.commons.fileupload.FileUploadBase |
|---|
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 |
| Field Summary |
|---|
| Fields inherited from class org.apache.commons.fileupload.FileUploadBase |
|---|
ATTACHMENT, CONTENT_DISPOSITION, CONTENT_LENGTH, CONTENT_TYPE, FORM_DATA, MAX_HEADER_SIZE, MULTIPART, MULTIPART_FORM_DATA, MULTIPART_MIXED |
| Constructor Summary | |
|---|---|
ServletChacheFileSizeErrorsFileUpload()
|
|
ServletChacheFileSizeErrorsFileUpload(org.apache.commons.fileupload.FileItemFactory fileItemFactory)
|
|
| Method Summary | |
|---|---|
List |
parseRequestCatchingFileSizeErrors(javax.servlet.http.HttpServletRequest request,
org.apache.commons.fileupload.FileUpload fileUpload)
Similar to FileUploadBase.parseRequest(RequestContext) but will
catch and swallow FileSizeLimitExceededExceptions in order to return as
many usable items as possible. |
| Methods inherited from class org.apache.commons.fileupload.servlet.ServletFileUpload |
|---|
getItemIterator, isMultipartContent, parseRequest |
| Methods inherited from class org.apache.commons.fileupload.FileUpload |
|---|
getFileItemFactory, setFileItemFactory |
| Methods inherited from class org.apache.commons.fileupload.FileUploadBase |
|---|
createItem, getBoundary, getFieldName, getFieldName, getFileName, getFileName, getFileSizeMax, getHeader, getHeaderEncoding, getItemIterator, getParsedHeaders, getProgressListener, getSizeMax, isMultipartContent, newFileItemHeaders, parseHeaders, parseRequest, setFileSizeMax, setHeaderEncoding, setProgressListener, setSizeMax |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServletChacheFileSizeErrorsFileUpload()
public ServletChacheFileSizeErrorsFileUpload(org.apache.commons.fileupload.FileItemFactory fileItemFactory)
| Method Detail |
|---|
public List parseRequestCatchingFileSizeErrors(javax.servlet.http.HttpServletRequest request,
org.apache.commons.fileupload.FileUpload fileUpload)
throws org.apache.commons.fileupload.FileUploadException
FileUploadBase.parseRequest(RequestContext) but will
catch and swallow FileSizeLimitExceededExceptions in order to return as
many usable items as possible.
fileUpload -
FileItem excluding any that exceed max size.
org.apache.commons.fileupload.FileUploadException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||