com.jivesoftware.base.action.multipart
Class JiveMultiPartRequest
java.lang.Object
com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest
com.jivesoftware.base.action.multipart.JiveMultiPartRequest
public class JiveMultiPartRequest
- extends com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest
Adapted from the PellMultiPartRequest
class. Uses saveDir and maxSize settings from Jive instead of those hardcoded into the
webwork.properties file.
This class has been enhanced to include the ability to monitor the upload. UploadListener
for more details.
Fields inherited from class com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest |
log |
Constructor Summary |
JiveMultiPartRequest(javax.servlet.http.HttpServletRequest request,
java.lang.String saveDir,
int maxSize)
Creates a new request wrapper to handle multi-part data using methods adapted from Jason Pell's
multipart classes (see class description). |
Methods inherited from class com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest |
isMultiPart |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JiveMultiPartRequest
public JiveMultiPartRequest(javax.servlet.http.HttpServletRequest request,
java.lang.String saveDir,
int maxSize)
throws java.io.IOException
- Creates a new request wrapper to handle multi-part data using methods adapted from Jason Pell's
multipart classes (see class description).
- Parameters:
maxSize
- maximum size post allowedsaveDir
- the directory to save off the filerequest
- the request containing the multipart
- Throws:
java.io.IOException
- if an error occurs
getFileParameterNames
public java.util.Enumeration getFileParameterNames()
- Specified by:
getFileParameterNames
in class com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest
getContentType
public java.lang.String[] getContentType(java.lang.String fieldName)
- Specified by:
getContentType
in class com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest
getFile
public java.io.File[] getFile(java.lang.String fieldName)
- Specified by:
getFile
in class com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest
getFileNames
public java.lang.String[] getFileNames(java.lang.String fieldName)
- Specified by:
getFileNames
in class com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest
getFilesystemName
public java.lang.String[] getFilesystemName(java.lang.String fieldName)
- Specified by:
getFilesystemName
in class com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest
getParameter
public java.lang.String getParameter(java.lang.String name)
- Specified by:
getParameter
in class com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest
getParameterNames
public java.util.Enumeration getParameterNames()
- Specified by:
getParameterNames
in class com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest
getParameterValues
public java.lang.String[] getParameterValues(java.lang.String name)
- Specified by:
getParameterValues
in class com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest
getErrors
public java.util.List getErrors()
- Specified by:
getErrors
in class com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest
Copyright © 1999-2006 Jive Software.