|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UploadedFileManager
Manager for files uploaded through the web. Allows actions to save file in Bamboo home dir. It is responsibility of the users of this manager to remove files that are no longer needed.
Method Summary | |
---|---|
UploadedFile |
createFile(java.io.InputStream inputStream,
java.lang.String fileName,
java.lang.String contentType,
long size)
Creates a file on disk. |
UploadedFile |
createFile(com.opensymphony.webwork.dispatcher.multipart.MultiPartRequestWrapper requestWrapper,
java.lang.String fileParamName)
Creates a file on disk. |
long |
getMaximumUploadedFileSizeBytes()
|
java.io.File |
getUploadedFilesDirectory()
|
Method Detail |
---|
@NotNull UploadedFile createFile(@NotNull com.opensymphony.webwork.dispatcher.multipart.MultiPartRequestWrapper requestWrapper, @NotNull java.lang.String fileParamName) throws UploadedFileManagerException
requestWrapper
- the wrapper containing getFile() and getFilesystemName() describing the attachmentfileParamName
- name of form parameter specifying filename (in requestWrapper).
UploadedFile
containing details about whereabouts of the created file
UploadedFileManagerException
- iff file upload fails@NotNull UploadedFile createFile(@NotNull java.io.InputStream inputStream, @NotNull java.lang.String fileName, @NotNull java.lang.String contentType, long size) throws UploadedFileManagerException
fileName
- the source filenamecontentType
- the content type of the passed streamsize
- the size of the passed stream.
UploadedFile
containing details about whereabouts of the created file
UploadedFileManagerException
- iff file upload fails@NotNull java.io.File getUploadedFilesDirectory()
long getMaximumUploadedFileSizeBytes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |