|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.webwork.dispatcher.multipart.MultiPartRequest
com.opensymphony.webwork.dispatcher.multipart.PellMultiPartRequest
public class PellMultiPartRequest
Multipart form data request adapter for Jason Pell's multipart utils package.
Field Summary |
---|
Fields inherited from class com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest |
---|
log |
Constructor Summary | |
---|---|
PellMultiPartRequest(HttpServletRequest servletRequest,
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). |
Method Summary | |
---|---|
String[] |
getContentType(String fieldName)
Returns the content type(s) of the file(s) associated with the specified field name (as supplied by the client browser), or null if no files are associated with the given field name. |
List |
getErrors()
Returns a list of error messages that may have occurred while processing the request. |
File[] |
getFile(String fieldName)
Returns a File object for the filename specified or null if no files
are associated with the given field name. |
String[] |
getFileNames(String fieldName)
Returns a String[] of file names for files associated with the specified input field name |
Enumeration |
getFileParameterNames()
Returns an enumeration of the parameter names for uploaded files |
String[] |
getFilesystemName(String fieldName)
Returns the file system name(s) of files associated with the given field name or null if no files are associated with the given field name. |
String |
getParameter(String name)
Returns the specified request parameter. |
Enumeration |
getParameterNames()
Returns an enumeration of String parameter names. |
String[] |
getParameterValues(String name)
Returns a list of all parameter values associated with a parameter name. |
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 |
Constructor Detail |
---|
public PellMultiPartRequest(HttpServletRequest servletRequest, String saveDir, int maxSize) throws IOException
maxSize
- maximum size post allowedsaveDir
- the directory to save off the fileservletRequest
- the request containing the multipart
IOException
Method Detail |
---|
public Enumeration getFileParameterNames()
MultiPartRequest
getFileParameterNames
in class MultiPartRequest
public String[] getContentType(String fieldName)
MultiPartRequest
getContentType
in class MultiPartRequest
fieldName
- input field name
public File[] getFile(String fieldName)
MultiPartRequest
File
object for the filename specified or null if no files
are associated with the given field name.
getFile
in class MultiPartRequest
fieldName
- input field name
public String[] getFileNames(String fieldName)
MultiPartRequest
getFileNames
in class MultiPartRequest
fieldName
- input field name
public String[] getFilesystemName(String fieldName)
MultiPartRequest
getFilesystemName
in class MultiPartRequest
fieldName
- input field name
public String getParameter(String name)
MultiPartRequest
getParameter
in class MultiPartRequest
name
- the name of the parameter to get
public Enumeration getParameterNames()
MultiPartRequest
getParameterNames
in class MultiPartRequest
public String[] getParameterValues(String name)
MultiPartRequest
getParameterValues
in class MultiPartRequest
name
- the name of the parameter.
public List getErrors()
MultiPartRequest
MultiPartRequestWrapper
's errors field.
getErrors
in class MultiPartRequest
|
WebWork Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |