Class CommonsMultipartFormDataParserFactory
- java.lang.Object
-
- com.aspectran.web.support.multipart.commons.CommonsMultipartFormDataParserFactory
-
- Direct Known Subclasses:
CommonsMultipartFormDataParserFactoryBean
public class CommonsMultipartFormDataParserFactory extends java.lang.Object
The Class CommonsMultipartFormDataParserFactory.- Since:
- 2.0.0
-
-
Constructor Summary
Constructors Constructor Description CommonsMultipartFormDataParserFactory()
Instantiates a new Commons multipart request wrapper parser.
-
Method Summary
Modifier and Type Method Description MultipartFormDataParser
createMultipartFormDataParser()
Creates a new MultipartFormDataParser object.java.lang.String
getAllowedFileExtensions()
Gets the allowed file extensions.java.lang.String
getDeniedFileExtensions()
Gets the denied file extensions.long
getMaxRequestSize()
Gets the maximum size of the request.java.lang.String
getTempDirectoryPath()
Gets the temporary file path.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)
Sets the maximum size of the file.void
setMaxFileSize(java.lang.String maxFileSize)
Sets the maximum size of the file in human readable format.void
setMaxInMemorySize(int maxInMemorySize)
Set the maximum allowed size (in bytes) before uploads are written to disk.void
setMaxInMemorySize(java.lang.String maxInMemorySize)
Set the maximum allowed size (in bytes) before uploads are written to disk.void
setMaxRequestSize(long maxRequestSize)
Sets the maximum size of the request.void
setMaxRequestSize(java.lang.String maxRequestSize)
Sets the maximum size of the request in human readable format.void
setTempDirectoryPath(java.lang.String tempDirectoryPath)
Sets the temporary directory path.
-
-
-
Method Detail
-
getTempDirectoryPath
public java.lang.String getTempDirectoryPath()
Gets the temporary file path.- Returns:
- the temporary file path
-
setTempDirectoryPath
public void setTempDirectoryPath(java.lang.String tempDirectoryPath)
Sets the temporary directory path.- Parameters:
tempDirectoryPath
- the temporary directory path
-
getMaxRequestSize
public long getMaxRequestSize()
Gets the maximum size of the request.- Returns:
- the maximum size of the request
-
setMaxRequestSize
public void setMaxRequestSize(long maxRequestSize)
Sets the maximum size of the request.- Parameters:
maxRequestSize
- the maximum size of the request
-
setMaxRequestSize
public void setMaxRequestSize(java.lang.String maxRequestSize)
Sets the maximum size of the request in human readable format.- Parameters:
maxRequestSize
- the maximum size of the request in human readable format.- See Also:
FileUploadBase.setSizeMax(long)
-
setMaxFileSize
public void setMaxFileSize(long maxFileSize)
Sets the maximum size of the file.- Parameters:
maxFileSize
- the maximum size of the file- See Also:
FileUploadBase.setFileSizeMax(long)
-
setMaxFileSize
public void setMaxFileSize(java.lang.String maxFileSize)
Sets the maximum size of the file in human readable format.- Parameters:
maxFileSize
- the maximum size of the file in human readable format- See Also:
FileUploadBase.setFileSizeMax(long)
-
setMaxInMemorySize
public void setMaxInMemorySize(int maxInMemorySize)
Set the maximum allowed size (in bytes) before uploads are written to disk. Uploaded files will still be received past this amount, but they will not be stored in memory. Default is 10240, according to Commons FileUpload.- Parameters:
maxInMemorySize
- the maximum in memory size allowed- See Also:
DiskFileItemFactory.setSizeThreshold(int)
-
setMaxInMemorySize
public void setMaxInMemorySize(java.lang.String maxInMemorySize)
Set the maximum allowed size (in bytes) before uploads are written to disk. Uploaded files will still be received past this amount, but they will not be stored in memory. Default is 10240, according to Commons FileUpload.- Parameters:
maxInMemorySize
- the maximum in memory size allowed (human readable format)- See Also:
DiskFileItemFactory.setSizeThreshold(int)
-
getAllowedFileExtensions
public java.lang.String getAllowedFileExtensions()
Gets the allowed file extensions.- Returns:
- the allowed file extensions
-
setAllowedFileExtensions
public void setAllowedFileExtensions(java.lang.String allowedFileExtensions)
Sets the allowed file extensions.- Parameters:
allowedFileExtensions
- the allowed file extensions
-
getDeniedFileExtensions
public java.lang.String getDeniedFileExtensions()
Gets the denied file extensions.- Returns:
- the denied file extensions
-
setDeniedFileExtensions
public void setDeniedFileExtensions(java.lang.String deniedFileExtensions)
Sets the denied file extensions.- Parameters:
deniedFileExtensions
- the denied file extensions
-
createMultipartFormDataParser
public MultipartFormDataParser createMultipartFormDataParser()
Creates a new MultipartFormDataParser object.- Returns:
- the multipart form data parser
-
-