| Modifier and Type | Field and Description |
|---|---|
static int | DEFAULT_LISTEN_PORTDefault HTTP listen port for the console. |
static String | ENABLEDProperty suffix for webapp enable flags. |
static String | JETTY_REALMRealm name for console authentication. |
static String | PREFIXProperty prefix for webapp enable flags. |
(package private) static String | PROP_ALLOWED_HOSTSProperty name for hosts allowed to access the console. |
static String | PROP_CONSOLE_PWProperty name for the console authentication password. |
static String | PROP_DTG_ENABLEDProperty name for the desktop GUI enable flag. |
static String | PROP_KEY_PASSWORDProperty name for the console SSL key password. |
static String | PROP_KEYSTORE_PASSWORDProperty name for the console keystore password. |
static String | PROP_PW_ENABLEProperty name for enabling console authentication. |
static String | ROUTERCONSOLEName of the root console webapp. |
(package private) static FileFilter | WAR_FILTER |
| Constructor and Description |
|---|
RouterConsoleRunner(RouterContext ctx,
ClientAppManager mgr,
String[] args)non-SSL:
RouterConsoleRunner
RouterConsoleRunner 7657
RouterConsoleRunner 7657 127.0.0.1
RouterConsoleRunner 7657 127.0.0.1,::1
RouterConsoleRunner 7657 127.0.0.1,::1 ./webapps/
SSL:
RouterConsoleRunner -s 7657
RouterConsoleRunner -s 7657 127.0.0.1
RouterConsoleRunner -s 7657 127.0.0.1,::1
RouterConsoleRunner -s 7657 127.0.0.1,::1 ./webapps/
If using both, non-SSL must be first:
RouterConsoleRunner 7657 127.0.0.1 -s 7667
RouterConsoleRunner 7657 127.0.0.1 -s 7667 127.0.0.1
RouterConsoleRunner 7657 127.0.0.1,::1 -s 7667 127.0.0.1,::1
RouterConsoleRunner 7657 127.0.0.1,::1 -s 7667 127.0.0.1,::1 ./webapps/ |
| Modifier and Type | Method and Description |
|---|---|
(package private) Server | getConsoleServer()The Jetty server backing the console. |
(package private) static Server | getConsoleServer(I2PAppContext ctx)To get to Jetty. |
String | getDisplayName()The display name of the ClientApp, used in user interfaces. |
String | getName()The generic name of the ClientApp, used for registration,
e.g. |
ClientAppState | getState()The current state of the ClientApp. |
(package private) static void | initialize(RouterContext ctx,
WebAppContext context)Set up basic security constraints for the webapp. |
(package private) static boolean | isSystrayEnabled(I2PAppContext context)Package private for ConfigServiceHandler |
static String | jettyVersion() |
static void | main(String[] args) |
void | shutdown(String[] args)Do not take a long time. |
void | startConsole()Handler tree: |
void | startup()Do not take a long time. |
static void | storeWebAppProperties(RouterContext ctx,
Properties props)Persist the webapp enable properties to the config directory. |
static Properties | webAppProperties(I2PAppContext ctx)Webapp enable properties from the router config directory. |
static Properties | webAppProperties(String dir)Webapp enable properties from the given directory. |
public static final int DEFAULT_LISTEN_PORT
public static final String ENABLED
public static final String JETTY_REALM
public static final String PREFIX
static final String PROP_ALLOWED_HOSTS
public static final String PROP_CONSOLE_PW
public static final String PROP_DTG_ENABLED
public static final String PROP_KEY_PASSWORD
public static final String PROP_KEYSTORE_PASSWORD
public static final String PROP_PW_ENABLE
public static final String ROUTERCONSOLE
static final FileFilter WAR_FILTER
public RouterConsoleRunner(RouterContext ctx, ClientAppManager mgr, String[] args)
non-SSL: RouterConsoleRunner RouterConsoleRunner 7657 RouterConsoleRunner 7657 127.0.0.1 RouterConsoleRunner 7657 127.0.0.1,::1 RouterConsoleRunner 7657 127.0.0.1,::1 ./webapps/ SSL: RouterConsoleRunner -s 7657 RouterConsoleRunner -s 7657 127.0.0.1 RouterConsoleRunner -s 7657 127.0.0.1,::1 RouterConsoleRunner -s 7657 127.0.0.1,::1 ./webapps/ If using both, non-SSL must be first: RouterConsoleRunner 7657 127.0.0.1 -s 7667 RouterConsoleRunner 7657 127.0.0.1 -s 7667 127.0.0.1 RouterConsoleRunner 7657 127.0.0.1,::1 -s 7667 127.0.0.1,::1 RouterConsoleRunner 7657 127.0.0.1,::1 -s 7667 127.0.0.1,::1 ./webapps/
args - second arg may be a comma-separated list of bind addresses,
for example ::1,127.0.0.1
On XP, the other order (127.0.0.1,::1) fails the IPV6 bind,
because 127.0.0.1 will bind ::1 also. But even though it's bound
to both, we can't connect to [::1]:7657 for some reason.
So the wise choice is ::1,127.0.0.1Server getConsoleServer()
static Server getConsoleServer(I2PAppContext ctx)
public String getDisplayName()
ClientAppgetDisplayName in interface ClientApppublic String getName()
ClientApppublic ClientAppState getState()
ClientAppstatic void initialize(RouterContext ctx, WebAppContext context)
static boolean isSystrayEnabled(I2PAppContext context)
public static String jettyVersion()
public static void main(String[] args)
public void shutdown(String[] args)
ClientApppublic void startConsole()
Server
HandlerCollection
HostCheckHandler
ContextHandlerCollection
LocaleWebAppHandler (routerconsole)
SessionHandler
SecurityHandler
ServletHandler
servlets...
WebAppContext (i2psnark, i2ptunnel, imagegen,
susidns, susimail, and each plugin with a .war)
DefaultHandler
RequestLogHandler (opt)
public void startup()
ClientApppublic static void storeWebAppProperties(RouterContext ctx, Properties props)
public static Properties webAppProperties(I2PAppContext ctx)
public static Properties webAppProperties(String dir)