|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.model.ManagementLink
org.jenkinsci.plugins.viewer.XPathConfigViewerPlugin
@Extension public class XPathConfigViewerPlugin
Main class for the config viewer plugin.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
---|
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
Field Summary |
---|
Fields inherited from class hudson.model.ManagementLink |
---|
LIST |
Constructor Summary | |
---|---|
XPathConfigViewerPlugin()
initialize the xpath config provider; |
Method Summary | |
---|---|
void |
doAddXPath(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Requests a new config object from provider (defined by the given id) and forwards the request to "edit.jelly". |
org.kohsuke.stapler.HttpResponse |
doDelConfig(org.kohsuke.stapler.StaplerRequest res,
org.kohsuke.stapler.StaplerResponse rsp,
String configId)
Removes a script from the config and filesystem. |
void |
doEditConfig(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
String confgiId)
Loads the config by its id and forwards the request to "edit.jelly". |
org.kohsuke.stapler.HttpResponse |
doSaveXPath(org.kohsuke.stapler.StaplerRequest req)
Returns the http response to redirect to /index after save. |
String |
getDescription()
Returns the description of the plugin. |
String |
getDisplayName()
Returns the display name of the plugin to be shown on the /manage page. |
String |
getIconFileName()
Returns the icon filename of the plugin to be shown on the /manage page. |
List<org.jenkinsci.lib.configprovider.ConfigProvider> |
getProviders()
Returns the list of all config providers. |
String |
getUrlName()
Returns the url part to open the plugin page. |
Methods inherited from class hudson.model.ManagementLink |
---|
all |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XPathConfigViewerPlugin()
Method Detail |
---|
public String getDescription()
getDescription
in class hudson.model.ManagementLink
public String getIconFileName()
getIconFileName
in interface hudson.model.Action
getIconFileName
in class hudson.model.ManagementLink
public String getUrlName()
getUrlName
in interface hudson.model.Action
getUrlName
in class hudson.model.ManagementLink
public String getDisplayName()
public List<org.jenkinsci.lib.configprovider.ConfigProvider> getProviders()
public void doAddXPath(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException
req
- requestrsp
- response
IOException
javax.servlet.ServletException
public void doEditConfig(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, @QueryParameter(value="id") String confgiId) throws IOException, javax.servlet.ServletException
req
- requestrsp
- responseconfgiId
- the id of the config to be loaded in to the edit view.
IOException
javax.servlet.ServletException
public org.kohsuke.stapler.HttpResponse doSaveXPath(org.kohsuke.stapler.StaplerRequest req)
req
- Request containing the xpathconfig form data.
public org.kohsuke.stapler.HttpResponse doDelConfig(org.kohsuke.stapler.StaplerRequest res, org.kohsuke.stapler.StaplerResponse rsp, @QueryParameter(value="id") String configId) throws IOException
res
- responsersp
- requestconfigId
- the id of the config to be removed
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |