Package formflow.library.file
Class NoOpVirusScanner
java.lang.Object
formflow.library.file.NoOpVirusScanner
- All Implemented Interfaces:
FileVirusScanner
@Service
@ConditionalOnProperty(name="form-flow.uploads.virus-scanning.enabled",
havingValue="false",
matchIfMissing=true)
public class NoOpVirusScanner
extends Object
implements FileVirusScanner
This implementation of
FileVirusScanner does nothing useful at all.
It logs the methods being called.-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
NoOpVirusScanner
public NoOpVirusScanner()
-
-
Method Details
-
virusDetected
public boolean virusDetected(org.springframework.web.multipart.MultipartFile file) Description copied from interface:FileVirusScannerThis 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.- Specified by:
virusDetectedin interfaceFileVirusScanner- Parameters:
file- file to check for virus in- Returns:
- true if virus is found, false otherwise
-