@Extension public final class ValidationDescriptor extends StackOpDescriptor<hudson.tasks.Builder>
Validator
. Used as a singleton.
The class is marked as public so that it can be accessed from views.
See src/main/resources/com/cloudsmith/hammer/jenkins/validation/Validator/*.jelly for the actual HTML fragment for the configuration screen.
Constructor and Description |
---|
ValidationDescriptor() |
Modifier and Type | Method and Description |
---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData) |
hudson.util.FormValidation |
doCheckMaxTime(String value)
Performs on-the-fly validation of the form field 'maxTime'.
|
hudson.util.FormValidation |
doCheckPollInterval(String value)
Performs on-the-fly validation of the form field 'pollInterval'.
|
hudson.util.FormValidation |
doCheckServerURL(String value)
Performs on-the-fly validation of the form field 'serviceURL'.
|
String |
getDisplayName()
This human readable name is used in the configuration screen.
|
Integer |
getMaxTime()
This method returns the max time from the global configuration
|
Integer |
getPollInterval()
This method returns the poll interval from the global configuration
|
String |
getServiceURL()
This method returns the serviceURL of the global configuration.
|
doCheckStack, getParameter, isApplicable
calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, getCheckUrl, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getPropertyType, getPropertyType, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, toArray, toList, toMap
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) throws hudson.model.Descriptor.FormException
configure
in class hudson.model.Descriptor<hudson.tasks.Builder>
hudson.model.Descriptor.FormException
public hudson.util.FormValidation doCheckMaxTime(@QueryParameter String value) throws IOException, javax.servlet.ServletException
value
- This parameter receives the value that the user has typed.IOException
javax.servlet.ServletException
public hudson.util.FormValidation doCheckPollInterval(@QueryParameter String value) throws IOException, javax.servlet.ServletException
value
- This parameter receives the value that the user has typed.IOException
javax.servlet.ServletException
public hudson.util.FormValidation doCheckServerURL(@QueryParameter String value) throws IOException, javax.servlet.ServletException
value
- This parameter receives the value that the user has typed.IOException
javax.servlet.ServletException
public String getDisplayName()
getDisplayName
in class hudson.model.Descriptor<hudson.tasks.Builder>
public Integer getMaxTime()
public Integer getPollInterval()
public String getServiceURL()
Copyright © 2004-2012. All Rights Reserved.