MultipartConfig annotation value.
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private String | |
| private long | |
| private long |
| Access | Constructor and Description |
|---|---|
| public | MultipartConfigElement(String
defualts 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 for uploaded files maxFileSize, long the maximum size allowed for
multipart/form-data requests maxRequestSize, int the size threshold 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 after which files will be written to diskGets the size threshold 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 for uploaded filesGets the maximum size allowed for uploaded files. |
| public long | Returns: the maximum size allowed for multipart/form-data requestsGets the maximum size allowed for multipart/form-data requests. |
| fileSizeThreshold | back to summary |
|---|---|
| private int fileSizeThreshold | |
| location | back to summary |
|---|---|
| private String location | |
| maxFileSize | back to summary |
|---|---|
| private long maxFileSize | |
| maxRequestSize | back to summary |
|---|---|
| private 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 after which files will 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 for uploaded files.
| |
| getMaxRequestSize | back to summary |
|---|---|
| public long getMaxRequestSize() Gets the maximum size allowed for multipart/form-data requests.
| |