Interface AvsService


  • @ProviderType
    public interface AvsService
    Scanner service interface. Use this to scan for viruses.
    Author:
    Roland Gruber
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean hasActiveScanEngines()
      Returns if there is at least one active scan engine.
      ScanResult scan​(java.io.InputStream content, java.lang.String userId)
      Scans the given content for viruses.
      ScanResult scan​(java.io.InputStream content, java.lang.String userId, java.lang.String path)
      Scans the given content for viruses.
    • Method Detail

      • scan

        ScanResult scan​(java.io.InputStream content,
                        java.lang.String userId)
                 throws AvsException
        Scans the given content for viruses.
        Parameters:
        content - content
        userId - user name
        Returns:
        scan result
        Throws:
        AvsException - error during scan
      • scan

        ScanResult scan​(java.io.InputStream content,
                        java.lang.String userId,
                        java.lang.String path)
                 throws AvsException
        Scans the given content for viruses.
        Parameters:
        content - content
        userId - user name
        path - node path to add in history
        Returns:
        scan result
        Throws:
        AvsException - error during scan
      • hasActiveScanEngines

        boolean hasActiveScanEngines()
        Returns if there is at least one active scan engine.
        Returns:
        scan engines available