public class MultipartConfigElement extends Object
MultipartConfig
annotation value.Constructor and Description |
---|
MultipartConfigElement(MultipartConfig annotation)
Constructs an instance from a
MultipartConfig annotation value. |
MultipartConfigElement(String location)
Constructs an instance with defaults for all but location.
|
MultipartConfigElement(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.
|
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(String location)
location
- defualts to "" if values is null.public MultipartConfigElement(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 String getLocation()
public long getMaxFileSize()
public long getMaxRequestSize()
public int getFileSizeThreshold()
Copyright © 2019 Eclipse Foundation.
Use is subject to license terms.