|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthudson.plugins.jswidgets.JsBaseAction
public abstract class JsBaseAction
Implements some basic methods for returning baseUrl and image paths. This is the base class for javascript actions.
| Constructor Summary | |
|---|---|
JsBaseAction()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getBaseUrl(org.kohsuke.stapler.StaplerRequest req)
Calculates Hudson's URL including protocol, host and port from the request. |
java.lang.String |
getDisplayName()
Make method final, as we always want the same display name. |
java.lang.String |
getIconFileName()
Make method final, as we always want the same icon file. |
java.lang.String |
getImagesUrl(org.kohsuke.stapler.StaplerRequest req)
Returns the static path for images. |
java.lang.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JsBaseAction()
| Method Detail |
|---|
public boolean wantHtml(org.kohsuke.stapler.StaplerRequest request)
request - stapler request
public boolean skipDescription(org.kohsuke.stapler.StaplerRequest request)
request - stapler request
public java.lang.String getBaseUrl(org.kohsuke.stapler.StaplerRequest req)
req - request from the jelly page.
public java.lang.String getImagesUrl(org.kohsuke.stapler.StaplerRequest req)
req - request from the jelly page.
public final java.lang.String getDisplayName()
getDisplayName in interface hudson.model.ActiongetDisplayName in interface hudson.model.ModelObjectpublic final java.lang.String getIconFileName()
getIconFileName in interface hudson.model.Actionpublic java.lang.String getUrlName()
getUrlName in interface hudson.model.Action
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||