| java.lang.Object dtw.webmail.util.MultipartRequest
MultipartRequest | public class MultipartRequest (Code) | | 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 |
Method Summary | |
public MimeMultipart | getAttachments() Returns the attachments as MimeMultipart. | public String | getParameter(String name) Returns the value of a given parameter as String, or null if
the control was not successful or non existant.
Note:
Mimics servlet request, do not call for multi value
parameters.
Parameters: name - of the parameter to be retrieved as String. | public Enumeration | getParameterNames() Returns the names of all the parameters as an Enumeration of
strings.
It returns an empty Enumeration if there are no parameters. | public String[] | getParameterValues(String name) Returns all values of a given parameter as an array of strings.
If this MultipartRequest does not contain any values for this
parameter name, then this method returns null.
Otherwise the array contains one String for each value
of this parameter.
Parameters: name - of the parameter to be retrieved as String. | public boolean | hasAttachments() Tests if this MultipartRequest has attachments. | public void | processRequest() Parses the incoming multipart/form-data by reading it from the
given request's input stream. |
MultipartRequest | public MultipartRequest(ServletRequest request) throws IOException(Code) | | Constructs a MultipartRequest instance, with an
upload limit of 2048 kB.
the newly constructed MultipartRequest instance. |
MultipartRequest | public MultipartRequest(ServletRequest request, int limit) throws IOException(Code) | | Constructs a MultipartRequest instance.
the newly constructed MultipartRequest instance. |
getAttachments | public MimeMultipart getAttachments()(Code) | | Returns the attachments as MimeMultipart.
the attachments contained within in a MimeMultipartinstance. |
getParameter | public String getParameter(String name)(Code) | | Returns the value of a given parameter as String, or null if
the control was not successful or non existant.
Note:
Mimics servlet request, do not call for multi value
parameters.
Parameters: name - of the parameter to be retrieved as String. the parameter's value as String. |
getParameterNames | public Enumeration getParameterNames()(Code) | | Returns the names of all the parameters as an Enumeration of
strings.
It returns an empty Enumeration if there are no parameters.
Enumeration of the names of all the parameters as strings. |
getParameterValues | public String[] getParameterValues(String name)(Code) | | Returns all values of a given parameter as an array of strings.
If this MultipartRequest does not contain any values for this
parameter name, then this method returns null.
Otherwise the array contains one String for each value
of this parameter.
Parameters: name - of the parameter to be retrieved as String. an array of strings,each representing a value of theparameter. |
hasAttachments | public boolean hasAttachments()(Code) | | Tests if this MultipartRequest has attachments.
true if it has attachments, false otherwise. |
processRequest | public void processRequest() throws IOException(Code) | | Parses the incoming multipart/form-data by reading it from the
given request's input stream.
Note:Does not handle multiparts contained in multiparts.
throws: IOException - if uploaded content larger than allowedor parsing failed. |
|
|