Class VirusScannerService

java.lang.Object
org.primefaces.virusscan.VirusScannerService

public class VirusScannerService extends Object
This service may be used to load registered VirusScanner providers and perform virus scan.
  • Constructor Details

    • VirusScannerService

      public VirusScannerService(ClassLoader classLoader)
  • Method Details

    • performVirusScan

      public void performVirusScan(UploadedFile file) throws VirusException
      Perform virus scan and throw exception if at least one registered VirusScanner provider has detected a virus.
      Parameters:
      file - input stream to perform virus scan on
      Throws:
      VirusException - if at least one VirusScanner provider has detected a virus