Package hudson.tools
Class DownloadFromUrlInstaller.DescriptorImpl<T extends DownloadFromUrlInstaller>
- java.lang.Object
-
- hudson.model.Descriptor<ToolInstaller>
-
- hudson.tools.ToolInstallerDescriptor<T>
-
- hudson.tools.DownloadFromUrlInstaller.DescriptorImpl<T>
-
- Direct Known Subclasses:
Maven.MavenInstaller.DescriptorImpl
- Enclosing class:
- DownloadFromUrlInstaller
public abstract static class DownloadFromUrlInstaller.DescriptorImpl<T extends DownloadFromUrlInstaller> extends ToolInstallerDescriptor<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
-
Field Summary
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DescriptorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DownloadService.Downloadable
createDownloadable()
function that creates aDownloadService.Downloadable
.String
getId()
This ID needs to be unique, and needs to match the ID token in the JSON update file.List<? extends DownloadFromUrlInstaller.Installable>
getInstallables()
List of installable tools.-
Methods inherited from class hudson.tools.ToolInstallerDescriptor
all, doAutoCompleteLabel, doCheckLabel, for_, isApplicable
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
createDownloadable
public DownloadService.Downloadable createDownloadable()
function that creates aDownloadService.Downloadable
.- Returns:
- a downloadable object
-
getId
public String getId()
This ID needs to be unique, and needs to match the ID token in the JSON update file.By default we use the fully-qualified class name of the
DownloadFromUrlInstaller
subtype.- Overrides:
getId
in classDescriptor<ToolInstaller>
- Returns:
- Stick to valid Java identifier character, plus '.', which had to be allowed for historical reasons.
-
getInstallables
public List<? extends DownloadFromUrlInstaller.Installable> getInstallables() throws IOException
List of installable tools.The UI uses this information to populate the drop-down. Subtypes can override this method if it wants to change the way the list is filled.
- Returns:
- never null.
- Throws:
IOException
-
-