public class CommonsMultipartWrapper extends java.lang.Object implements MultipartWrapper
| Constructor and Description |
|---|
CommonsMultipartWrapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
build(javax.servlet.http.HttpServletRequest request,
java.io.File tempDir,
long maxPostSize)
Pseudo-constructor that allows the class to perform any initialization necessary.
|
java.util.Enumeration<java.lang.String> |
getFileParameterNames()
Fetches the names of all file parameters in the request.
|
FileBean |
getFileParameterValue(java.lang.String name)
Responsible for constructing a FileBean object for the named file parameter.
|
java.util.Enumeration<java.lang.String> |
getParameterNames()
Fetches the names of all non-file parameters in the request.
|
java.lang.String[] |
getParameterValues(java.lang.String name)
Fetches all values of a specific parameter in the request.
|
public void build(javax.servlet.http.HttpServletRequest request,
java.io.File tempDir,
long maxPostSize)
throws java.io.IOException,
FileUploadLimitExceededException
build in interface MultipartWrapperrequest - an HttpServletRequest that has a content-type of multipart.tempDir - a File representing the temporary directory that can be used to store
file parts as they are uploaded if this is desirablemaxPostSize - the size in bytes beyond which the request should not be read, and a
FileUploadLimitExceeded exception should be thrownjava.io.IOException - if a problem occurs processing the request of storing temporary
filesFileUploadLimitExceededException - if the POST content is longer than the
maxPostSize supplied.public java.util.Enumeration<java.lang.String> getParameterNames()
getParameterNames in interface MultipartWrapperpublic java.lang.String[] getParameterValues(java.lang.String name)
getParameterValues in interface MultipartWrappername - the name of the request parameterpublic java.util.Enumeration<java.lang.String> getFileParameterNames()
getFileParameterNames in interface MultipartWrapperpublic FileBean getFileParameterValue(java.lang.String name)
getFileParameterValue in interface MultipartWrappername - the name of the file parameter? Copyright 2005-2006, Stripes Development Team.