@ConfigurationProperties(value="multipart") public static class HttpServerConfiguration.MultipartConfiguration extends Object implements Toggleable
| Modifier and Type | Field and Description | 
|---|---|
static boolean | 
DEFAULT_DISK
The default disk value. 
 | 
static boolean | 
DEFAULT_ENABLED
The default enable value. 
 | 
static long | 
DEFAULT_MAX_FILE_SIZE
The default max file size. 
 | 
| Constructor and Description | 
|---|
MultipartConfiguration()  | 
| Modifier and Type | Method and Description | 
|---|---|
Optional<File> | 
getLocation()  | 
long | 
getMaxFileSize()  | 
boolean | 
isDisk()  | 
boolean | 
isEnabled()  | 
void | 
setDisk(boolean disk)
Sets whether to buffer data to disk or not. 
 | 
void | 
setEnabled(boolean enabled)
Sets whether multipart processing is enabled. 
 | 
void | 
setLocation(File location)
Sets the location to store files. 
 | 
void | 
setMaxFileSize(long maxFileSize)
Sets the max file size. 
 | 
public static final boolean DEFAULT_ENABLED
public static final long DEFAULT_MAX_FILE_SIZE
public static final boolean DEFAULT_DISK
public long getMaxFileSize()
public boolean isEnabled()
isEnabled in interface Toggleablepublic boolean isDisk()
public void setLocation(File location)
location - The locationpublic void setMaxFileSize(@ReadableBytes long maxFileSize)
maxFileSize - The max file sizepublic void setEnabled(boolean enabled)
enabled - True if it is enabledpublic void setDisk(boolean disk)
disk - True if data should be written to disk