|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry5.upload.internal.services.MultipartDecoderImpl
public class MultipartDecoderImpl
Implementation of multipart decoder for servlets. This implementation is perthread scope.
Constructor Summary | |
---|---|
MultipartDecoderImpl(org.apache.commons.fileupload.FileItemFactory fileItemFactory,
long maxRequestSize,
long maxFileSize,
String requestEncoding)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultipartDecoderImpl(org.apache.commons.fileupload.FileItemFactory fileItemFactory, @Symbol(value="upload.requestsize-max") long maxRequestSize, @Symbol(value="upload.filesize-max") long maxFileSize, @Symbol(value="tapestry.charset") String requestEncoding)
Method Detail |
---|
public UploadedFile getFileUpload(String parameterName)
getFileUpload
in interface MultipartDecoder
parameterName
- Name of the query parameter associated with the uploaded file
public HttpServletRequest decode(HttpServletRequest request)
MultipartDecoder
HttpServletRequest
implementation that will allow
access to the form fields submitted in the request (but omits uploaded files).
decode
in interface MultipartDecoder
request
- The incoming servlet request
public void threadDidCleanup()
ThreadCleanupListener
PerthreadManager
service when a thread performs and
end-of-request cleanup.
threadDidCleanup
in interface ThreadCleanupListener
protected 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()
MultipartDecoder
getUploadException
in interface MultipartDecoder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |