Package com.xhaus.modjy
Class ModjyJServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.xhaus.modjy.ModjyJServlet
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
public class ModjyJServlet
extends javax.servlet.http.HttpServlet
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class javax.servlet.http.HttpServlet
service
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
ModjyJServlet
public ModjyJServlet()
-
-
Method Details
-
init
public void init() throws javax.servlet.ServletExceptionInitialise the modjy servlet. 1. Read the configuration 2. Initialise the jython runtime 3. Setup, in relation to the J2EE servlet environment 4. Create the jython-implemented servlet 5. Initialise the jython-implemented servlet- Overrides:
init
in classjavax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
-
service
public void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException Actually service the incoming request. Simply delegate to the jython servlet.- Parameters:
req
- - The incoming HttpServletRequestresp
- - The outgoing HttpServletResponse- Throws:
javax.servlet.ServletException
IOException
-
destroy
public void destroy()Close down the modjy servlet.- Specified by:
destroy
in interfacejavax.servlet.Servlet
- Overrides:
destroy
in classjavax.servlet.GenericServlet
-