@Extension @Symbol(value="location") public class JenkinsLocationConfiguration extends GlobalConfiguration
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
ExtensionPoint.LegacyInstancesAreScopedToHudson
clazz
Constructor and Description |
---|
JenkinsLocationConfiguration() |
Modifier and Type | Method and Description |
---|---|
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, configure, getDescriptor, getGlobalConfigPage
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, 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 FormValidation doCheckUrl(@QueryParameter String value)
public FormValidation doCheckAdminAddress(@QueryParameter String value)
Copyright © 2004–2017. All rights reserved.