public class ProgressMultipartWrapper
extends net.sourceforge.stripes.controller.multipart.CommonsMultipartWrapper
CommonsMultipartWrapper, but stores upload progression in a ProgressListener.| Constructor and Description |
|---|
ProgressMultipartWrapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
build(javax.servlet.http.HttpServletRequest request,
File tempDir,
long maxPostSize)
Pseudo-constructor that allows the class to perform any initialization necessary.
|
Enumeration<String> |
getFileParameterNames()
Fetches the names of all file parameters in the request.
|
net.sourceforge.stripes.action.FileBean |
getFileParameterValue(String name)
Responsible for constructing a FileBean object for the named file parameter.
|
Enumeration<String> |
getParameterNames()
Fetches the names of all non-file parameters in the request.
|
String[] |
getParameterValues(String name)
Fetches all values of a specific parameter in the request.
|
public void build(javax.servlet.http.HttpServletRequest request,
File tempDir,
long maxPostSize)
throws IOException,
net.sourceforge.stripes.controller.FileUploadLimitExceededException
build in interface net.sourceforge.stripes.controller.multipart.MultipartWrapperbuild in class net.sourceforge.stripes.controller.multipart.CommonsMultipartWrapperrequest - 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 thrownIOException - if a problem occurs processing the request of storing temporary
filesnet.sourceforge.stripes.controller.FileUploadLimitExceededException - if the POST content is longer than the
maxPostSize supplied.public Enumeration<String> getParameterNames()
getParameterNames in interface net.sourceforge.stripes.controller.multipart.MultipartWrappergetParameterNames in class net.sourceforge.stripes.controller.multipart.CommonsMultipartWrapperpublic String[] getParameterValues(String name)
getParameterValues in interface net.sourceforge.stripes.controller.multipart.MultipartWrappergetParameterValues in class net.sourceforge.stripes.controller.multipart.CommonsMultipartWrappername - the name of the request parameterpublic Enumeration<String> getFileParameterNames()
getFileParameterNames in interface net.sourceforge.stripes.controller.multipart.MultipartWrappergetFileParameterNames in class net.sourceforge.stripes.controller.multipart.CommonsMultipartWrapperpublic net.sourceforge.stripes.action.FileBean getFileParameterValue(String name)
getFileParameterValue in interface net.sourceforge.stripes.controller.multipart.MultipartWrappergetFileParameterValue in class net.sourceforge.stripes.controller.multipart.CommonsMultipartWrappername - the name of the file parameterCopyright © 2016. All rights reserved.