Package net.sourceforge.jnlp
Class ExtensionDesc
java.lang.Object
net.sourceforge.jnlp.ExtensionDesc
The extension element.
-
Constructor Summary
ConstructorsConstructorDescriptionExtensionDesc
(String name, Version version, URL location) Create an extention descriptor. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Adds an extension part to be downloaded when the specified part of the main JNLP file is loaded.String[]
getExtensionParts
(String thisPart) getName()
void
resolve()
Resolves the extension by creating a JNLPFile from the file specified by the extension's location property.
-
Constructor Details
-
ExtensionDesc
Create an extention descriptor.- Parameters:
name
- the extension nameversion
- the required version of the extention JNLPFilelocation
- the location of the extention JNLP file
-
-
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
-
getExtensionParts
- Parameters:
thisPart
- unimplemented- Returns:
- the parts in the extension JNLP file mapped to the part of the main file.
-
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.
-