Class AbstractHTMLAction
java.lang.Object
com.hello2morrow.sonargraph.integration.jenkins.controller.AbstractHTMLAction
- All Implemented Interfaces:
 Action,ModelObject
- Direct Known Subclasses:
 InvisibleFromSidebarAction,SonargraphDiffAction,SonargraphReportAction
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionabstract voiddoDynamic(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) protected voidenableDirectoryBrowserSupport(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp, FilePath directoryToServe) Enables directory browsing for directoryToServe.abstract Stringprotected StringreadHTMLReport(FilePath pathToReport, String alternative) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.Action
getDisplayName, getIconFileName, getUrlName 
- 
Constructor Details
- 
AbstractHTMLAction
public AbstractHTMLAction() 
 - 
 - 
Method Details
- 
enableDirectoryBrowserSupport
protected void enableDirectoryBrowserSupport(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp, FilePath directoryToServe) throws IOException, jakarta.servlet.ServletException Enables directory browsing for directoryToServe. Needed when showing the report, to be able to also serve referenced image and css files.- Throws:
 IOExceptionjakarta.servlet.ServletException
 - 
readHTMLReport
protected String readHTMLReport(FilePath pathToReport, String alternative) throws IOException, InterruptedException - Throws:
 IOExceptionInterruptedException
 - 
doDynamic
public abstract void doDynamic(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException, jakarta.servlet.ServletException - Throws:
 IOExceptionjakarta.servlet.ServletException
 - 
getHTMLReport
- Throws:
 IOExceptionInterruptedException
 
 -