public class MultipartConfigFactory extends Object
MultipartConfigElement
.Constructor and Description |
---|
MultipartConfigFactory() |
Modifier and Type | Method and Description |
---|---|
MultipartConfigElement |
createMultipartConfig()
Create a new
MultipartConfigElement instance. |
void |
setFileSizeThreshold(DataSize fileSizeThreshold)
Sets the
size threshold after which files will be written to disk. |
void |
setLocation(String location)
Sets the directory location where files will be stored.
|
void |
setMaxFileSize(DataSize maxFileSize)
Sets the maximum
size allowed for uploaded files. |
void |
setMaxRequestSize(DataSize maxRequestSize)
Sets the maximum
DataSize allowed for multipart/form-data requests. |
public void setLocation(String location)
location
- the locationpublic void setMaxFileSize(DataSize maxFileSize)
size
allowed for uploaded files.maxFileSize
- the maximum file sizepublic void setMaxRequestSize(DataSize maxRequestSize)
DataSize
allowed for multipart/form-data requests.maxRequestSize
- the maximum request sizepublic void setFileSizeThreshold(DataSize fileSizeThreshold)
size
threshold after which files will be written to disk.fileSizeThreshold
- the file size thresholdpublic MultipartConfigElement createMultipartConfig()
MultipartConfigElement
instance.Copyright © 2021 Pivotal Software, Inc.. All rights reserved.