com.jcorporate.expresso.core.servlet
Class RuntimeInitServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.jcorporate.expresso.core.servlet.RuntimeInitServlet
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
- public class RuntimeInitServlet
- extends HttpServlet
This is an initialization servlet that provides a running example on how
to load an Expresso runtime system
- Since:
- Expresso 5.1
- Author:
- Michael Rimov
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RuntimeInitServlet
public RuntimeInitServlet()
init
public void init(ServletConfig sc)
throws ServletException
- Initialize the Expresso runtime system.
- Parameters:
sc - The ServletConfig. The Servlet config in web.xml needs to
have 3 parameters set: loggingDirectory, expressoConfig, and loggingConfig.
- Throws:
ServletException - upon instantiation error
initializeSystemMacros
public void initializeSystemMacros(ServletConfig c)
- Initialize System Macros Object with things like webapp, and Context.
We can't set ServerPrefix until an actual server request is initiated.
- Parameters:
c - The ServletConfiguration system.
destroy
public void destroy()
- Destroys the servlet and the Global Expresso runtime container.
Please see www.jcorporate.com for information about new Expresso releases.