@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()
MultipartConfig
getSizeLimit
in interface MultipartConfig
public java.io.File getDirectory()
MultipartConfig
getDirectory
in interface MultipartConfig
protected java.io.File createDirInsideApplication()
protected java.io.File createTempFile() throws java.io.IOException
java.io.IOException
Copyright © 2013 Caelum. All Rights Reserved.