@Extension public class JenkinsLocationConfiguration extends GlobalConfiguration
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
ExtensionPoint.LegacyInstancesAreScopedToHudson
clazz
Constructor and Description |
---|
JenkinsLocationConfiguration() |
Modifier and Type | Method and Description |
---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json)
Invoked when the global configuration page is submitted.
|
FormValidation |
doCheckAdminAddress(String value) |
FormValidation |
doCheckUrl(String value)
Checks the URL in global.jelly
|
static JenkinsLocationConfiguration |
get() |
String |
getAdminAddress()
Gets the service administrator e-mail address.
|
String |
getUrl() |
void |
load()
Loads the data from the disk into this object.
|
void |
setAdminAddress(String adminAddress)
Sets the e-mail address of Jenkins administrator.
|
void |
setUrl(String jenkinsUrl) |
all, getCategory, getDescriptor, getGlobalConfigPage
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
@CheckForNull public static JenkinsLocationConfiguration get()
public void load()
Descriptor
The constructor of the derived class must call this method. (If we do that in the base class, the derived class won't get a chance to set default values.)
load
in class Descriptor<GlobalConfiguration>
@Nonnull public String getAdminAddress()
public void setAdminAddress(@CheckForNull String adminAddress)
adminAddress
- Admin address. Use null to reset the value to default.@CheckForNull public String getUrl()
public void setUrl(@CheckForNull String jenkinsUrl)
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) throws Descriptor.FormException
Descriptor
configure
in class Descriptor<GlobalConfiguration>
json
- The JSON object that captures the configuration data for this Descriptor
.
See http://wiki.jenkins-ci.org/display/JENKINS/Structured+Form+SubmissionDescriptor.FormException
public FormValidation doCheckUrl(@QueryParameter String value)
public FormValidation doCheckAdminAddress(@QueryParameter String value)
Copyright © 2018. All rights reserved.