public class MultipartDecoderImpl extends Object implements MultipartDecoder, ThreadCleanupListener
| Constructor and Description |
|---|
MultipartDecoderImpl(org.apache.commons.fileupload.FileItemFactory fileItemFactory,
long maxRequestSize,
long maxFileSize,
String requestEncoding) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addUploadedFile(String name,
UploadedFileItem file) |
protected org.apache.commons.fileupload.servlet.ServletFileUpload |
createFileUpload() |
HttpServletRequest |
decode(HttpServletRequest request)
Decodes the request, returning a new
HttpServletRequest implementation that will allow
access to the form fields submitted in the request (but omits uploaded files). |
UploadedFile |
getFileUpload(String parameterName) |
org.apache.commons.fileupload.FileUploadException |
getUploadException()
Returns the exception the occured during the file upload, or null if the processing of the multipart upload
stream was succesful.
|
protected List<org.apache.commons.fileupload.FileItem> |
parseRequest(HttpServletRequest request) |
protected HttpServletRequest |
processFileItems(HttpServletRequest request,
List<org.apache.commons.fileupload.FileItem> fileItems) |
void |
threadDidCleanup()
Invoked by
PerthreadManager service when a thread performs and
end-of-request cleanup. |
public UploadedFile getFileUpload(String parameterName)
getFileUpload in interface MultipartDecoderparameterName - Name of the query parameter associated with the uploaded filepublic HttpServletRequest decode(HttpServletRequest request)
MultipartDecoderHttpServletRequest implementation that will allow
access to the form fields submitted in the request (but omits uploaded files).decode in interface MultipartDecoderrequest - The incoming servlet requestpublic void threadDidCleanup()
ThreadCleanupListenerPerthreadManager service when a thread performs and
end-of-request cleanup.threadDidCleanup in interface ThreadCleanupListenerprotected List<org.apache.commons.fileupload.FileItem> parseRequest(HttpServletRequest request)
protected org.apache.commons.fileupload.servlet.ServletFileUpload createFileUpload()
protected HttpServletRequest processFileItems(HttpServletRequest request, List<org.apache.commons.fileupload.FileItem> fileItems)
protected void addUploadedFile(String name, UploadedFileItem file)
public org.apache.commons.fileupload.FileUploadException getUploadException()
MultipartDecodergetUploadException in interface MultipartDecoder5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.