@ApplicationScoped public class DefaultMultipartConfig extends java.lang.Object implements MultipartConfig
MultipartConfig.
TODO: should expose not a directory, but a way to define memory or file usage (commons upload has already a common
interface to it).| Constructor and Description |
|---|
DefaultMultipartConfig() |
| Modifier and Type | Method and Description |
|---|---|
protected java.io.File |
createDirInsideApplication() |
protected java.io.File |
createTempFile() |
java.io.File |
getDirectory()
Gets the temporary directory.
|
long |
getSizeLimit()
The max size of uploaded files (in bytes).
|
public long getSizeLimit()
MultipartConfiggetSizeLimit in interface MultipartConfigpublic java.io.File getDirectory()
MultipartConfiggetDirectory in interface MultipartConfigprotected java.io.File createDirInsideApplication()
protected java.io.File createTempFile()
throws java.io.IOException
java.io.IOExceptionCopyright © 2013 Caelum. All Rights Reserved.