/** * Serves HTML reports. * * @param req StaplerRequest * @param rsp StaplerResponse * @throws IOException * @throws ServletException * @see Stapler * @see DirectoryBrowserSupport */ public void doDynamic(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException { DirectoryBrowserSupport dbs = new DirectoryBrowserSupport( this, getIndexDirectoryPath(), htmlReport.getReportTitle(), "graph.gif", false); dbs.setIndexFileName(htmlReport.getIndexPage()); dbs.generateResponse(req, rsp, this); }
/* * (non-Javadoc) * * @see hudson.model.Action#getDisplayName() */ public String getDisplayName() { return htmlReport.getReportTitle(); }