CommonsMultipartFormDataParserpublic interface MultipartFormDataParser
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.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(java.lang.String allowedFileExtensions) |
Sets the allowed file extensions.
|
void |
setDeniedFileExtensions(java.lang.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.
|
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(java.lang.String tempDirectoryPath) |
Sets the directory path used to temporarily files.
|
java.lang.String getTempDirectoryPath()
void setTempDirectoryPath(java.lang.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(java.lang.String allowedFileExtensions)
allowedFileExtensions - the allowed file extensionsvoid setDeniedFileExtensions(java.lang.String deniedFileExtensions)
deniedFileExtensions - the denied file extensionsvoid parse(RequestAdapter requestAdapter)
requestAdapter - the request adapterMultipartRequestParseException - if multipart resolution failedCopyright © 2008–2017 The Aspectran Project. All rights reserved.