java.lang.Object
jakarta.servlet.MultipartConfigElement
The MultipartConfigElement API.
- Author:
- Manfred Riem ([email protected])
-
Constructor Summary
ConstructorDescriptionMultipartConfigElement
(MultipartConfig annotation) Constructor.MultipartConfigElement
(String location) Constructor.MultipartConfigElement
(String location, long maxFileSize, long maxRequestSize, int fileSizeThreshold) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the file size threshold.Returns the storage location.long
Returns the max file size.long
Returns the max request size.
-
Constructor Details
-
MultipartConfigElement
Constructor.- Parameters:
location
- the location.
-
MultipartConfigElement
public MultipartConfigElement(String location, long maxFileSize, long maxRequestSize, int fileSizeThreshold) Constructor.- Parameters:
location
- the location.maxFileSize
- the maximum file size.maxRequestSize
- the maximum request size.fileSizeThreshold
- the file size threshold.
-
MultipartConfigElement
Constructor.- Parameters:
annotation
- the annotation value
-
-
Method Details
-
getFileSizeThreshold
public int getFileSizeThreshold()Returns the file size threshold.- Returns:
- the file size threshold
-
getLocation
Returns the storage location.- Returns:
- the storage location
-
getMaxFileSize
public long getMaxFileSize()Returns the max file size.- Returns:
- the max file size
-
getMaxRequestSize
public long getMaxRequestSize()Returns the max request size.- Returns:
- the max request size
-