org.apache.tapestry.multipart
Class MultipartDecoderImpl

java.lang.Object
  extended byorg.apache.tapestry.multipart.MultipartDecoderImpl
All Implemented Interfaces:
MultipartDecoder

public class MultipartDecoderImpl
extends java.lang.Object
implements MultipartDecoder

Implementation of MultipartDecoderthat is based on Jakarta FileUpload .

Since:
4.0
Author:
Howard M. Lewis Ship, Joe Panico

Constructor Summary
MultipartDecoderImpl()
           
 
Method Summary
 void cleanup()
          Cleans up any temporary resources created during the request processing.
protected  org.apache.commons.fileupload.DiskFileUpload createUpload(javax.servlet.http.HttpServletRequest request)
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultipartDecoderImpl

public MultipartDecoderImpl()
Method Detail

decode

public javax.servlet.http.HttpServletRequest decode(javax.servlet.http.HttpServletRequest request)
Description copied from interface: MultipartDecoder
Decodes the request, returning a new HttpServletRequest implementation that will allow access to the form fields submitted in the request (but omits uploaded files.

Specified by:
decode in interface MultipartDecoder

createUpload

protected org.apache.commons.fileupload.DiskFileUpload createUpload(javax.servlet.http.HttpServletRequest request)

getFileUpload

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

Specified by:
getFileUpload in interface MultipartDecoder

cleanup

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

Specified by:
cleanup in interface MultipartDecoder