net.i2p.router.web
public class WebAppStarter extends Object
Modifier and Type | Field and Description |
---|---|
(package private) static Map<String,Long> |
warModTimes |
Constructor and Description |
---|
WebAppStarter() |
Modifier and Type | Method and Description |
---|---|
(package private) static WebApplicationContext |
addWebApp(I2PAppContext ctx,
Server server,
String appName,
String warPath,
File tmpdir)
add but don't start
This is used only by RouterConsoleRunner, which adds all the webapps first
and then starts all at once.
|
(package private) static Server |
getConsoleServer()
see comments in ConfigClientsHandler
|
(package private) static boolean |
isWebAppRunning(String appName) |
(package private) static void |
startWebApp(I2PAppContext ctx,
Server server,
String appName,
String warPath)
adds and starts
|
(package private) static void |
stopWebApp(Server server,
String appName)
stop it and remove the context
|
static void startWebApp(I2PAppContext ctx, Server server, String appName, String warPath) throws Exception
just
- about anything, caller would be wise to catch ThrowableException
static WebApplicationContext addWebApp(I2PAppContext ctx, Server server, String appName, String warPath, File tmpdir) throws IOException
IOException
static void stopWebApp(Server server, String appName)
just
- about anything, caller would be wise to catch Throwablestatic boolean isWebAppRunning(String appName)
static Server getConsoleServer()