|
Servertec File Upload 1.1.2 09/04/2005 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectstec.servlet.http.MultiPartForm
public class MultiPartForm
Class used to parse multi-part forms.
Implements Form-based File Uploads in HTML as documentated in RFC 1867 for supporting <FORM ENCTYPE="multipart/form-data" ACTION="servletalias" METHOD="POST"> HTML tag.
The parse() method will throw a java.lang.Exception if the post data is partually or fully processesd by the Servlet engine, Servlet, JavaServer Pages (JSP) engine or JSP page.
| Constructor Summary | |
|---|---|
MultiPartForm()
|
|
| Method Summary | |
|---|---|
static java.util.Hashtable |
parse(HttpServletRequest request,
java.lang.String basedir,
int max_content_length)
Returns a hashtable containing the form elements using the platform's default character set. |
static java.util.Hashtable |
parse(HttpServletRequest request,
java.lang.String basedir,
int max_content_length,
java.lang.String charset)
Returns a hashtable containing the form elements using the specified character set. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiPartForm()
| Method Detail |
|---|
public static java.util.Hashtable parse(HttpServletRequest request,
java.lang.String basedir,
int max_content_length)
throws java.lang.Exception
Converts encoded characters using the platform's default character set.
request - the servlet request object.basedir - the base directory to use.
null, if none. If none then the file are uploaded into a buffer which can be accessed using getBuffer().
max_content_length - the maximum length of the request.
-1 if unlimited. Using -1 can open the server to denial of service attacks.
Each form element is a Vector of items containing either a String or a FileUpload object. String is used by form elements and FileUpload object is used by uploaded files.
java.lang.Exception - for invalid content type, when content length exceeds maximum content length, when content boundary is not found, when end is found while searching for content and when content header is not valid.
public static java.util.Hashtable parse(HttpServletRequest request,
java.lang.String basedir,
int max_content_length,
java.lang.String charset)
throws java.lang.Exception
Converts encoded characters using the specified character set.
request - the servlet request object.basedir - the base directory to use.
null, if none. If none then the file is uploaded into a buffer which can be accessed using getBuffer().
max_content_length - the maximum length of the request.
-1 if unlimited. Using -1 can open the server to denial of service attacks.
charset - the name of a supported character set. null if no character set is to be used.
Each form element is a Vector of items containing either a String or a FileUpload object. String is used by form elements and FileUpload object is used by uploaded files.
java.lang.Exception - for invalid content type, when content length exceeds maximum content length, when content boundary is not found, when end is found while searching for content and when content header is not valid.
|
Servertec File Upload 1.1.2 09/04/2005 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2001-2005 Servertec. All rights reserved.