Interface UploadDataProcessorService
- All Known Implementing Classes:
DefaultUploadDataProcessorService
public interface UploadDataProcessorService
Service that deals with the finding and transfer of the generated files.
-
Method Summary
Modifier and TypeMethodDescriptionFind files matching the provided regex in the specified directorygetUploadCronJob(org.springframework.messaging.Message<File> message) get the cronjob configuration that generates this filehandlerError(org.springframework.messaging.support.ErrorMessage message) handle any exceptions that occur during transport.
-
Method Details
-
findFiles
org.springframework.messaging.Message<List<File>> findFiles(org.springframework.messaging.Message<?> message, String filenameRegex, String directory) Find files matching the provided regex in the specified directory- Parameters:
message- the messagefilenameRegex- filename regular expressiondirectory- the directory path to search within- Returns:
- a message that contains a list of found files
-
getUploadCronJob
get the cronjob configuration that generates this file- Parameters:
message- message that contains the file- Returns:
- the cronjob configuration
-
handlerError
handle any exceptions that occur during transport.- Parameters:
message-- Returns:
- the file that had the issue
-