public class DSpaceMultipartParser extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
UPLOAD_STATUS_SESSION_ATTR |
| Constructor and Description |
|---|
DSpaceMultipartParser(boolean saveUploadedFilesToDisk,
File uploadDirectory,
boolean allowOverwrite,
boolean silentlyRename,
int maxUploadSize,
String characterEncoding)
Constructor, parses given request
|
public static final String UPLOAD_STATUS_SESSION_ATTR
public DSpaceMultipartParser(boolean saveUploadedFilesToDisk,
File uploadDirectory,
boolean allowOverwrite,
boolean silentlyRename,
int maxUploadSize,
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 Hashtable getParts(int contentLength, String contentType, InputStream requestStream) throws IOException, org.apache.cocoon.servlet.multipart.MultipartException
IOExceptionorg.apache.cocoon.servlet.multipart.MultipartExceptionpublic Hashtable getParts(javax.servlet.http.HttpServletRequest request) throws IOException, org.apache.cocoon.servlet.multipart.MultipartException
IOExceptionorg.apache.cocoon.servlet.multipart.MultipartExceptionCopyright © 2016 DuraSpace. All Rights Reserved.