org.apache.tapestry.multipart
Interface MultipartDecoder

All Known Implementing Classes:
MultipartDecoderImpl

public interface MultipartDecoder

Responsible for detecting and processing file upload requests, using Jakarta Commons FileUpload. Implementations of this service typically use the threaded service lifecycle model.

Since:
4.0
Author:
Howard M. Lewis Ship

Method Summary
 void cleanup()
          Cleans up any temporary resources created during the request processing.
 javax.servlet.http.HttpServletRequest decode(javax.servlet.http.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.
 IUploadFile getFileUpload(java.lang.String parameterName)
          Gets a file upload with the given name, or returns null if no such file upload was in the request.
 

Method Detail

decode

public javax.servlet.http.HttpServletRequest decode(javax.servlet.http.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.


getFileUpload

public IUploadFile getFileUpload(java.lang.String parameterName)
Gets a file upload with the given name, or returns null if no such file upload was in the request.


cleanup

public void cleanup()
Cleans up any temporary resources created during the request processing. This typically includes temporary files used to contain uploaded file content.