Package jodd.http.upload.impl
Class MemoryFileUploadFactory
- java.lang.Object
-
- jodd.http.upload.impl.MemoryFileUploadFactory
-
- All Implemented Interfaces:
FileUploadFactory
public class MemoryFileUploadFactory extends java.lang.Object implements FileUploadFactory
Factory forjodd.net.upload.impl.MemoryFileUpload.
-
-
Field Summary
Fields Modifier and Type Field Description protected intmaxFileSize
-
Constructor Summary
Constructors Constructor Description MemoryFileUploadFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileUploadcreate(MultipartRequestInputStream input)Creates new instance ofuploaded file.intgetMaxFileSize()MemoryFileUploadFactorysetMaxFileSize(int maxFileSize)Sets maximum file upload size.
-
-
-
Method Detail
-
getMaxFileSize
public int getMaxFileSize()
-
setMaxFileSize
public MemoryFileUploadFactory setMaxFileSize(int maxFileSize)
Sets maximum file upload size. Setting to -1 will disable this constraint.
-
create
public FileUpload create(MultipartRequestInputStream input)
Creates new instance ofuploaded file.- Specified by:
createin interfaceFileUploadFactory
-
-