jakarta.servlet.annotation.MultipartConfig used to configure multi-part
handling for a Servlet when registering a Servlet via code.
| 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
The temporary location to store files location)Create a programmatic multi-part configuration with a specific location and defaults for the remaining configuration elements. |
| public | MultipartConfigElement(String
The temporary location to store files location, long The maximum permitted size for a single file maxFileSize, long The maximum permitted size for a request maxRequestSize, int The size above which the file is save in the temporary location rather than retained in
memory. fileSizeThreshold)Create a programmatic multi-part configuration from the individual configuration elements. |
| public | MultipartConfigElement(MultipartConfig
The source annotation to copy to create the programmatic equivalent. annotation)Create a programmatic configuration from an annotation. |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the size above which the file is save in the temporary location rather than retained in memory.Obtain the size above which the file is save in the temporary location rather than retained in memory. |
| public String | Returns: the location where temporary files should be stored.Obtain the location where temporary files should be stored. |
| public long | Returns: the maximum permitted size for a single file.Obtain the maximum permitted size for a single file. |
| public long | Returns: the maximum permitted size for a single request.Obtain the maximum permitted size for a single request. |
| 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) Create a programmatic multi-part configuration with a specific location and defaults for the remaining configuration elements.
| |
| MultipartConfigElement | back to summary |
|---|---|
| public MultipartConfigElement(String location, long maxFileSize, long maxRequestSize, int fileSizeThreshold) Create a programmatic multi-part configuration from the individual configuration elements.
| |
| MultipartConfigElement | back to summary |
|---|---|
| public MultipartConfigElement(MultipartConfig annotation) Create a programmatic configuration from an annotation.
| |
| getFileSizeThreshold | back to summary |
|---|---|
| public int getFileSizeThreshold() Obtain the size above which the file is save in the temporary location rather than retained in memory.
| |
| getLocation | back to summary |
|---|---|
| public String getLocation() Obtain the location where temporary files should be stored.
| |
| getMaxFileSize | back to summary |
|---|---|
| public long getMaxFileSize() Obtain the maximum permitted size for a single file.
| |
| getMaxRequestSize | back to summary |
|---|---|
| public long getMaxRequestSize() Obtain the maximum permitted size for a single request.
| |