public class WebAppStarter extends Object
Modifier and Type | Field and Description |
---|---|
(package private) static Map<String,String> |
INIT_PARAMS |
Constructor and Description |
---|
WebAppStarter() |
Modifier and Type | Method and 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.
|
(package private) static ContextHandlerCollection |
getConsoleServer()
see comments in ConfigClientsHandler
|
(package private) static ContextHandler |
getWebApp(String appName) |
(package private) static boolean |
isWebAppRunning(String appName) |
(package private) static void |
setWebAppConfiguration(WebAppContext wac) |
(package private) static void |
startWebApp(RouterContext ctx,
ContextHandlerCollection server,
String appName,
String warPath)
Adds and starts.
|
(package private) static void |
stopWebApp(String appName)
Stop it and remove the context.
|
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)
static void stopWebApp(String appName)
static boolean isWebAppRunning(String appName)
static ContextHandler getWebApp(String appName)
static ContextHandlerCollection getConsoleServer()