java - 我的应用程序需要 JavaWS 缓存文件列表

标签 java caching download java-web-start

我们有一个使用 JavaWS 启动的应用程序。我知道 JNLP 内容中列出的 JAR 存储在客户端部署缓存中。有没有办法让我的应用程序获取用于启动它的实际缓存文件的列表?

我打印出了类路径:c:\Program Files (x86)\java\jre7\lib\deploy.jar

我使用 Java VisualVM 检查应用程序的属性,但没有发现任何乐趣。

最佳答案

Is there a way for my application to get the list of the actual cache files used to launch it?

当然。使用 JNLP API 的 DownloadService可以提供。

DownloadService service allows an application to control how its own resources are cached, to determine which of its resources are currently cached, to force resources to be cached, and to remove resources from the cache. The JNLP Client is responsible for providing a specific implementation of this service.

关于java - 我的应用程序需要 JavaWS 缓存文件列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22366857/

相关文章:

java - 基于微服务的架构和每个节点的单独缓存

C++ Winsock 下载文件切断 HTTP header

php - 有没有办法确保人们无法访问页面,除非他们已经用 php 完成了 paypal 表单?

iphone - 如何在iO中将下载的文件另存为只读

Java 包 - 引用来自不同包的类

java - docx4j html 带列表导出

java - 为什么我的程序读取的内容比实际少一行?为什么我的数组只接收一个?

java - 将原始 XmlElement 从 WCF 传递到 Apache CXF 客户端 (basicHttpBinding)

mysql - 如何查看哪些缓存功能已打开? [PHP/MYSQL]

java - 如果在 springboot 的结果中合并/组合,缓存方法(使用咖啡因)是否可能返回部分响应?