com.caucho.jsp
Class JspServlet
java.lang.Object
|
+--javax.servlet.GenericServlet
|
+--com.caucho.jsp.QServlet
|
+--com.caucho.jsp.JspServlet
- All Implemented Interfaces:
- java.io.Serializable, Servlet, ServletConfig
- public class JspServlet
- extends com.caucho.jsp.QServlet
Handles JSP pages. Most of the work is done in the JspManager and QServlet.
- See Also:
JspManager
, Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
application
protected CauchoApplication application
JspServlet
public JspServlet()
init
public void init(ServletConfig conf)
throws ServletException
- Initializes the servlet. Primarily, this sets the PageManager to the
correct JspManager.
- Overrides:
init
in class com.caucho.jsp.QServlet
- Following copied from class:
javax.servlet.GenericServlet
- Parameters:
config
- the servlet's configuration
getServletInfo
public java.lang.String getServletInfo()
- Description copied from class:
GenericServlet
- Returns a string describing the servlet.
- Overrides:
getServletInfo
in class GenericServlet
setManager
protected void setManager(PageManager manager)
- JspServlet and XtpServlet will set the PageManager with this method.
getServletContext
public ServletContext getServletContext()
- Override the Servlet method to return the generated application.
- Overrides:
getServletContext
in class GenericServlet
service
public void service(ServletRequest req,
ServletResponse res)
throws ServletException,
java.io.IOException
- The service method gets the JSP/XTP page and executes it. The
request and response objects are converted to Caucho objects so
other servlet runners will produce the same results as the Caucho
servlet runner.
- Following copied from interface:
javax.servlet.Servlet
- Parameters:
req
- request information. Normally servlets will cast this
to HttpServletRequest
res
- response information. Normally servlets will cast this
to HttpServletRequest
destroy
public void destroy()
- Description copied from class:
GenericServlet
- Called when the servlet (and the application) shuts down.
- Overrides:
destroy
in class GenericServlet