MultipartConfig annotation value.
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final String | |
| private final long | |
| private final long |
| Access | Constructor and Description |
|---|---|
| public | MultipartConfigElement(String
defaults to "" if values is null. location)Constructs an instance with defaults for all but location. |
| public | MultipartConfigElement(String
the directory location where files will be stored location, long the maximum size allowed (in bytes) for uploaded files maxFileSize, long the maximum size allowed (in bytes) for multipart/form-data requests maxRequestSize, int the size threshold (in bytes) after which files will be written to disk fileSizeThreshold)Constructs an instance with all values specified. |
| public | MultipartConfigElement(MultipartConfig
the annotation value annotation)Constructs an instance from a |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the size threshold (in bytes) after which files will be written to diskGets the size threshold (in bytes) after which files will be written to disk. |
| public String | Returns: the directory location where files will be storedGets the directory location where files will be stored. |
| public long | Returns: the maximum size allowed (in bytes) for uploaded filesGets the maximum size allowed (in bytes) for uploaded files. |
| public long | Returns: the maximum size allowed (in bytes) for multipart/form-data requestsGets the maximum size allowed (in bytes) for multipart/form-data requests. |
| fileSizeThreshold | back to summary |
|---|---|
| private final int fileSizeThreshold | |
| location | back to summary |
|---|---|
| private final String location | |
| maxFileSize | back to summary |
|---|---|
| private final long maxFileSize | |
| maxRequestSize | back to summary |
|---|---|
| private final long maxRequestSize | |
| MultipartConfigElement | back to summary |
|---|---|
| public MultipartConfigElement(String location) Constructs an instance with defaults for all but location.
| |
| MultipartConfigElement | back to summary |
|---|---|
| public MultipartConfigElement(String location, long maxFileSize, long maxRequestSize, int fileSizeThreshold) Constructs an instance with all values specified.
| |
| MultipartConfigElement | back to summary |
|---|---|
| public MultipartConfigElement(MultipartConfig annotation) Constructs an instance from a
| |
| getFileSizeThreshold | back to summary |
|---|---|
| public int getFileSizeThreshold() Gets the size threshold (in bytes) after which files will be written to disk. A value of zero means files must always be written to disk.
| |
| getLocation | back to summary |
|---|---|
| public String getLocation() Gets the directory location where files will be stored.
| |
| getMaxFileSize | back to summary |
|---|---|
| public long getMaxFileSize() Gets the maximum size allowed (in bytes) for uploaded files.
| |
| getMaxRequestSize | back to summary |
|---|---|
| public long getMaxRequestSize() Gets the maximum size allowed (in bytes) for multipart/form-data requests.
| |