Package net.i2p.router.update
Class PluginUpdateHandler
java.lang.Object
net.i2p.router.update.PluginUpdateHandler
Check for or download an updated version of a plugin.
A plugin is a standard .sud file with a 40-byte signature,
a 16-byte version, and a .zip file.
So we get the current version and update URL for the installed plugin,
then fetch the first 56 bytes of the URL, extract the version,
and compare.
Moved from web/ and turned into an Updater.
- Since:
- 0.7.12
- Author:
- zzz
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncheck
(UpdateType type, UpdateMethod method, String appName, String currentVersion, long maxTime) check a single pluginupdate
(UpdateType type, UpdateMethod method, List<URI> updateSources, String appName, String newVersion, long maxTime) download a single plugin
-
Constructor Details
-
PluginUpdateHandler
-
-
Method Details
-
check
public UpdateTask check(UpdateType type, UpdateMethod method, String appName, String currentVersion, long maxTime) check a single plugin -
update
public UpdateTask update(UpdateType type, UpdateMethod method, List<URI> updateSources, String appName, String newVersion, long maxTime) download a single plugin
-