Class ExtensionDesc
java.lang.Object
net.adoptopenjdk.icedteaweb.jnlp.element.resource.ExtensionDesc
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringeager ext partsstatic final Stringstatic final Stringmap from ext-part to local partprivate JNLPFilethe JNLPFile the extension refers tostatic final Stringprivate final URLthe location of the extension JNLP fileprivate static final Loggerprivate final Stringthe extension namestatic final Stringstatic final Stringprivate final VersionStringThe required version.static final String -
Constructor Summary
ConstructorsConstructorDescriptionExtensionDesc(String name, VersionString version, URL location) Create an extension descriptor. -
Method Summary
-
Field Details
-
LOG
-
EXT_DOWNLOAD_ELEMENT
- See Also:
-
HREF_ATTRIBUTE
- See Also:
-
DOWNLOAD_ATTRIBUTE
- See Also:
-
EXT_PART_ATTRIBUTE
- See Also:
-
NAME_ATTRIBUTE
- See Also:
-
VERSION_ATTRIBUTE
- See Also:
-
PART_ATTRIBUTE
- See Also:
-
name
the extension name -
version
The required version. The version attribute can specify an exact version or a list of versions (version string). See JSR-56, section 6.4 for details. -
location
the location of the extension JNLP file -
extToPart
-
eagerExtParts
-
file
the JNLPFile the extension refers to
-
-
Constructor Details
-
ExtensionDesc
Create an extension descriptor.- Parameters:
name- the extension nameversion- the required version of the JNLP file extensionlocation- the location of the JNLP file extension
-
-
Method Details
-
addPart
Adds an extension part to be downloaded when the specified part of the main JNLP file is loaded. The extension part will be downloaded before the application is launched if the lazy value is false or the part is empty or null.- Parameters:
extPart- the part name in the extension filepart- the part name in the main filelazy- whether to load the part before launching
-
getName
- Returns:
- the name of the extension.
-
getVersion
- Returns:
- the required version of the extension JNLP file.
-
getLocation
- Returns:
- the location of the extension JNLP file.
-
resolve
Resolves the extension by creating a JNLPFile from the file specified by the extension's location property.- Throws:
IOException- if the extension JNLPFile could not be resolved.ParseException- if the extension JNLPFile could not be parsed or was not a component or installer descriptor.
-
getJNLPFile
- Returns:
- a JNLPFile for the extension, or null if the JNLP file has not been resolved.
-