public abstract class JsBaseAction extends Object implements hudson.model.Action
| Constructor and Description |
|---|
JsBaseAction()
Default constructor for normal run.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBaseUrl(org.kohsuke.stapler.StaplerRequest req)
Calculates Jenkins' URL including protocol, host and port from the request.
|
String |
getDisplayName()
Make method final, as we always want the same display name.
|
String |
getIconFileName()
Make method final, as we always want the same icon file.
|
String |
getImagesUrl(org.kohsuke.stapler.StaplerRequest req)
Returns the static path for images.
|
String |
getUrlName() |
boolean |
skipDescription(org.kohsuke.stapler.StaplerRequest request)
Returns whether we want to skip the description of the job.
|
boolean |
wantHtml(org.kohsuke.stapler.StaplerRequest request)
Returns whether we want HTML instead of javascript by checking the request for html=true.
|
public boolean wantHtml(org.kohsuke.stapler.StaplerRequest request)
request - stapler requestpublic boolean skipDescription(org.kohsuke.stapler.StaplerRequest request)
request - stapler requestpublic String getBaseUrl(org.kohsuke.stapler.StaplerRequest req)
req - request from the jelly page.public String getImagesUrl(org.kohsuke.stapler.StaplerRequest req)
req - request from the jelly page.public final String getDisplayName()
getDisplayName in interface hudson.model.ActiongetDisplayName in interface hudson.model.ModelObjectpublic final String getIconFileName()
getIconFileName in interface hudson.model.Actionpublic String getUrlName()
getUrlName in interface hudson.model.ActionCopyright © 2004-2013. All Rights Reserved.