Package formflow.library.file
Interface FileVirusScanner
- All Known Implementing Classes:
ClammitVirusScanner,NoOpVirusScanner
public interface FileVirusScanner
Interface that defines the abilities any File Virus Scanner should implement to work in this setup
-
Method Summary
Modifier and TypeMethodDescriptionbooleanvirusDetected(org.springframework.web.multipart.MultipartFile file) This method will send the passed in `file` to a virus scanner service defined in the implementation and return a boolean value indicating if the file contains a virus.
-
Method Details
-
virusDetected
This method will send the passed in `file` to a virus scanner service defined in the implementation and return a boolean value indicating if the file contains a virus.- Parameters:
file- file to check for virus in- Returns:
- true if virus is found, false otherwise
- Throws:
Exception
-