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 void
destroy()
Close down the modjy servlet.void
init()
Initialise the modjy servlet. 1.void
service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
Actually service the incoming request.
-
-
-
Method Detail
-
init
public void init() throws javax.servlet.ServletException
Initialise 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, java.io.IOException
Actually service the incoming request. Simply delegate to the jython servlet.- Parameters:
req
- - The incoming HttpServletRequestresp
- - The outgoing HttpServletResponse- Throws:
javax.servlet.ServletException
java.io.IOException
-
destroy
public void destroy()
Close down the modjy servlet.- Specified by:
destroy
in interfacejavax.servlet.Servlet
- Overrides:
destroy
in classjavax.servlet.GenericServlet
-
-