Class PrimeFacesVirusScannerProvider

java.lang.Object
de.xima.fc.gui.common.virus.PrimeFacesVirusScannerProvider
All Implemented Interfaces:
org.primefaces.virusscan.VirusScanner

public final class PrimeFacesVirusScannerProvider extends Object implements org.primefaces.virusscan.VirusScanner
VirusScanner service implementation that delegates to the MalwareScanner. The client scope is read from the current view and session, if any.
Author:
XIMA MEDIA GmbH
  • Constructor Details

    • PrimeFacesVirusScannerProvider

      public PrimeFacesVirusScannerProvider()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface org.primefaces.virusscan.VirusScanner
    • scan

      public void scan(org.primefaces.model.file.UploadedFile uploadedFile) throws org.primefaces.virusscan.VirusException
      Specified by:
      scan in interface org.primefaces.virusscan.VirusScanner
      Throws:
      org.primefaces.virusscan.VirusException