Package webwork.multipart
Class PellMultiPartRequest
java.lang.Object
webwork.multipart.MultiPartRequest
webwork.multipart.PellMultiPartRequest
- Direct Known Subclasses:
JiraMultipartRequestWrapper
Multipart Form Data request adapter for Jason Pell's multipart utils
- Version:
- $Id: PellMultiPartRequest.java,v 1.6 2005/03/19 19:20:21 fate Exp $
- Author:
- Matt Baldree (matt@smallleap.com) modified for WW's use, Scott Farquhar (scott@atlassian.com) added i18n handling (WW-109)
-
Field Summary
Fields inherited from class webwork.multipart.MultiPartRequest
log -
Constructor Summary
ConstructorsConstructorDescriptionPellMultiPartRequest(javax.servlet.http.HttpServletRequest servletRequest, String saveDir, int maxSize) -
Method Summary
Modifier and TypeMethodDescriptiongetContentType(String name) Get the File as saved by the multipart parser on the server filesystem.getFilesystemName(String name) Get the client file name of the specified uploaded file.getMemoryFileContents(String name) getParameter(String name) String[]getParameterValues(String name) Methods inherited from class webwork.multipart.MultiPartRequest
cleanup, isMultiPart
-
Constructor Details
-
PellMultiPartRequest
public PellMultiPartRequest(javax.servlet.http.HttpServletRequest servletRequest, String saveDir, int maxSize) throws IOException - Parameters:
servletRequest- the request containing the multipartsaveDir- the directory to save off the filemaxSize- maximum size post allowed- Throws:
IOException
-
-
Method Details
-
getParameterNames
- Specified by:
getParameterNamesin classMultiPartRequest
-
getParameter
- Specified by:
getParameterin classMultiPartRequest
-
getParameterValues
- Specified by:
getParameterValuesin classMultiPartRequest
-
getFileNames
- Specified by:
getFileNamesin classMultiPartRequest
-
getFilesystemName
Description copied from class:MultiPartRequestGet the client file name of the specified uploaded file.- Specified by:
getFilesystemNamein classMultiPartRequest- Parameters:
name- the parameter name of the uploaded file- Returns:
- The client filename
-
getContentType
- Specified by:
getContentTypein classMultiPartRequest
-
getFile
Description copied from class:MultiPartRequestGet the File as saved by the multipart parser on the server filesystem.- Specified by:
getFilein classMultiPartRequest- Parameters:
name- The parameter name of the uploaded file- Returns:
- the File on the local filesystem, or null if the multipart parser has not stored the file on disk (for example, if it is a memory based file upload)
-
getMemoryFileContents
-