Class XDownloadService
java.lang.Object
net.sourceforge.jnlp.services.XDownloadService
- All Implemented Interfaces:
DownloadService
The DownloadService JNLP service.
- Version:
- $Revision: 1.7 $
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) JNLPClassLoaderReturns theJNLPClassLoaderof the applicationReturns a listener that will automatically display download progress to the user.booleanisExtensionPartCached(URL ref, String version, String part) Returns whether the part in an extension (specified by the url and version) is cached locally.booleanisExtensionPartCached(URL ref, String version, String[] parts) Returns whether the parts in an extension (specified by the url and version) are cached locally.booleanisPartCached(String part) Returns whether the part of the calling application is cached locally.booleanisPartCached(String[] parts) Returns whether all of the parts of the calling application are cached locally.booleanisResourceCached(URL ref, String version) Returns whether the resource is cached locally.voidloadExtensionPart(URL ref, String version, String[] parts, DownloadServiceListener progress) Downloads the parts of an extension.voidloadExtensionPart(URL ref, String version, String part, DownloadServiceListener progress) Downloads a part of an extension.voidloadPart(String[] parts, DownloadServiceListener progress) Downloads the parts.voidloadPart(String part, DownloadServiceListener progress) Downloads the part.voidloadResource(URL ref, String version, DownloadServiceListener progress) Downloads a resource.voidremoveExtensionPart(URL ref, String version, String part) Notify the system that an extension's part is no longer important to cache.voidremoveExtensionPart(URL ref, String version, String[] parts) Notify the system that an extension's parts are no longer important to cache.voidremovePart(String part) Notifies the system that a part is no longer important to cache.voidremovePart(String[] parts) Notifies the system that the parts is no longer important to cache.voidremoveResource(URL ref, String version) Notifies the system that the resource is no longer important to cache.
-
Constructor Details
-
XDownloadService
XDownloadService()
-
-
Method Details
-
getClassLoader
JNLPClassLoader getClassLoader()Returns theJNLPClassLoaderof the application- Returns:
- the
JNLPClassLoaderof the application
-
getDefaultProgressWindow
Returns a listener that will automatically display download progress to the user.- Specified by:
getDefaultProgressWindowin interfaceDownloadService- Returns:
- always
null
-
isExtensionPartCached
Returns whether the part in an extension (specified by the url and version) is cached locally.- Specified by:
isExtensionPartCachedin interfaceDownloadService
-
isExtensionPartCached
Returns whether the parts in an extension (specified by the url and version) are cached locally.- Specified by:
isExtensionPartCachedin interfaceDownloadService
-
isPartCached
Returns whether the part of the calling application is cached locally. If called by code specified by an extension descriptor, the specified part refers to the extension not the application.- Specified by:
isPartCachedin interfaceDownloadService
-
isPartCached
Returns whether all of the parts of the calling application are cached locally. If called by code in an extension, the part refers the the part of the extension not the application.- Specified by:
isPartCachedin interfaceDownloadService
-
isResourceCached
Returns whether the resource is cached locally. This method only returns true if the resource is specified by the calling application or extension.- Specified by:
isResourceCachedin interfaceDownloadService
-
loadExtensionPart
public void loadExtensionPart(URL ref, String version, String[] parts, DownloadServiceListener progress) throws IOException Downloads the parts of an extension.- Specified by:
loadExtensionPartin interfaceDownloadService- Throws:
IOException
-
loadExtensionPart
public void loadExtensionPart(URL ref, String version, String part, DownloadServiceListener progress) throws IOException Downloads a part of an extension.- Specified by:
loadExtensionPartin interfaceDownloadService- Throws:
IOException
-
loadPart
Downloads the parts.- Specified by:
loadPartin interfaceDownloadService- Throws:
IOException
-
loadPart
Downloads the part.- Specified by:
loadPartin interfaceDownloadService- Throws:
IOException
-
loadResource
public void loadResource(URL ref, String version, DownloadServiceListener progress) throws IOException Downloads a resource.- Specified by:
loadResourcein interfaceDownloadService- Throws:
IOException
-
removeExtensionPart
Notify the system that an extension's part is no longer important to cache.- Specified by:
removeExtensionPartin interfaceDownloadService- Throws:
IOException
-
removeExtensionPart
Notify the system that an extension's parts are no longer important to cache.- Specified by:
removeExtensionPartin interfaceDownloadService- Throws:
IOException
-
removePart
Notifies the system that a part is no longer important to cache.- Specified by:
removePartin interfaceDownloadService- Throws:
IOException
-
removePart
Notifies the system that the parts is no longer important to cache.- Specified by:
removePartin interfaceDownloadService- Throws:
IOException
-
removeResource
Notifies the system that the resource is no longer important to cache.- Specified by:
removeResourcein interfaceDownloadService- Throws:
IOException
-