public class WebAppStarter extends Object
Modifier and Type | Field | Description |
---|---|---|
(package private) static Map<String,String> |
INIT_PARAMS |
Constructor | Description |
---|---|
WebAppStarter() |
Modifier and Type | Method | Description |
---|---|---|
(package private) static WebAppContext |
addWebApp(RouterContext ctx,
ContextHandlerCollection 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.
|
static ContextHandlerCollection |
getConsoleServer() |
See comments in ConfigClientsHandler
|
(package private) static ContextHandler |
getWebApp(String appName) |
|
static boolean |
isWebAppRunning(String appName) |
As of 0.9.34, the appName will be registered with the PortMapper,
and PortMapper.isRegistered() will be more efficient than this.
|
(package private) static void |
setWebAppConfiguration(WebAppContext wac) |
|
static void |
startWebApp(RouterContext ctx,
ContextHandlerCollection server,
String appName,
String warPath) |
Adds and starts.
|
static void |
stopWebApp(RouterContext ctx,
String appName) |
Stop it and remove the context.
|
public static void startWebApp(RouterContext ctx, ContextHandlerCollection server, String appName, String warPath) throws Exception
Exception
- just about anything, caller would be wise to catch Throwablestatic WebAppContext addWebApp(RouterContext ctx, ContextHandlerCollection server, String appName, String warPath, File tmpdir) throws IOException
IOException
static void setWebAppConfiguration(WebAppContext wac)
public static void stopWebApp(RouterContext ctx, String appName)
public static boolean isWebAppRunning(String appName)
static ContextHandler getWebApp(String appName)
public static ContextHandlerCollection getConsoleServer()