-
- All Implemented Interfaces:
public final class MultipartConfig
This class contains the configuration for handling multipart file uploads
-
-
Constructor Summary
Constructors Constructor Description MultipartConfig()
-
Method Summary
Modifier and Type Method Description final Unit
cacheDirectory(String path)
Sets the location of the cache directory used to write file uploads final Unit
maxFileSize(Long size, SizeUnit sizeUnit)
Sets the maximum file size for an individual file upload final Unit
maxInMemoryFileSize(Integer size, SizeUnit sizeUnit)
Sets the maximum size for a single file before it will be cached to disk rather than read in memory final Unit
maxTotalRequestSize(Long size, SizeUnit sizeUnit)
Sets the maximum size for the entire multipart request -
-
Method Detail
-
cacheDirectory
final Unit cacheDirectory(String path)
Sets the location of the cache directory used to write file uploads
- Parameters:
path
- : the path of the cache directory used to write file uploads maxInMemoryFileSize
-
maxFileSize
final Unit maxFileSize(Long size, SizeUnit sizeUnit)
Sets the maximum file size for an individual file upload
- Parameters:
size
- : the maximum size of the filesizeUnit
- : the units that this size is measured in
-
maxInMemoryFileSize
final Unit maxInMemoryFileSize(Integer size, SizeUnit sizeUnit)
Sets the maximum size for a single file before it will be cached to disk rather than read in memory
- Parameters:
size
- : the maximum size of the filesizeUnit
- : the units that this size is measured in
-
maxTotalRequestSize
final Unit maxTotalRequestSize(Long size, SizeUnit sizeUnit)
Sets the maximum size for the entire multipart request
- Parameters:
size
- : the maximum size of the filesizeUnit
- : the units that this size is measured in
-
-
-
-