org.apache.tapestry.multipart
Class MultipartDecoderImpl

java.lang.Object
  extended by org.apache.tapestry.multipart.AbstractMultipartDecoder
      extended by org.apache.tapestry.multipart.MultipartDecoderImpl
All Implemented Interfaces:
MultipartDecoder, ServletMultipartDecoder

public class MultipartDecoderImpl
extends AbstractMultipartDecoder
implements ServletMultipartDecoder

Implementation of MultipartDecoder that is based on Jakarta FileUpload .

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

Field Summary
protected  long _maxSize
           
 
Fields inherited from class org.apache.tapestry.multipart.AbstractMultipartDecoder
_encoding, _repositoryPath, _thresholdSize, _uploadParts
 
Constructor Summary
MultipartDecoderImpl()
           
 
Method Summary
 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.
 void setMaxSize(long maxSize)
          Sets the maximum size that an uploaded file will be allowed to have.
 
Methods inherited from class org.apache.tapestry.multipart.AbstractMultipartDecoder
buildParameterMap, cleanup, getFileUpload, processFileItems
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.tapestry.multipart.MultipartDecoder
cleanup, getFileUpload
 

Field Detail

_maxSize

protected long _maxSize
Constructor Detail

MultipartDecoderImpl

public MultipartDecoderImpl()
Method Detail

decode

public HttpServletRequest decode(HttpServletRequest request)
Description copied from interface: ServletMultipartDecoder
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 ServletMultipartDecoder
Parameters:
request - The incoming servlet request

setMaxSize

public void setMaxSize(long maxSize)
Sets the maximum size that an uploaded file will be allowed to have.

Parameters:
maxSize - The maximum size, in bytes.


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.