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