Class Report


  • public class Report
    extends Object

    Report class.

    • Method Detail

      • getExceptionThreshold

        public String getExceptionThreshold()

        Getter for the field exceptionThreshold.

        Returns:
        a String object.
      • setExceptionThreshold

        public void setExceptionThreshold​(String _threshold)

        Setter for the field exceptionThreshold.

        Parameters:
        _threshold - a String object.
      • isCreateAffectedLibraries

        public boolean isCreateAffectedLibraries()

        isCreateAffectedLibraries.

        Returns:
        a boolean
      • setCreateAffectedLibraries

        public void setCreateAffectedLibraries​(boolean createAffectedLibraries)

        Setter for the field createAffectedLibraries.

        Parameters:
        createAffectedLibraries - a boolean
      • setExemptions

        public void setExemptions​(ExemptionSet _exemptions)

        Setter for the field excemptions.

        Parameters:
        _exemptions - a Set of ExemptionBugs.
      • processVulnerabilities

        public void processVulnerabilities()
        Processes all the vulnerabilities of all application modules as obtained from the backend. Populates the Velocity context required for rendering the templates in writeResult(Path).
      • isThrowBuildException

        public boolean isThrowBuildException()
        Returns true if a build exception shall be thrown, which is the case if a threshold other than THRESHOLD_NONE is defined and vulnerabilities exist above this threshold.
        Returns:
        a boolean.
      • getConfiguration

        public Map<String,​String> getConfiguration()
        Returns a human-readable description of the configuration.
        Returns:
        a Map object.
      • getStats

        public Map<String,​Long> getStats()

        Getter for the field stats.

        Returns:
        a Map object.
      • getExceptionMessage

        public String getExceptionMessage()

        getExceptionMessage.

        Returns:
        a String object.
      • getResultAsString

        public String getResultAsString()

        getResultAsString.

        Returns:
        a String object.
      • writeResult

        public void writeResult​(@NotNull
                                @NotNull Path _dir)
        Creates result reports in HTML, XML and JSON.
        Parameters:
        _dir - a Path object.
      • writeResult

        public Path writeResult​(@NotNull
                                @NotNull Path _dir,
                                String _template,
                                String _report)

        writeResult.

        Parameters:
        _dir - a Path object.
        _template - a String object.
        _report - a String object.
        Returns:
        a Path object.
      • writeResultAsHtml

        public Path writeResultAsHtml​(@NotNull
                                      @NotNull Path _dir)

        writeResultAsHtml.

        Parameters:
        _dir - a Path object.
        Returns:
        a Path object.
      • writeResultAsXml

        public Path writeResultAsXml​(@NotNull
                                     @NotNull Path _dir)

        writeResultAsXml.

        Parameters:
        _dir - a Path object.
        Returns:
        a Path object.
      • writeResultAsJson

        public Path writeResultAsJson​(@NotNull
                                      @NotNull Path _dir)

        writeResultAsJson.

        Parameters:
        _dir - a Path object.
        Returns:
        a Path object.