Package net.i2p.router.update
Class NewsHandler
- java.lang.Object
-
- net.i2p.router.update.UpdateHandler
-
- net.i2p.router.update.NewsHandler
-
public class NewsHandler extends UpdateHandler implements Checker
Task to periodically look for updates to the news.xml, and to keep track of whether that has an announcement for a new version. Overrides UpdateRunner for convenience, this is not an Updater- Since:
- 0.9.4 moved from NewsFetcher, public since 0.9.57 for CLI only
-
-
Field Summary
-
Fields inherited from class net.i2p.router.update.UpdateHandler
_context, _mgr
-
-
Constructor Summary
Constructors Constructor Description NewsHandler(RouterContext ctx, ConsoleUpdateManager mgr)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateTask
check(UpdateType type, UpdateMethod method, String id, String currentVersion, long maxTime)
This will check for news or router updates (it does the same thing).static void
main(String[] args)
CLI fetch-
Methods inherited from class net.i2p.router.update.UpdateHandler
update
-
-
-
-
Constructor Detail
-
NewsHandler
public NewsHandler(RouterContext ctx, ConsoleUpdateManager mgr)
-
-
Method Detail
-
check
public UpdateTask check(UpdateType type, UpdateMethod method, String id, String currentVersion, long maxTime)
This will check for news or router updates (it does the same thing). Should not block.
-
main
public static void main(String[] args)
CLI fetch- Since:
- 0.9.57
-
-