Class InvisibleActionHostingHtml
- java.lang.Object
-
- com.piketec.jenkins.plugins.tpt.publisher.InvisibleActionHostingHtml
-
- All Implemented Interfaces:
Action
,ModelObject
,org.kohsuke.stapler.StaplerProxy
public class InvisibleActionHostingHtml extends java.lang.Object implements Action, org.kohsuke.stapler.StaplerProxy
An invisibale action to show HTML reports- Author:
- FInfantino, PikeTec GmbH
-
-
Constructor Summary
Constructors Constructor Description InvisibleActionHostingHtml(Run<?,?> build, java.lang.String id)
This class is for hosting the HTML Report in an action.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doDynamic(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
This method is called when an InvisibleActionHostingHtml object is created.java.lang.String
getDisplayName()
java.lang.String
getIconFileName()
java.lang.String
getId()
java.lang.Object
getTarget()
java.lang.String
getUrlName()
-
-
-
Constructor Detail
-
InvisibleActionHostingHtml
public InvisibleActionHostingHtml(Run<?,?> build, java.lang.String id)
This class is for hosting the HTML Report in an action. After requesting the url in the TPTReportPage it redirects to this class and here will be the HTML displayed through the doDynamic method.(It uses the DirectoryBrowserSupport)- Parameters:
build
- to locate where the file isid
- unique id of the jenkins configuration
-
-
Method Detail
-
getDisplayName
public java.lang.String getDisplayName()
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getIconFileName
public java.lang.String getIconFileName()
- Specified by:
getIconFileName
in interfaceAction
-
getUrlName
public java.lang.String getUrlName()
- Specified by:
getUrlName
in interfaceAction
-
getTarget
public java.lang.Object getTarget()
- Specified by:
getTarget
in interfaceorg.kohsuke.stapler.StaplerProxy
-
getId
public java.lang.String getId()
- Returns:
- The uique id of the execution item
-
doDynamic
public void doDynamic(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws java.io.IOException, javax.servlet.ServletException
This method is called when an InvisibleActionHostingHtml object is created. It displays the "index.html"- Parameters:
req
- The requestrsp
- The response- Throws:
java.io.IOException
- If an IO error occuresjavax.servlet.ServletException
- If the response could not be generated
-
-