Class 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 is
        id - unique id of the jenkins configuration
    • Method Detail

      • getIconFileName

        public java.lang.String getIconFileName()
        Specified by:
        getIconFileName in interface Action
      • getUrlName

        public java.lang.String getUrlName()
        Specified by:
        getUrlName in interface Action
      • getTarget

        public java.lang.Object getTarget()
        Specified by:
        getTarget in interface org.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 request
        rsp - The response
        Throws:
        java.io.IOException - If an IO error occures
        javax.servlet.ServletException - If the response could not be generated