@ConfigurationProperties(value="multipart") public static class HttpServerConfiguration.MultipartConfiguration extends Object implements Toggleable
| Modifier and Type | Field and Description | 
|---|---|
| static boolean | DEFAULT_DISKThe default disk value. | 
| static boolean | DEFAULT_ENABLEDThe default enable value. | 
| static long | DEFAULT_MAX_FILE_SIZEThe default max file size. | 
| static boolean | DEFAULT_MIXEDThe default mixed value. | 
| static long | DEFAULT_THRESHOLDThe default threshold value. | 
| Constructor and Description | 
|---|
| MultipartConfiguration() | 
| Modifier and Type | Method and Description | 
|---|---|
| Optional<Boolean> | getEnabled()The default multipart enabled setting is false for servlets, but effectively
 true for Netty. | 
| Optional<File> | getLocation() | 
| long | getMaxFileSize() | 
| long | getThreshold() | 
| boolean | isDisk() | 
| boolean | isEnabled() | 
| boolean | isMixed() | 
| 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. | 
| void | setMixed(boolean mixed)Sets whether to buffer data to disk if the size is greater than the
 threshold. | 
| void | setThreshold(long threshold)Sets the amount of data that should be received that will trigger
 the data to be stored to disk. | 
public static final boolean DEFAULT_ENABLED
public static final long DEFAULT_MAX_FILE_SIZE
public static final boolean DEFAULT_DISK
public static final boolean DEFAULT_MIXED
public static final long DEFAULT_THRESHOLD
public long getMaxFileSize()
public boolean isEnabled()
isEnabled in interface Toggleable@Internal public Optional<Boolean> getEnabled()
public boolean isDisk()
public boolean isMixed()
public long getThreshold()
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 diskpublic void setMixed(boolean mixed)
mixed - True if data should be written to disk after a threshold.public void setThreshold(@ReadableBytes long threshold)
threshold - The threshold