public class FileUploadServiceImpl extends java.lang.Object implements FileUploadService
Constructor and Description |
---|
FileUploadServiceImpl(HookHandlerService hookHandlerService,
TempFileService tempFileService,
<any> interimMapProvider) |
Modifier and Type | Method and Description |
---|---|
byte[] |
extractContentFromHtml5Upload(java.lang.String data) |
java.lang.String |
extractContentTypeFromHtml5Upload(java.lang.String data) |
UploadedFile |
extractUploadedFileFrom(SelectedFileWrapper file) |
UploadedFile |
extractUploadedFileFrom(SelectedFileWrapper file,
boolean remove) |
java.util.List<UploadedFile> |
extractUploadedFilesFrom(java.util.List<SelectedFileWrapper> data) |
java.util.List<UploadedFile> |
extractUploadedFilesFrom(java.util.List<SelectedFileWrapper> data,
boolean remove) |
UploadResponse |
uploadInterimFile(UploadedFile file) |
java.lang.String |
uploadOccured(UploadedFile uploadedFile,
java.util.Map<java.lang.String,java.lang.String> context) |
public FileUploadServiceImpl(HookHandlerService hookHandlerService, TempFileService tempFileService, <any> interimMapProvider)
public java.lang.String uploadOccured(UploadedFile uploadedFile, java.util.Map<java.lang.String,java.lang.String> context)
uploadOccured
in interface FileUploadService
public UploadResponse uploadInterimFile(UploadedFile file) throws java.io.IOException
uploadInterimFile
in interface FileUploadService
java.io.IOException
public java.lang.String extractContentTypeFromHtml5Upload(java.lang.String data)
extractContentTypeFromHtml5Upload
in interface FileUploadService
public byte[] extractContentFromHtml5Upload(java.lang.String data)
extractContentFromHtml5Upload
in interface FileUploadService
public UploadedFile extractUploadedFileFrom(SelectedFileWrapper file)
extractUploadedFileFrom
in interface FileUploadService
public UploadedFile extractUploadedFileFrom(SelectedFileWrapper file, boolean remove)
extractUploadedFileFrom
in interface FileUploadService
public java.util.List<UploadedFile> extractUploadedFilesFrom(java.util.List<SelectedFileWrapper> data)
extractUploadedFilesFrom
in interface FileUploadService
public java.util.List<UploadedFile> extractUploadedFilesFrom(java.util.List<SelectedFileWrapper> data, boolean remove)
extractUploadedFilesFrom
in interface FileUploadService