|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.i2p.router.web.RouterConsoleRunner
public class RouterConsoleRunner
Start the router console.
| Nested Class Summary | |
|---|---|
(package private) static class |
RouterConsoleRunner.WarFilenameFilter
|
| Field Summary | |
|---|---|
static int |
DEFAULT_LISTEN_PORT
|
static String |
ENABLED
|
static String |
JETTY_REALM
|
static String |
PREFIX
|
static String |
PROP_CONSOLE_PW
|
static String |
PROP_PW_ENABLE
|
static String |
ROUTERCONSOLE
|
| Constructor Summary | |
|---|---|
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/ |
|
| Method Summary | |
|---|---|
(package private) static Server |
getConsoleServer()
SInce _server is now static |
String |
getDisplayName()
The dislplay 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,
org.mortbay.jetty.webapp.WebAppContext context)
Set up basic security constraints for the webapp. |
static void |
main(String[] args)
|
void |
shutdown(String[] args)
Do not take a long time. |
void |
startConsole()
http://irc.codehaus.org/display/JETTY/Porting+to+jetty6 |
void |
startup()
Do not take a long time. |
static void |
storeWebAppProperties(RouterContext ctx,
Properties props)
|
static Properties |
webAppProperties(I2PAppContext ctx)
|
static Properties |
webAppProperties(String dir)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String JETTY_REALM
public static final String PROP_CONSOLE_PW
public static final String PROP_PW_ENABLE
public static final String ROUTERCONSOLE
public static final String PREFIX
public static final String ENABLED
public static final int DEFAULT_LISTEN_PORT
| Constructor Detail |
|---|
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.1| Method Detail |
|---|
public static void main(String[] args)
public void startup()
ClientApp
startup in interface ClientApppublic void shutdown(String[] args)
ClientApp
shutdown in interface ClientApppublic ClientAppState getState()
ClientApp
getState in interface ClientApppublic String getName()
ClientApp
getName in interface ClientApppublic String getDisplayName()
ClientApp
getDisplayName in interface ClientAppstatic Server getConsoleServer()
public void startConsole()
Server
HandlerCollection
ContextHandlerCollection
WebAppContext (i.e. ContextHandler)
SessionHandler
SecurityHandler
ServletHandler
servlets...
WebAppContext
...
DefaultHandler
RequestLogHandler (opt)
static void initialize(RouterContext ctx,
org.mortbay.jetty.webapp.WebAppContext context)
public static Properties webAppProperties(I2PAppContext ctx)
public static Properties webAppProperties(String dir)
public static void storeWebAppProperties(RouterContext ctx,
Properties props)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||