netx.jnlp
Class ExtensionDesc
public class ExtensionDesc
extends java.lang.Object
The extension element.
protected void | addPart(String extPart, String part, boolean lazy) - Adds an extension part to be downloaded when the specified
part of the main JNLP file is loaded.
|
String[] | getExtensionParts(String thisPart) - Returns the parts in the extension JNLP file mapped to the
part of the main file.
|
JNLPFile | getJNLPFile() - Returns a JNLPFile for the extension, or null if the JNLP
file has not been resolved.
|
URL | getLocation() - Returns the location of the extension JNLP file.
|
String | getName() - Returns the name of the extension.
|
Version | getVersion() - Returns the required version of the extension JNLP file.
|
void | resolve() - Resolves the extension by creating a JNLPFile from the file
specified by the extension's location property.
|
ExtensionDesc
public ExtensionDesc(String name,
Version version,
URL location)
Create an extention descriptor.
name
- the extension nameversion
- the required version of the extention JNLPFilelocation
- the location of the extention JNLP file
addPart
protected void addPart(String extPart,
String part,
boolean lazy)
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.
extPart
- the part name in the extension filepart
- the part name in the main filelazy
- whether to load the part before launching
getExtensionParts
public String[] getExtensionParts(String thisPart)
Returns the parts in the extension JNLP file mapped to the
part of the main file.
getJNLPFile
public JNLPFile getJNLPFile()
Returns a JNLPFile for the extension, or null if the JNLP
file has not been resolved.
getLocation
public URL getLocation()
Returns the location of the extension JNLP file.
getName
public String getName()
Returns the name of the extension.
getVersion
public Version getVersion()
Returns the required version of the extension JNLP file.
resolve
public void resolve()
throws ParseException,
IOException
Resolves the extension by creating a JNLPFile from the file
specified by the extension's location property.
ParseException
- if the extension JNLPFile could not be
parsed or was not a component or installer descriptor.