@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()
MultipartConfiggetSizeLimit in interface MultipartConfigpublic long getFileSizeLimit()
MultipartConfiggetFileSizeLimit in interface MultipartConfigpublic File getDirectory()
MultipartConfiggetDirectory in interface MultipartConfigprotected Path getTemporaryDirectory()
protected Path createDirInsideApplication()
Copyright © 2014 Caelum. All rights reserved.