@Extension
public static final class ThreadFixPublisher.DescriptorImpl
extends hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
ThreadFixPublisher
. Used as a singleton. The class
is marked as public so that it can be accessed from views.
See src/main/resources/hudson/me/automationdomination/plugins/threadfix/ThreadFixPublisher/*.jelly for the actual HTML fragment for the configuration screen.
Constructor and Description |
---|
DescriptorImpl()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest staplerRequest,
net.sf.json.JSONObject formData)
Validate and save configuration parameters
|
hudson.util.FormValidation |
doCheckToken(String token)
Performs on-the-fly validation of the ThreadFix api token parameter
|
hudson.util.FormValidation |
doCheckUrl(String url)
Performs on-the-fly validation of the ThreadFix server URL parameter
|
hudson.util.ListBoxModel |
doFillAppIdItems()
Retrieve the teams and applications to populate the application I
dropdown
|
hudson.util.FormValidation |
doTestConnection(String url,
String token)
Performs an on-the-fly check of the ThreadFix url and api token
parameters by making a simple call to the server and validating
the response code.
|
String |
getDisplayName()
This human readable name is used in the configuration screen.
|
String |
getToken()
Returns the configured ThreadFix API token
|
String |
getUrl()
Returns the configured ThreadFix URL
|
boolean |
isApplicable(Class<? extends hudson.model.AbstractProject> jobType)
Returns true to indicate that this builder can be used with all
project types
|
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
public DescriptorImpl()
public hudson.util.FormValidation doCheckUrl(@QueryParameter String url) throws IOException, javax.servlet.ServletException
url
- IOException
javax.servlet.ServletException
public hudson.util.FormValidation doCheckToken(@QueryParameter String token) throws IOException, javax.servlet.ServletException
token
- IOException
javax.servlet.ServletException
public hudson.util.FormValidation doTestConnection(@QueryParameter String url, @QueryParameter String token) throws IOException, javax.servlet.ServletException
url
- token
- IOException
javax.servlet.ServletException
public boolean isApplicable(Class<? extends hudson.model.AbstractProject> jobType)
isApplicable
in class hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
jobType
- public boolean configure(org.kohsuke.stapler.StaplerRequest staplerRequest, net.sf.json.JSONObject formData) throws hudson.model.Descriptor.FormException
configure
in class hudson.model.Descriptor<hudson.tasks.Publisher>
staplerRequest
- formData
- FormException
hudson.model.Descriptor.FormException
public hudson.util.ListBoxModel doFillAppIdItems()
public String getDisplayName()
getDisplayName
in class hudson.model.Descriptor<hudson.tasks.Publisher>
public String getUrl()
public String getToken()
Copyright © 2014–2017. All rights reserved.