@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() |
String |
getUrl() |
void |
load()
Loads the data from the disk into this object.
|
void |
setAdminAddress(String adminAddress) |
void |
setUrl(String hudsonUrl) |
all, getCategory, getDescriptor, getDisplayName, getGlobalConfigPage
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, 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
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>
public String getAdminAddress()
public void setAdminAddress(String adminAddress)
public String getUrl()
public void setUrl(String hudsonUrl)
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 © 2016. All rights reserved.