public class MultipartConfigElement
extends java.lang.Object
| Constructor and Description |
|---|
MultipartConfigElement (MultipartConfig annotation)
Constructs a new element based on the specified config object.
|
MultipartConfigElement (java.lang.String location)
Constructs a new element.
|
MultipartConfigElement (java.lang.String location,
long maxFileSize,
long maxRequestSize,
int fileSizeThreshold)
Constructs a new element with the specified values.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getFileSizeThreshold ()
Returns the size threshold above which files will be written to disk.
|
java.lang.String |
getLocation ()
Returns the directory location for file storage.
|
long |
getMaxFileSize ()
Returns the maximum file size for uploaded files.
|
long |
getMaxRequestSize ()
Returns the maximum size allowed for multipart/form-data requests.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic MultipartConfigElement(java.lang.String location)
public MultipartConfigElement(java.lang.String location, long maxFileSize, long maxRequestSize, int fileSizeThreshold)
public MultipartConfigElement(MultipartConfig annotation)
public java.lang.String getLocation()
public long getMaxFileSize()
public long getMaxRequestSize()
public int getFileSizeThreshold()