@ApplicationScoped public class DefaultMultipartConfig extends 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 Path |
createDirInsideApplication() |
File |
getDirectory()
Gets the temporary directory.
|
long |
getFileSizeLimit()
The max size of each uploaded file (in bytes).
|
long |
getSizeLimit()
The max size of uploaded files (in bytes).
|
protected Path |
getTemporaryDirectory() |
public long getSizeLimit()
MultipartConfig
getSizeLimit
in interface MultipartConfig
public long getFileSizeLimit()
MultipartConfig
getFileSizeLimit
in interface MultipartConfig
public File getDirectory()
MultipartConfig
getDirectory
in interface MultipartConfig
protected Path getTemporaryDirectory()
protected Path createDirInsideApplication()
Copyright © 2014 Caelum. All rights reserved.