|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjenkins.plugins.shiningpanda.actions.coverage.CoverageAction
public abstract class CoverageAction
Nested Class Summary | |
---|---|
class |
CoverageAction.Entry
Bean used to generate page. |
Constructor Summary | |
---|---|
CoverageAction()
|
Method Summary | |
---|---|
String |
getDisplayName()
|
String |
getIconFileName()
|
protected String |
getPath(org.kohsuke.stapler.StaplerRequest req)
Get the request path. |
protected List<String> |
getReports(File base)
Get the list of available reports. |
String |
getUrlName()
|
protected boolean |
hasReports(File base)
Check if a directory contains some reports. |
protected boolean |
isReport(File base)
Check if the provided folder is a report folder. |
protected void |
serve(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
String title,
File base,
String path)
Server a request. |
protected abstract boolean |
show()
Check if show the coverage action. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CoverageAction()
Method Detail |
---|
public String getDisplayName()
getDisplayName
in interface hudson.model.Action
getDisplayName
in interface hudson.model.ModelObject
public String getUrlName()
getUrlName
in interface hudson.model.Action
public String getIconFileName()
getIconFileName
in interface hudson.model.Action
protected abstract boolean show()
protected String getPath(org.kohsuke.stapler.StaplerRequest req)
req
- The request
protected boolean hasReports(File base)
base
- The base directory
protected List<String> getReports(File base)
base
- The base directory
protected void serve(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, String title, File base, String path) throws IOException, javax.servlet.ServletException
req
- The requestrsp
- The responsetitle
- The title if an index page is generatedbase
- The base folderpath
- The path to serve
IOException
javax.servlet.ServletException
protected boolean isReport(File base)
base
- The folder to check
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |