public class MPFormData
extends java.lang.Object
| Constructor and Description |
|---|
MPFormData() |
MPFormData(javax.servlet.http.HttpServletRequest req)
creates a new MPFormData object and gets the request parameters
the MPFormData object is used to retrieve parameters and data from multipart form
submissions.
|
MPFormData(javax.servlet.http.HttpServletRequest req,
int maximumsize)
Alternate constructor that gets it maximum file size from passed
in parameters instead of the doclinks.properties file.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFileContentType()
gets the file content type.
|
java.lang.String |
getFileName()
gets name of the file contained in the form.
|
java.io.ByteArrayOutputStream |
getFileOutputStream()
gets the output stream containing the file data
|
java.lang.String |
getFullFileName()
gets FULL name (including path) of the file contained in the form.
|
java.lang.String |
getParameter(java.lang.String param)
gets a request parameter.
|
boolean |
isParam(java.lang.String val)
Returns true if the specified string is a parameter in the request
|
static boolean |
isRequestMultipart(javax.servlet.http.HttpServletRequest req)
checks to see if the content type of the request is "multipart/form-data"
|
void |
processRequest() |
public MPFormData()
public MPFormData(javax.servlet.http.HttpServletRequest req)
throws MXException
MXExceptionpublic MPFormData(javax.servlet.http.HttpServletRequest req,
int maximumsize)
throws MXException
req - The HttpServletRequestmaximumsize - The maximum file size in megabytesMXExceptionpublic void processRequest()
throws MXException
MXExceptionpublic static boolean isRequestMultipart(javax.servlet.http.HttpServletRequest req)
HttpServletRequest - reqpublic java.lang.String getParameter(java.lang.String param)
public boolean isParam(java.lang.String val)
public java.lang.String getFileName()
public java.lang.String getFullFileName()
public java.lang.String getFileContentType()
public java.io.ByteArrayOutputStream getFileOutputStream()