public abstract class QServlet extends java.lang.Object implements Servlet
The manager create the compiled JSP and XTP pages. The manager returns a Page object which is actually executed.
JspManager,
XtpManager,
Page| Constructor and Description |
|---|
QServlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Called when the servlet shuts down.
|
java.lang.String |
getInitParameter(java.lang.String name)
Returns the init parameter
|
protected PageManager |
getManager() |
Page |
getPage(HttpServletRequest request,
HttpServletResponse response)
Creates and returns a new page.
|
Page |
getPage(java.lang.String uri,
java.lang.String pageURI,
ServletConfig config) |
ServletConfig |
getServletConfig()
Returns the config.
|
ServletContext |
getServletContext()
Override the Servlet method to return the generated application.
|
void |
init(ServletConfig config)
Initialize the servlet.
|
void |
killPage(HttpServletRequest request,
HttpServletResponse response,
Page page)
Remove the page from any cache.
|
void |
service(ServletRequest req,
ServletResponse res)
The service method gets the JSP/XTP page and executes it.
|
protected void |
setManager(PageManager manager)
JspServlet and XtpServlet will set the PageManager with this method.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetServletInfoprotected WebApp _webApp
public void init(ServletConfig config) throws ServletException
init in interface Servletconfig - information from the configuration file.ServletExceptionprotected void setManager(PageManager manager)
protected PageManager getManager()
public ServletContext getServletContext()
public ServletConfig getServletConfig()
getServletConfig in interface Servletpublic java.lang.String getInitParameter(java.lang.String name)
public void service(ServletRequest req, ServletResponse res) throws ServletException, java.io.IOException
service in interface Servletreq - request information. Normally servlets will cast this
to HttpServletRequestres - response information. Normally servlets will cast this
to HttpServletRequestServletExceptionjava.io.IOExceptionpublic Page getPage(HttpServletRequest request, HttpServletResponse response) throws java.lang.Exception
request - the servlet requestresponse - the servlet responsejava.lang.Exceptionpublic Page getPage(java.lang.String uri, java.lang.String pageURI, ServletConfig config) throws java.lang.Exception
java.lang.Exceptionpublic void killPage(HttpServletRequest request, HttpServletResponse response, Page page)