|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.directwebremoting.impl.StartupUtil
public class StartupUtil
Some utilities to help get DWR up and running
| Constructor Summary | |
|---|---|
StartupUtil()
|
|
| Method Summary | |
|---|---|
static ServerContextFactory.ServerContextBuilder |
initServerContext(javax.servlet.ServletConfig servletConfig,
javax.servlet.ServletContext servletContext,
Container container)
Get the ServerContextFactory.ServerContextBuilder out of the
Container, configure it and use it to configure the
ServerContextFactory |
static WebContextFactory.WebContextBuilder |
initWebContext(javax.servlet.ServletConfig servletConfig,
javax.servlet.ServletContext servletContext,
Container container)
Get the WebContextFactory.WebContextBuilder out of the
Container, configure it (call WebContextBuilder#set()) and use it
to configure the WebContextFactory. |
static void |
logStartup(javax.servlet.ServletConfig config)
Some logging so we have a good clue what we are working with. |
void |
outOfContainerDestroy(Container container)
Clean up the current thread when outOfContainerInit() has been
called. |
Container |
outOfContainerInit()
A way to setup DWR outside of any Containers. |
static void |
setupLogging(javax.servlet.ServletConfig servletConfig,
javax.servlet.http.HttpServlet servlet)
We have some special logging classes to maintain an optional dependence on commons-logging. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StartupUtil()
| Method Detail |
|---|
public Container outOfContainerInit()
throws javax.servlet.ServletException
outOfContainerDestroy(Container)
javax.servlet.ServletException - If the setup fails.public void outOfContainerDestroy(Container container)
outOfContainerInit() has been
called.
container - The container created by outOfContainerInit().public static void logStartup(javax.servlet.ServletConfig config)
config - The servlet config
public static WebContextFactory.WebContextBuilder initWebContext(javax.servlet.ServletConfig servletConfig,
javax.servlet.ServletContext servletContext,
Container container)
WebContextFactory.WebContextBuilder out of the
Container, configure it (call WebContextBuilder#set()) and use it
to configure the WebContextFactory.
servletConfig - The servlet configurationservletContext - The servlet contextservlet - The servlet that we are running undercontainer - The container to save in the ServletContext
public static ServerContextFactory.ServerContextBuilder initServerContext(javax.servlet.ServletConfig servletConfig,
javax.servlet.ServletContext servletContext,
Container container)
ServerContextFactory.ServerContextBuilder out of the
Container, configure it and use it to configure the
ServerContextFactory
servletConfig - The servlet configurationservletContext - The servlet contextcontainer - The container to save in the ServletContext
public static void setupLogging(javax.servlet.ServletConfig servletConfig,
javax.servlet.http.HttpServlet servlet)
servletConfig - The servlet configurationservlet - The servlet that we are running under
|
Copyright ¬ 2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||