net.commerce.zocalo.service
Class ServletUtil
java.lang.Object
net.commerce.zocalo.service.ServerUtil
net.commerce.zocalo.service.ServletUtil
- Direct Known Subclasses:
- CometServer, ConfigManager
public abstract class ServletUtil
- extends ServerUtil
utility functionality for webservers based on servlets. Particularly notice that the servletLock is
used to ensure that the market code is non-reentrant.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
servletLock
public static final java.lang.Object servletLock
ServletUtil
public ServletUtil()
initialLogContext
protected void initialLogContext()
createServerWithListener
protected static org.mortbay.jetty.Server createServerWithListener(java.lang.String serverPort)
addServlet
protected static void addServlet(org.mortbay.jetty.servlet.ServletHandler handler,
java.lang.String servletName)
initializeHandlers
protected void initializeHandlers(boolean installCGI)
addResourceHandler
protected org.mortbay.jetty.handler.ResourceHandler addResourceHandler(org.mortbay.jetty.handler.HandlerCollection handlers,
java.lang.String path,
java.lang.String base)
addContextHandlers
public void addContextHandlers(boolean installCGI)
addExtraResourceHandlers
protected void addExtraResourceHandlers(org.mortbay.jetty.handler.ContextHandlerCollection handlers)
addServlets
public abstract void addServlets(org.mortbay.jetty.servlet.Context context)
initializeServerTopLevel
protected void initializeServerTopLevel(java.lang.String serverPort)
initializeServerTopLevelWithCGI
protected void initializeServerTopLevelWithCGI(java.lang.String serverPort)
initializeServerTopLevel
protected void initializeServerTopLevel(java.lang.String serverPort,
boolean installCGI)
runJettyServer
protected static void runJettyServer(ServletUtil server)
throws java.lang.Exception
- Throws:
java.lang.Exception
finishInitialization
public void finishInitialization()
join
protected void join()
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
start
protected void start()
throws java.lang.Exception
- Throws:
java.lang.Exception