public abstract class CoverageAction extends Object implements hudson.model.Action
| Modifier and Type | Class and Description |
|---|---|
class |
CoverageAction.Entry
Bean used to generate page.
|
| Constructor and Description |
|---|
CoverageAction() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public String getDisplayName()
getDisplayName in interface hudson.model.ActiongetDisplayName in interface hudson.model.ModelObjectpublic String getUrlName()
getUrlName in interface hudson.model.Actionpublic String getIconFileName()
getIconFileName in interface hudson.model.Actionprotected abstract boolean show()
protected String getPath(org.kohsuke.stapler.StaplerRequest req)
req - The requestprotected boolean hasReports(File base)
base - The base directoryprotected List<String> getReports(File base)
base - The base directoryprotected 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 serveIOExceptionjavax.servlet.ServletExceptionprotected boolean isReport(File base)
base - The folder to checkCopyright © 2004-2018. All Rights Reserved.