|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.web.WebAppStarter
public class WebAppStarter
Add, start or stop a webapp. Add to the webapp classpath if specified in webapps.config. Sadly, setting Class-Path in MANIFEST.MF doesn't work for jetty wars. See WebAppConfiguration for more information. but let's just do it in webapps.config. No, wac.addClassPath() does not work. For more info see: http://servlets.com/archive/servlet/ReadMsg?msgId=511113&listName=jetty-support
Field Summary | |
---|---|
(package private) static Map |
INIT_PARAMS
|
Constructor Summary | |
---|---|
WebAppStarter()
|
Method Summary | |
---|---|
(package private) static org.mortbay.jetty.webapp.WebAppContext |
addWebApp(RouterContext ctx,
org.mortbay.jetty.handler.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 org.mortbay.jetty.handler.ContextHandlerCollection |
getConsoleServer()
see comments in ConfigClientsHandler |
(package private) static org.mortbay.jetty.handler.ContextHandler |
getWebApp(String appName)
|
(package private) static boolean |
isWebAppRunning(String appName)
|
(package private) static void |
startWebApp(RouterContext ctx,
org.mortbay.jetty.handler.ContextHandlerCollection server,
String appName,
String warPath)
adds and starts |
(package private) static void |
stopWebApp(String appName)
stop it and remove the context |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final Map INIT_PARAMS
Constructor Detail |
---|
public WebAppStarter()
Method Detail |
---|
static void startWebApp(RouterContext ctx, org.mortbay.jetty.handler.ContextHandlerCollection server, String appName, String warPath) throws Exception
just
- about anything, caller would be wise to catch Throwable
Exception
static org.mortbay.jetty.webapp.WebAppContext addWebApp(RouterContext ctx, org.mortbay.jetty.handler.ContextHandlerCollection server, String appName, String warPath, File tmpdir) throws IOException
IOException
static void stopWebApp(String appName)
just
- about anything, caller would be wise to catch Throwablestatic boolean isWebAppRunning(String appName)
static org.mortbay.jetty.handler.ContextHandler getWebApp(String appName)
static org.mortbay.jetty.handler.ContextHandlerCollection getConsoleServer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |