|
IcedTea-Web NetX |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jnlp.runtime.ManageJnlpResources
public class ManageJnlpResources
Constructor Summary | |
---|---|
ManageJnlpResources()
|
Method Summary | |
---|---|
static void |
downloadJars(JNLPClassLoader classLoader,
java.net.URL ref,
java.lang.String part,
Version version)
Downloads jars identified by part name. |
static JARDesc[] |
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 boolean |
isExternalResourceCached(JNLPClassLoader rootClassLoader,
java.net.URL ref,
java.lang.String version)
Returns true if the resource (not mentioned in the jnlp file) is cached, otherwise false Used by DownloadService. |
static void |
loadExternalResouceToCache(JNLPClassLoader rootClassLoader,
java.net.URL ref,
java.lang.String version)
Downloads and initializes resources which are not mentioned in the jnlp file. |
static void |
removeCachedJars(JNLPClassLoader classLoader,
java.net.URL ref,
JARDesc[] jars)
Removes jars from cache. |
static void |
removeExternalCachedResource(JNLPClassLoader rootClassLoader,
java.net.URL ref,
java.lang.String version)
Removes resource which are not mentioned in the jnlp file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ManageJnlpResources()
Method Detail |
---|
public static JARDesc[] findJars(JNLPClassLoader rootClassLoader, java.net.URL ref, java.lang.String part, Version version)
rootClassLoader
- Root JNLPClassLoader of the application.ref
- Path of the launch or extension JNLP File containing the
resource. If null, main JNLP's file location will be used instead.part
- The name of the part.
public static void removeCachedJars(JNLPClassLoader classLoader, java.net.URL ref, JARDesc[] jars)
classLoader
- JNLPClassLoader of the application that is associated to the resource.ref
- Path of the launch or extension JNLP File containing the
resource. If null, main JNLP's file location will be used instead.jars
- Jars marked for removal.public static void downloadJars(JNLPClassLoader classLoader, java.net.URL ref, java.lang.String part, Version version)
classLoader
- JNLPClassLoader of the application that is associated to the resource.ref
- Path of the launch or extension JNLP File containing the
resource. If null, main JNLP's file location will be used instead.part
- The name of the path.public static void loadExternalResouceToCache(JNLPClassLoader rootClassLoader, java.net.URL ref, java.lang.String version)
rootClassLoader
- Root JNLPClassLoader of the application.ref
- Path to the resource.version
- The version of resource. If null, no version is specified.public static void removeExternalCachedResource(JNLPClassLoader rootClassLoader, java.net.URL ref, java.lang.String version)
rootClassLoader
- Root JNLPClassLoader of the application.ref
- Path to the resource.version
- The version of resource. If null, no version is specified.public static boolean isExternalResourceCached(JNLPClassLoader rootClassLoader, java.net.URL ref, java.lang.String version)
rootClassLoader
- Root JNLPClassLoader of the application.ref
- Path to the resource.version
- The version of resource. If null, no version is specified.
|
IcedTea-Web NetX |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |