Class AbstractSuppressionAnalyzer

    • Field Detail

      • SUPPRESSION_OBJECT_KEY

        public static final java.lang.String SUPPRESSION_OBJECT_KEY
        The key used to store and retrieve the suppression files.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractSuppressionAnalyzer

        public AbstractSuppressionAnalyzer()
    • Method Detail

      • getSupportedExtensions

        public java.util.Set<java.lang.String> getSupportedExtensions()
        Returns a list of file EXTENSIONS supported by this analyzer.
        Returns:
        a list of file EXTENSIONS supported by this analyzer.
      • analyzeDependency

        protected void analyzeDependency​(Dependency dependency,
                                         Engine engine)
                                  throws AnalysisException
        Description copied from class: AbstractAnalyzer
        Analyzes a given dependency. If the dependency is an archive, such as a WAR or EAR, the contents are extracted, scanned, and added to the list of dependencies within the engine.
        Specified by:
        analyzeDependency in class AbstractAnalyzer
        Parameters:
        dependency - the dependency to analyze
        engine - the engine scanning
        Throws:
        AnalysisException - thrown if there is an analysis exception
      • getRuleCount

        public static int getRuleCount​(Engine engine)
        Returns the number of suppression rules currently loaded in the engine.
        Parameters:
        engine - a reference to the ODC engine
        Returns:
        the count of rules loaded