Class AbstractHTMLAction
- java.lang.Object
-
- com.hello2morrow.sonargraph.integration.jenkins.controller.AbstractHTMLAction
-
- All Implemented Interfaces:
hudson.model.Action
,hudson.model.ModelObject
- Direct Known Subclasses:
InvisibleFromSidebarAction
,SonargraphDiffAction
,SonargraphReportAction
public abstract class AbstractHTMLAction extends Object implements hudson.model.Action
-
-
Constructor Summary
Constructors Constructor Description AbstractHTMLAction()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
doDynamic(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
protected void
enableDirectoryBrowserSupport(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, hudson.FilePath directoryToServe)
Enables directory browsing for directoryToServe.abstract String
getHTMLReport()
protected String
readHTMLReport(hudson.FilePath pathToReport, String alternative)
-
-
-
Method Detail
-
enableDirectoryBrowserSupport
protected void enableDirectoryBrowserSupport(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, hudson.FilePath directoryToServe) throws IOException, javax.servlet.ServletException
Enables directory browsing for directoryToServe. Needed when showing the report, to be able to also serve referenced image and css files.- Throws:
IOException
javax.servlet.ServletException
-
readHTMLReport
protected String readHTMLReport(hudson.FilePath pathToReport, String alternative) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
doDynamic
public abstract void doDynamic(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException
- Throws:
IOException
javax.servlet.ServletException
-
getHTMLReport
public abstract String getHTMLReport() throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
-