public class MultipartConfigElement
extends java.lang.Object
MultipartConfig
annotation value.Constructor and Description |
---|
MultipartConfigElement(MultipartConfig annotation)
Constructs an instance from a
MultipartConfig annotation value. |
MultipartConfigElement(java.lang.String location)
Constructs an instance with defaults for all but location.
|
MultipartConfigElement(java.lang.String location,
long maxFileSize,
long maxRequestSize,
int fileSizeThreshold)
Constructs an instance with all values specified.
|
Modifier and Type | Method and Description |
---|---|
int |
getFileSizeThreshold()
Gets the size threshold after which files will be written to disk.
|
java.lang.String |
getLocation()
Gets the directory location where files will be stored.
|
long |
getMaxFileSize()
Gets the maximum size allowed for uploaded files.
|
long |
getMaxRequestSize()
Gets the maximum size allowed for multipart/form-data requests.
|
public MultipartConfigElement(java.lang.String location)
location
- defualts to "" if values is null.public MultipartConfigElement(java.lang.String location, long maxFileSize, long maxRequestSize, int fileSizeThreshold)
location
- the directory location where files will be storedmaxFileSize
- the maximum size allowed for uploaded filesmaxRequestSize
- the maximum size allowed for
multipart/form-data requestsfileSizeThreshold
- the size threshold after which files will
be written to diskpublic MultipartConfigElement(MultipartConfig annotation)
MultipartConfig
annotation value.annotation
- the annotation valuepublic java.lang.String getLocation()
public long getMaxFileSize()
public long getMaxRequestSize()
public int getFileSizeThreshold()