|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.model.ManagementLink
hudson.lifecycle.WindowsInstallerLink
public class WindowsInstallerLink
ManagementLink that allows the installation as a Windows service.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
|---|
ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Field Summary |
|---|
| Fields inherited from class hudson.model.ManagementLink |
|---|
LIST |
| Method Summary | |
|---|---|
void |
doDoInstall(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
String _dir)
Performs installation. |
void |
doRestart(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
|
String |
getDescription()
Returns a short description of what this link does. |
String |
getDisplayName()
Gets the string to be displayed. |
String |
getIconFileName()
Mostly works like Action.getIconFileName(), except that
the expected icon size is 48x48, not 24x24. |
String |
getUrlName()
Gets the URL path name. |
boolean |
isInstalled()
Is the installation successful? |
static WindowsInstallerLink |
registerIfApplicable()
Decide if WindowsInstallerLink should show up in UI, and if so, register it. |
protected void |
sendError(Exception e,
org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Displays the error in a page. |
protected void |
sendError(String message,
org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
|
| Methods inherited from class hudson.model.ManagementLink |
|---|
all, getRequiredPermission, getRequiresConfirmation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public String getIconFileName()
ManagementLinkAction.getIconFileName(), except that
the expected icon size is 48x48, not 24x24. So if you give
just a file name, "/images/48x48" will be assumed.
getIconFileName in interface ActiongetIconFileName in class ManagementLinkManagementLink that only shows up under
certain circumstances.Functions.isAnonymous(),
Functions.getIconFilePath(Action)public String getUrlName()
ManagementLinktions For example, if this method returns "xyz", and if the parent object (that this action is associated with) is bound to /foo/bar/zot, then this action object will be exposed to /foo/bar/zot/xyz.
This method should return a string that's unique among other Actions.
The returned string can be an absolute URL, like "http://www.sun.com/", which is useful for directly connecting to external systems.
If the returned string starts with '/', like '/foo', then it's assumed to be relative to the context path of the Jenkins webapp.
In case of ManagementLink, this value is put straight into the href attribute,
so relative paths are interpreted against the root Jenkins object.
getUrlName in interface ActiongetUrlName in class ManagementLinkAction.getIconFileName().Functions.getActionUrl(String, Action)public String getDisplayName()
Action
public String getDescription()
ManagementLink
getDescription in class ManagementLinkpublic boolean isInstalled()
public void doDoInstall(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
@QueryParameter(value="dir")
String _dir)
throws IOException,
javax.servlet.ServletException
IOException
javax.servlet.ServletException
public void doRestart(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException
IOException
javax.servlet.ServletException
protected final void sendError(Exception e,
org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws javax.servlet.ServletException,
IOException
javax.servlet.ServletException
IOException
protected final void sendError(String message,
org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws javax.servlet.ServletException,
IOException
javax.servlet.ServletException
IOException@Extension public static WindowsInstallerLink registerIfApplicable()
WindowsInstallerLink should show up in UI, and if so, register it.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||