java.lang.Object
javax.servlet.MultipartConfigElement
public class MultipartConfigElement
extends java.lang.Object
The MultipartConfigElement API.
- Author:
- Manfred Riem ([email protected])
-
Constructor Summary
Constructors Constructor Description MultipartConfigElement(java.lang.String location)
Constructor.MultipartConfigElement(java.lang.String location, long maxFileSize, long maxRequestSize, int fileSizeThreshold)
Constructor.MultipartConfigElement(MultipartConfig annotation)
Constructor. -
Method Summary
Modifier and Type Method Description int
getFileSizeThreshold()
Get the file size threshold.java.lang.String
getLocation()
Get the storage location.long
getMaxFileSize()
Get the max file size.long
getMaxRequestSize()
Get the max request size.
-
Constructor Details
-
MultipartConfigElement
public MultipartConfigElement(java.lang.String location)Constructor.- Parameters:
location
- the location.
-
MultipartConfigElement
public MultipartConfigElement(java.lang.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()Get the file size threshold.- Returns:
- the file size threshold.
-
getLocation
public java.lang.String getLocation()Get the storage location.- Returns:
- the storage location.
-
getMaxFileSize
public long getMaxFileSize()Get the max file size.- Returns:
- the max file size.
-
getMaxRequestSize
public long getMaxRequestSize()Get the max request size.- Returns:
- the max request size.
-