|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.news.NewsManager
public class NewsManager
Manage current news. Keeps current entries in memory, and provide methods to add new entries and store them to disk.
Field Summary | |
---|---|
static String |
APP_NAME
|
Constructor Summary | |
---|---|
NewsManager(I2PAppContext ctx,
ClientAppManager listener,
String[] args)
|
Method Summary | |
---|---|
void |
addEntries(List<NewsEntry> entries)
Add or replace each entry in the list. |
String |
getDisplayName()
The display name of the ClientApp, used in user interfaces. |
List<NewsEntry> |
getEntries()
|
String |
getName()
The generic name of the ClientApp, used for registration, e.g. |
ClientAppState |
getState()
The current state of the ClientApp. |
void |
shutdown(String[] args)
ClientApp interface |
void |
startup()
ClientApp interface |
boolean |
storeEntries(List<Node> entries)
Store each entry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String APP_NAME
Constructor Detail |
---|
public NewsManager(I2PAppContext ctx, ClientAppManager listener, String[] args)
args
- ignoredMethod Detail |
---|
public List<NewsEntry> getEntries()
public boolean storeEntries(List<Node> entries)
entries
- each one should be "entry" at the root
public void addEntries(List<NewsEntry> entries)
public void startup()
startup
in interface ClientApp
public void shutdown(String[] args)
shutdown
in interface ClientApp
args
- ignoredpublic ClientAppState getState()
ClientApp
getState
in interface ClientApp
public String getName()
ClientApp
getName
in interface ClientApp
public String getDisplayName()
ClientApp
getDisplayName
in interface ClientApp
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |