public class ServletContextManager extends Object
TODO Improve this design, this singleton is not nice. Turn it into a service, merge with WarManager, or find a completely different solution.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ServletContextManager.ServletContextWrapper
Wraps a servlet context.
|
| Modifier and Type | Field and Description |
|---|---|
protected static Map<String,ServletContextManager.ServletContextWrapper> |
contextMap
Maps context paths (starting with a "/") to servlet contexts.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addContext(String contextPath,
ServletContextManager.ServletContextWrapper wrapper) |
static void |
removeContext(String contextPath) |
static void |
startContext(String contextPath) |
static void |
stopContext(String contextPath) |
protected static Map<String,ServletContextManager.ServletContextWrapper> contextMap
public static void startContext(String contextPath)
public static void stopContext(String contextPath)
public static void addContext(String contextPath, ServletContextManager.ServletContextWrapper wrapper)
public static void removeContext(String contextPath)
Copyright © 2006–2015 OPS4J - Open Participation Software for Java. All rights reserved.