@Extension public static final class JDKInstaller.DescriptorImpl extends ToolInstallerDescriptor<JDKInstaller>
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Selfclazz| Constructor and Description |
|---|
DescriptorImpl() |
| Modifier and Type | Method and Description |
|---|---|
FormValidation |
doCheckAcceptLicense(boolean value) |
FormValidation |
doCheckId(String value) |
org.kohsuke.stapler.HttpResponse |
doPostCredential(String username,
String password)
Submits the Oracle account username/password.
|
String |
getDisplayName()
Human readable name of this kind of configurable object.
|
List<JDKInstaller.JDKFamily> |
getInstallableJDKs()
List of installable JDKs.
|
Secret |
getPassword() |
String |
getUsername() |
boolean |
isApplicable(Class<? extends ToolInstallation> toolType)
Controls what kind of
ToolInstallation this installer can be applied to. |
all, for_addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMappublic String getDisplayName()
DescriptorClass.getSimpleName() on Descriptor.clazz, so for example MyThing from some.pkg.MyThing.DescriptorImpl.
Historically some implementations returned null as a way of hiding the descriptor from the UI,
but this is generally managed by an explicit method such as isEnabled or isApplicable.getDisplayName in class Descriptor<ToolInstaller>public boolean isApplicable(Class<? extends ToolInstallation> toolType)
ToolInstallerDescriptorToolInstallation this installer can be applied to.
By default, this method just returns true to everything, claiming it's applicable to any tool installations.
isApplicable in class ToolInstallerDescriptor<JDKInstaller>public String getUsername()
public Secret getPassword()
public FormValidation doCheckId(@QueryParameter String value)
public List<JDKInstaller.JDKFamily> getInstallableJDKs() throws IOException
IOExceptionpublic FormValidation doCheckAcceptLicense(@QueryParameter boolean value)
public org.kohsuke.stapler.HttpResponse doPostCredential(@QueryParameter
String username,
@QueryParameter
String password)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionCopyright © 2019. All rights reserved.