Package com.xhaus.modjy
Class ModjyJServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- com.xhaus.modjy.ModjyJServlet
-
- All Implemented Interfaces:
java.io.Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class ModjyJServlet extends javax.servlet.http.HttpServlet- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ModjyJServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()Close down the modjy servlet.voidinit()Initialise the modjy servlet. 1.voidservice(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)Actually service the incoming request.
-
-
-
Method Detail
-
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:
initin 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, java.io.IOExceptionActually service the incoming request. Simply delegate to the jython servlet.- Parameters:
req- - The incoming HttpServletRequestresp- - The outgoing HttpServletResponse- Throws:
javax.servlet.ServletExceptionjava.io.IOException
-
destroy
public void destroy()
Close down the modjy servlet.- Specified by:
destroyin interfacejavax.servlet.Servlet- Overrides:
destroyin classjavax.servlet.GenericServlet
-
-