Packages that use NewsEntry
Package
Description
Parser for the I2P news format, which follows Atom with additional metadata for the update notification feature.
Router-side update checking and installation: fetching update notifications, downloading and verifying updates, and staging them for the restart.
Uses of NewsEntry in net.i2p.router.news
Classes in net.i2p.router.news that implement interfaces with type arguments of type NewsEntryModifier and TypeClassDescriptionclassRepresents a single news entry with content and metadata.Fields in net.i2p.router.news with type parameters of type NewsEntryModifier and TypeFieldDescriptionNewsManager._currentNewsThe current news entries.NewsXMLParser._entriesThe news entries parsed from the feed.Methods in net.i2p.router.news that return NewsEntryModifier and TypeMethodDescriptionprivate static NewsEntryThis does not check for any missing values.NewsManager.getInitialNews()The initial (Welcome to I2P) news.Methods in net.i2p.router.news that return types with arguments of type NewsEntryModifier and TypeMethodDescriptionNewsXMLParser.extractNewsEntries(Node feed) This does not check for any missing values.NewsManager.getEntries()Return the current news entries, loading them from disk on first call.NewsXMLParser.getEntries()The news entries.PersistNews.load(I2PAppContext ctx) This does not check for any missing values.NewsManager.parseInitialNews()Reads the news shipped with the router.Used for initialNews.xml and news.xml.NewsManager.parseOldNews()Reads the news saved by a previous run.Methods in net.i2p.router.news with parameters of type NewsEntryModifier and TypeMethodDescriptionintNewest first.static booleanPersistNews.delete(I2PAppContext ctx, NewsEntry entry) Unused for now, as we don't have any way to remember it's deleted.Method parameters in net.i2p.router.news with type arguments of type NewsEntryModifier and TypeMethodDescriptionvoidNewsManager.addEntries(List<NewsEntry> entries) Add or replace each entry in the list.Uses of NewsEntry in net.i2p.router.update
Method parameters in net.i2p.router.update with type arguments of type NewsEntryModifier and TypeMethodDescriptionprivate voidNewsFetcher.outputOldNewsXML(NewsMetadata data, List<NewsEntry> entries, String sudVersion, String signingKeyName, File to) Output in the old format.