public class ConvertJobAction extends Object implements hudson.model.Action, hudson.model.Describable<ConvertJobAction>
Modifier and Type | Class and Description |
---|---|
static class |
ConvertJobAction.ActionInjector
Defines visibility level of action to FreeStyle items.
|
static class |
ConvertJobAction.ConvertJobActionDescriptor
Descriptor class to handle form validation.
|
Modifier and Type | Method and Description |
---|---|
void |
doConvert(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Handles submit action of convert button.
|
hudson.model.Descriptor<ConvertJobAction> |
getDescriptor() |
String |
getDisplayName() |
String |
getIconFileName() |
String |
getUrlName() |
public String getIconFileName()
getIconFileName
in interface hudson.model.Action
public String getDisplayName()
getDisplayName
in interface hudson.model.Action
getDisplayName
in interface hudson.model.ModelObject
public String getUrlName()
getUrlName
in interface hudson.model.Action
public void doConvert(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws javax.servlet.ServletException, IOException
request
- StaplerRequest object from the form.response
- StaplerResponse object that re-directs to newly created job.javax.servlet.ServletException
- If a servlet encounters difficulty; servlet exception is thrown.IOException
- If an input or output exception occurred.public hudson.model.Descriptor<ConvertJobAction> getDescriptor()
getDescriptor
in interface hudson.model.Describable<ConvertJobAction>
Copyright © 2016–2017. All rights reserved.