public class DSpaceMultipartParser
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
UPLOAD_STATUS_SESSION_ATTR |
| Constructor and Description |
|---|
DSpaceMultipartParser(boolean saveUploadedFilesToDisk,
java.io.File uploadDirectory,
boolean allowOverwrite,
boolean silentlyRename,
int maxUploadSize,
java.lang.String characterEncoding)
Constructor, parses given request
|
public static final java.lang.String UPLOAD_STATUS_SESSION_ATTR
public DSpaceMultipartParser(boolean saveUploadedFilesToDisk,
java.io.File uploadDirectory,
boolean allowOverwrite,
boolean silentlyRename,
int maxUploadSize,
java.lang.String characterEncoding)
saveUploadedFilesToDisk - Write fileparts to the uploadDirectory. If true the corresponding object
in the hashtable will contain a FilePartFile, if false a FilePartArrayuploadDirectory - The directory to write to if saveUploadedFilesToDisk is true.allowOverwrite - Allow existing files to be overwritten.silentlyRename - If file exists rename file (using filename+number).maxUploadSize - The maximum content length accepted.characterEncoding - The character encoding to be used.public java.util.Hashtable getParts(int contentLength,
java.lang.String contentType,
java.io.InputStream requestStream)
throws java.io.IOException,
org.apache.cocoon.servlet.multipart.MultipartException
java.io.IOExceptionorg.apache.cocoon.servlet.multipart.MultipartExceptionpublic java.util.Hashtable getParts(javax.servlet.http.HttpServletRequest request)
throws java.io.IOException,
org.apache.cocoon.servlet.multipart.MultipartException
java.io.IOExceptionorg.apache.cocoon.servlet.multipart.MultipartExceptionCopyright © 2014 DuraSpace. All Rights Reserved.