Class CommonsMultipartFormDataParserFactory

java.lang.Object
com.aspectran.web.support.multipart.commons.CommonsMultipartFormDataParserFactory
Direct Known Subclasses:
CommonsMultipartFormDataParserFactoryBean

public class CommonsMultipartFormDataParserFactory extends Object
The Class CommonsMultipartFormDataParserFactory.
Since:
2.0.0
  • Constructor Details

    • CommonsMultipartFormDataParserFactory

      public CommonsMultipartFormDataParserFactory()
      Instantiates a new Commons multipart request wrapper parser.
  • Method Details

    • getTempDirectoryPath

      public String getTempDirectoryPath()
      Gets the temporary file path.
      Returns:
      the temporary file path
    • setTempDirectoryPath

      public void setTempDirectoryPath(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(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(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(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 String getAllowedFileExtensions()
      Gets the allowed file extensions.
      Returns:
      the allowed file extensions
    • setAllowedFileExtensions

      public void setAllowedFileExtensions(String allowedFileExtensions)
      Sets the allowed file extensions.
      Parameters:
      allowedFileExtensions - the allowed file extensions
    • getDeniedFileExtensions

      public String getDeniedFileExtensions()
      Gets the denied file extensions.
      Returns:
      the denied file extensions
    • setDeniedFileExtensions

      public void setDeniedFileExtensions(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