|
|||||||||
| 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.
| Field Summary | |
|---|---|
private static Logger |
LOG
Our logger. |
| Constructor Summary | |
|---|---|
JsBaseAction()
|
|
| Method Summary | |
|---|---|
String |
getBaseUrl(StaplerRequest req)
Calculates Hudson's 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(StaplerRequest req)
Returns the static path for images. |
String |
getUrlName()
|
boolean |
wantHtml(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 |
| Field Detail |
|---|
private static final Logger LOG
| Constructor Detail |
|---|
public JsBaseAction()
| Method Detail |
|---|
public boolean wantHtml(StaplerRequest request)
request - stapler request
public String getBaseUrl(StaplerRequest req)
req - request from the jelly page.
public String getImagesUrl(StaplerRequest req)
req - request from the jelly page.
public final String getDisplayName()
getDisplayName in interface ActiongetDisplayName in interface ModelObjectpublic final String getIconFileName()
getIconFileName in interface Actionpublic String getUrlName()
getUrlName in interface Action
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||