public interface MultipartFormDataParser
Modifier and Type | Method and Description |
---|---|
String |
getTempDirectoryPath()
Returns the directory path used for temporary files.
|
void |
parse(RequestAdapter requestAdapter)
Parse the given servlet request, resolving its multipart elements.
|
void |
setAllowedFileExtensions(String allowedFileExtensions)
Sets the allowed file extensions.
|
void |
setDeniedFileExtensions(String deniedFileExtensions)
Sets the denied file extensions.
|
void |
setMaxFileSize(long maxFileSize)
Set the maximum allowed size (in bytes) for each individual file before
an upload gets rejected. -1 indicates no limit (the default).
|
void |
setMaxInMemorySize(int maxInMemorySize)
Set the maximum allowed size (in bytes) before uploads are written to disk.
|
void |
setMaxRequestSize(long maxRequestSize)
Sets the maximum length of HTTP GET Request
-1 indicates no limit (the default).
|
void |
setTempDirectoryPath(String tempDirectoryPath)
Sets the directory path used to temporarily files.
|
String getTempDirectoryPath()
void setTempDirectoryPath(String tempDirectoryPath)
tempDirectoryPath
- the directory path used for temporary filesvoid setMaxRequestSize(long maxRequestSize)
maxRequestSize
- the maximum length of HTTP GET RequestFileUploadBase.setSizeMax(long)
void setMaxFileSize(long maxFileSize)
maxFileSize
- the maximum upload size per fileFileUploadBase.setFileSizeMax(long)
void setMaxInMemorySize(int maxInMemorySize)
maxInMemorySize
- the maximum in memory size allowedDiskFileItemFactory.setSizeThreshold(int)
void setAllowedFileExtensions(String allowedFileExtensions)
allowedFileExtensions
- the allowed file extensionsvoid setDeniedFileExtensions(String deniedFileExtensions)
deniedFileExtensions
- the denied file extensionsvoid parse(RequestAdapter requestAdapter)
requestAdapter
- the request adapterMultipartRequestParseException
- if multipart resolution failedCopyright © 2008–2017 Aspectran.com. All rights reserved.