org.apache.cocoon.components.request.multipart
Class MultipartParser

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--org.apache.cocoon.components.request.multipart.MultipartParser
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class MultipartParser
extends java.util.Hashtable

This class is used to implement a multipart request wrapper. It will parse the http post stream and and fill it's hashtable with values. The hashtable will contain: Vector: inline part values FilePart: file part

Version:
CVS $Id: MultipartParser.java,v 1.1.2.3 2002/09/21 16:29:32 vgritsenko Exp $
Author:
Jeroen ter Voorde
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.util.Map
java.util.Map.Entry
 
Constructor Summary
MultipartParser(javax.servlet.http.HttpServletRequest request, boolean saveUploadedFilesToDisk, java.io.File uploadDirectory, boolean allowOverwrite, boolean silentlyRename, int maxUploadSize)
          Constructor, parses given request
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MultipartParser

public MultipartParser(javax.servlet.http.HttpServletRequest request,
                       boolean saveUploadedFilesToDisk,
                       java.io.File uploadDirectory,
                       boolean allowOverwrite,
                       boolean silentlyRename,
                       int maxUploadSize)
                throws java.io.IOException,
                       MultipartException
Constructor, parses given request

Parameters:
request - The servlet request.
saveUploadedFilesToDisk -
uploadDirectory -
allowOverwrite - Allow existing files to be overwritten.
silentlyRename - If file exists rename file (using filename+number).
maxUploadSize - The maximum content length accepted.
Throws:
java.io.IOException
MultipartException


Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.