net.i2p.router.web
Class HomeHelper

java.lang.Object
  extended by net.i2p.router.web.HelperBase
      extended by net.i2p.router.web.HomeHelper

public class HomeHelper
extends HelperBase

For /home and /confighome

Since:
0.9

Nested Class Summary
(package private) static class HomeHelper.App
           
 
Field Summary
(package private) static String DEFAULT_FAVORITES
           
(package private) static String DEFAULT_SERVICES
           
(package private) static String PROP_FAVORITES
           
(package private) static String PROP_OLDHOME
           
(package private) static String PROP_SERVICES
           
 
Fields inherited from class net.i2p.router.web.HelperBase
_context, _out
 
Constructor Summary
HomeHelper()
           
 
Method Summary
(package private) static Collection<HomeHelper.App> buildApps(RouterContext ctx, String config)
           
(package private) static Collection<HomeHelper.App> buildSearchApps(String config)
           
 String getConfigFavorites()
           
 String getConfigHome()
           
 String getConfigSearch()
           
 String getConfigServices()
           
 String getFavorites()
           
 String getProxyStatus()
           
 String getServices()
           
(package private) static void saveApps(RouterContext ctx, String prop, Collection<HomeHelper.App> apps, boolean full)
           
 boolean shouldShowSearch()
           
 boolean shouldShowWelcome()
           
 
Methods inherited from class net.i2p.router.web.HelperBase
_, _, _, _x, ngettext, setContextId, storeWriter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_SERVICES

static final String PROP_SERVICES
See Also:
Constant Field Values

PROP_FAVORITES

static final String PROP_FAVORITES
See Also:
Constant Field Values

PROP_OLDHOME

static final String PROP_OLDHOME
See Also:
Constant Field Values

DEFAULT_SERVICES

static final String DEFAULT_SERVICES

DEFAULT_FAVORITES

static final String DEFAULT_FAVORITES
Constructor Detail

HomeHelper

public HomeHelper()
Method Detail

shouldShowWelcome

public boolean shouldShowWelcome()

shouldShowSearch

public boolean shouldShowSearch()

getServices

public String getServices()

getFavorites

public String getFavorites()

getConfigServices

public String getConfigServices()

getConfigFavorites

public String getConfigFavorites()

getConfigSearch

public String getConfigSearch()

getConfigHome

public String getConfigHome()

getProxyStatus

public String getProxyStatus()

buildApps

static Collection<HomeHelper.App> buildApps(RouterContext ctx,
                                            String config)

buildSearchApps

static Collection<HomeHelper.App> buildSearchApps(String config)

saveApps

static void saveApps(RouterContext ctx,
                     String prop,
                     Collection<HomeHelper.App> apps,
                     boolean full)