Servertec | MultiPartForm

Content Introduction Release Notes Features FAQs Requirements Installation Add-ons How To Change Log Future Plans Knowledge Base Documentation Conventions Users Reference iServer API AccessLogEntry Codecs Connection ConnectionPool... DString ErrorLogEntry EventLogEntry FileCache FileUpload IOHandler IOManager iws Logger MultiPartForm QuickSort Realm RealmAdmin... ServletManager Utils Servlet API CGI SSI Servlets Config Files Log Files Classes Directory Tree Samples Sales Legal Feedback |
    java.lang.Object
     |
     +--stec.iws.MultiPartForm
public class MultiPartForm Used to parse multi part forms. #### Methods
Method | Description
parse | Returns a hashtable containing the form elements.
### parse Returns a hashtable containing the form elements. #### Syntax
    public static Hashtable parse(HttpServletRequest request,
                                  String baseDirectory,
                                  int maxContentLength)
                                  throws Exception
#### Parameters
request | the servlet request object.
baseDirectory | the base directory to use. null, if none. If none the file is uploaded into a buffer which can be accessed using getBuffer().
maxContentLength | the maximum length of the request. -1 if unlimited. Using -1 can open iServer to denial of service attacks.
#### Returns
Hashtable | contains the form elements and uploaded files. 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.
#### Throws
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.
#### Example Hashtable ht = MultiPartForm.parse(request, baseDir, maxSize);
top of page
| Copyright © 1997-2000 Servertec. All rights reserved. Last Modified: Sun Jan 09 19:34:12 EST 2000