Class ATXReport

  • All Implemented Interfaces:
    ModelObject

    public class ATXReport
    extends AbstractTestReport
    Holds a link to ATX report. The build that holds the report artifact is resolved by StaplerRequest.findAncestorObject(Class) at runtime.
    • Constructor Detail

      • ATXReport

        public ATXReport​(String id,
                         String title,
                         String reportUrl)
        Instantiates a new ATXReport.
        Parameters:
        id - the id used in the report URL
        title - the report title
        reportUrl - the report URL
      • ATXReport

        public ATXReport​(String id,
                         String title,
                         String reportUrl,
                         boolean hasTrendReport)
        Instantiates a new ATXReport.
        Parameters:
        id - the id used in report URL
        title - the report title
        reportUrl - the report URL
        hasTrendReport - specifies whether the report has an additional trend report
    • Method Detail

      • getReportUrl

        public String getReportUrl()
      • setReportUrl

        public void setReportUrl​(String reportUrl)
        Sets the report URL.
        Parameters:
        reportUrl - the new report URL
      • hasTrendReport

        public boolean hasTrendReport()
        Currently only packages can contain an additional trend report.
        Returns:
        true if has a trend report, false otherwise
      • doDynamic

        public void doDynamic​(org.kohsuke.stapler.StaplerRequest req,
                              org.kohsuke.stapler.StaplerResponse rsp)
                       throws IOException
        Redirects to URL that is requested via HTTP.
        Parameters:
        req - the StaplerRequest used for access this report
        rsp - the StaplerResponse used for redirecting to the report
        Throws:
        IOException - signals that an I/O exception has occurred