|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Dictionary | +--java.util.Hashtable | +--org.apache.cocoon.components.request.multipart.MultipartParser
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
Inner 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 |
public MultipartParser(javax.servlet.http.HttpServletRequest request, boolean saveUploadedFilesToDisk, java.io.File uploadDirectory, boolean allowOverwrite, boolean silentlyRename, int maxUploadSize) throws java.io.IOException, MultipartException
request
- The servlet request.saveUploadFilesToDisk
- Write fileparts to the uploadDirectory. If true the corresponding object
in the hashtable will contain a FilePartFile, if false a FilePartArrayFile
- uploadDirectory The directory to write to if saveUploadedFilesToDisk is true.saveUploadedFilesToDisk
- uploadDirectory
- allowOverwrite
- Allow existing files to be overwritten.silentlyRename
- If file exists rename file (using filename+number).maxUploadSize
- The maximum content length accepted.java.io.IOException
- MultipartException
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |