Class CommonsMultipartFormDataParserFactory
- java.lang.Object
-
- com.aspectran.web.support.multipart.commons.CommonsMultipartFormDataParserFactory
-
- Direct Known Subclasses:
CommonsMultipartFormDataParserFactoryBean
public class CommonsMultipartFormDataParserFactory extends java.lang.ObjectThe Class CommonsMultipartFormDataParserFactory.- Since:
- 2.0.0
-
-
Constructor Summary
Constructors Constructor Description CommonsMultipartFormDataParserFactory()Instantiates a new Multipart request wrapper resolver.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MultipartFormDataParsercreateMultipartFormDataParser()Creates a new MultipartFormDataParser object.java.lang.StringgetAllowedFileExtensions()Gets the allowed file extensions.java.lang.StringgetDeniedFileExtensions()Gets the denied file extensions.longgetMaxRequestSize()Gets the maximum size of the request.java.lang.StringgetTempDirectoryPath()Gets the temporary file path.voidsetAllowedFileExtensions(java.lang.String allowedFileExtensions)Sets the allowed file extensions.voidsetDeniedFileExtensions(java.lang.String deniedFileExtensions)Sets the denied file extensions.voidsetMaxFileSize(long maxFileSize)Sets the maximum size of the file.voidsetMaxFileSize(java.lang.String maxFileSize)Sets the maximum size of the file.voidsetMaxRequestSize(long maxRequestSize)Sets the maximum size of the request.voidsetMaxRequestSize(java.lang.String maxRequestSize)Sets the maximum size of the request.voidsetTempDirectoryPath(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.- Parameters:
maxRequestSize- the maximum size of the request
-
setMaxFileSize
public void setMaxFileSize(long maxFileSize)
Sets the maximum size of the file.- Parameters:
maxFileSize- the maximum size of the file
-
setMaxFileSize
public void setMaxFileSize(java.lang.String maxFileSize)
Sets the maximum size of the file.- Parameters:
maxFileSize- the maximum size of the file
-
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
-
-