Package | Description |
---|---|
net.sourceforge.jnlp |
This package contains the classes that represent the parts of a Java Network
Launching Protocol (JNLP) file as objects, and a way to launch a JNLP file
as an application, applet, or installer.
|
net.sourceforge.jnlp.cache |
This package contains the JNLP cache.
|
net.sourceforge.jnlp.runtime |
This package contains the classes that manage the secure runtime environment
for JNLP apps.
|
Modifier and Type | Class and Description |
---|---|
static class |
Version.JreVersion
This is special case of version, used only for checking jre version.
|
Modifier and Type | Field and Description |
---|---|
protected Version |
JNLPFile.fileVersion
file version
|
protected Version |
JNLPFile.specVersion
spec version
|
Modifier and Type | Method and Description |
---|---|
Version |
Parser.getFileVersion()
Returns the file version.
|
Version |
JNLPFile.getFileVersion() |
Version |
Parser.getSpecVersion() |
Version |
JNLPFile.getSpecVersion() |
Version |
ExtensionDesc.getVersion() |
Version |
JARDesc.getVersion() |
Modifier and Type | Method and Description |
---|---|
JNLPFile |
JNLPCreator.create(java.net.URL location,
Version version,
ParserSettings settings,
UpdatePolicy policy,
java.net.URL forceCodebase) |
boolean |
Version.matches(Version version) |
boolean |
Version.matchesAny(Version version) |
static java.io.InputStream |
JNLPFile.openURL(java.net.URL location,
Version version,
UpdatePolicy policy)
Open the jnlp file URL from the cache if there, otherwise
download to the cache.
|
Constructor and Description |
---|
ExtensionDesc(java.lang.String name,
Version version,
java.net.URL location)
Create an extention descriptor.
|
JARDesc(java.net.URL location,
Version version,
java.lang.String part,
boolean lazy,
boolean main,
boolean nativeJar,
boolean cacheable)
Create a JAR descriptor.
|
JNLPFile(java.net.URL location,
java.lang.String uniqueKey,
Version version,
ParserSettings settings,
UpdatePolicy policy)
Create a JNLPFile from a URL, parent URLm a version and checking for
updates using the specified policy.
|
JNLPFile(java.net.URL location,
Version version,
ParserSettings settings)
Create a JNLPFile from a URL and a Version checking for updates using
the default policy.
|
JNLPFile(java.net.URL location,
Version version,
ParserSettings settings,
UpdatePolicy policy)
Create a JNLPFile from a URL and a version, checking for updates
using the specified policy.
|
JNLPFile(java.net.URL location,
Version version,
ParserSettings settings,
UpdatePolicy policy,
java.net.URL forceCodebase)
Create a JNLPFile from a URL and a version, checking for updates
using the specified policy.
|
Modifier and Type | Method and Description |
---|---|
Version |
Resource.getDownloadVersion() |
Version |
Resource.getRequestVersion() |
Modifier and Type | Method and Description |
---|---|
void |
ResourceTracker.addResource(java.net.URL location,
Version version,
DownloadOptions options,
UpdatePolicy updatePolicy)
Add a resource identified by the specified location and
version.
|
static java.io.File |
CacheUtil.getCachedResourceFile(java.net.URL location,
Version version,
UpdatePolicy policy)
This is returning File object of cached resource originally from URL
|
static java.net.URL |
CacheUtil.getCachedResourceURL(java.net.URL location,
Version version,
UpdatePolicy policy)
Caches a resource and returns a URL for it in the cache;
blocks until resource is cached.
|
static java.io.File |
CacheUtil.getCacheFile(java.net.URL source,
Version version)
Returns the file for the locally cached contents of the
source.
|
static java.io.OutputStream |
CacheUtil.getOutputStream(java.net.URL source,
Version version)
Returns a buffered output stream open for writing to the
cache file.
|
static java.security.Permission |
CacheUtil.getReadPermission(java.net.URL location,
Version version)
Returns the Permission object necessary to access the
resource, or
null if no permission is needed. |
static Resource |
Resource.getResource(java.net.URL location,
Version requestVersion,
UpdatePolicy updatePolicy)
Return a shared Resource object representing the given
location and version.
|
static boolean |
CacheUtil.isCacheable(java.net.URL source,
Version version)
Returns whether the resource can be cached as a local file;
if not, then URLConnection.openStream can be used to obtain
the contents.
|
static boolean |
CacheUtil.isCached(java.net.URL source,
Version version)
Returns true if the cache has a local copy of the contents of
the URL matching the specified version string.
|
static boolean |
CacheUtil.isCurrent(java.net.URL source,
Version version,
long lastModifed)
Returns whether there is a version of the URL contents in the
cache and it is up to date.
|
static java.io.File |
CacheUtil.makeNewCacheFile(java.net.URL source,
Version version)
This will create a new entry for the cache item.
|
void |
Resource.setDownloadVersion(Version downloadVersion)
Sets the version downloaded from server
|
Constructor and Description |
---|
CacheEntry(java.net.URL location,
Version version)
Create a CacheEntry for the resources specified as a remote
URL.
|
Modifier and Type | Method and Description |
---|---|
static void |
ManageJnlpResources.downloadJars(JNLPClassLoader classLoader,
java.net.URL ref,
java.lang.String part,
Version version)
Downloads jars identified by part name.
|
static JARDesc[] |
ManageJnlpResources.findJars(JNLPClassLoader rootClassLoader,
java.net.URL ref,
java.lang.String part,
Version version)
Returns jars from the JNLP file with the part name provided.
|
static JNLPClassLoader |
JNLPClassLoader.getInstance(java.net.URL location,
java.lang.String uniqueKey,
Version version,
ParserSettings settings,
UpdatePolicy policy,
java.lang.String mainName,
boolean enableCodeBase)
Returns a JNLP classloader for the JNLP file at the specified location.
|