|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--dtw.webmail.util.MultipartRequest
Class that encapsulates a MultipartRequest, internally * handling it. *
* The protocol to access the parameters resembles the one * of the ServletRequest class. * * @author Dieter Wimberger * @version 0.9.7 07/02/2003
Constructor Summary | |
MultipartRequest(javax.servlet.ServletRequest request)
Constructs a MultipartRequest instance, with an upload limit of 2048 kB. |
|
MultipartRequest(javax.servlet.ServletRequest request,
int limit)
Constructs a MultipartRequest instance. |
Method Summary | |
javax.mail.internet.MimeMultipart |
getAttachments()
Returns the attachments as MimeMultipart. |
java.lang.String |
getParameter(java.lang.String name)
Returns the value of a given parameter as String, or null if * the control was not successful or non existant. |
java.util.Enumeration |
getParameterNames()
Returns the names of all the parameters as an Enumeration of * strings. * It returns an empty Enumeration if there are no parameters. |
java.lang.String[] |
getParameterValues(java.lang.String name)
Returns all values of a given parameter as an array of strings. |
boolean |
hasAttachments()
Tests if this MultipartRequest has attachments. |
void |
processRequest()
Parses the incoming multipart/form-data by reading it from the * given request's input stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MultipartRequest(javax.servlet.ServletRequest request) throws java.io.IOException
public MultipartRequest(javax.servlet.ServletRequest request, int limit) throws java.io.IOException
Method Detail |
public java.util.Enumeration getParameterNames()
public java.lang.String getParameter(java.lang.String name)
public java.lang.String[] getParameterValues(java.lang.String name)
public boolean hasAttachments()
public javax.mail.internet.MimeMultipart getAttachments()
public void processRequest() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |