Expresso 5-6

com.jcorporate.expresso.core.servlet
Class RuntimeInitServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended bycom.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

Constructor Summary
RuntimeInitServlet()
           
 
Method Summary
 void destroy()
          Destroys the servlet and the Global Expresso runtime container.
 void init(ServletConfig sc)
          Initialize the Expresso runtime system.
 void initializeSystemMacros(ServletConfig c)
          Initialize System Macros Object with things like webapp, and Context.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuntimeInitServlet

public RuntimeInitServlet()
Method Detail

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.


Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.