@ConfigurationProperties(prefix="multipart", ignoreUnknownFields=false) public class MultipartProperties extends Object
MultipartConfigElement
.
These properties are ultimately passed through
MultipartConfigFactory
which means
you may specify the values using long values or using more readable
String variants that accept Kb or Mb suffixes.
Constructor and Description |
---|
MultipartProperties() |
Modifier and Type | Method and Description |
---|---|
MultipartConfigElement |
createMultipartConfig()
Create a new
MultipartConfigElement using the properties. |
boolean |
getEnabled() |
String |
getFileSizeThreshold() |
String |
getLocation() |
String |
getMaxFileSize() |
String |
getMaxRequestSize() |
void |
setEnabled(boolean enabled) |
void |
setFileSizeThreshold(String fileSizeThreshold) |
void |
setLocation(String location) |
void |
setMaxFileSize(String maxFileSize) |
void |
setMaxRequestSize(String maxRequestSize) |
public boolean getEnabled()
public void setEnabled(boolean enabled)
public String getLocation()
public void setLocation(String location)
public String getMaxFileSize()
public void setMaxFileSize(String maxFileSize)
public String getMaxRequestSize()
public void setMaxRequestSize(String maxRequestSize)
public String getFileSizeThreshold()
public void setFileSizeThreshold(String fileSizeThreshold)
public MultipartConfigElement createMultipartConfig()
MultipartConfigElement
using the properties.MultipartConfigElement
configured using there propertiesCopyright © 2015 Pivotal Software, Inc.. All rights reserved.