|
|||||||||
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(ServletConfig servletConfig,
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(ServletConfig servletConfig,
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(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(ServletConfig servletConfig,
HttpServlet servlet)
We have some special logging classes to maintain an optional dependence on commons-logging. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StartupUtil()
Method Detail |
---|
public Container outOfContainerInit() throws ServletException
outOfContainerDestroy(Container)
ServletException
- If the setup fails.public void outOfContainerDestroy(Container container)
outOfContainerInit()
has been
called.
container
- The container created by outOfContainerInit()
.public static void logStartup(ServletConfig config)
config
- The servlet configpublic static WebContextFactory.WebContextBuilder initWebContext(ServletConfig servletConfig, 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(ServletConfig servletConfig, 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(ServletConfig servletConfig, HttpServlet servlet)
servletConfig
- The servlet configurationservlet
- The servlet that we are running under
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |