|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MultipartWrapper
Interface which must be implemented by classes which provide the ability to parse the POST content when it is of type multipart/form-data. Provides a single, pluggable wrapper interface around third party libraries which provide this capability.
| Method Summary | |
|---|---|
void |
build(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. |
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. |
| Method Detail |
|---|
void build(HttpServletRequest request,
File tempDir,
long maxPostSize)
throws IOException,
FileUploadLimitExceededException
request - 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 thrown
IOException - if a problem occurs processing the request of storing temporary files
FileUploadLimitExceededException - if the POST content is longer than the maxPostSize
supplied.Enumeration<String> getParameterNames()
String[] getParameterValues(String name)
name - the name of the request parameter
Enumeration<String> getFileParameterNames()
FileBean getFileParameterValue(String name)
name - the name of the file parameter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||