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, wait
getServletInfo
protected WebApp _webApp
public void init(ServletConfig config) throws ServletException
init
in interface Servlet
config
- information from the configuration file.ServletException
protected void setManager(PageManager manager)
protected PageManager getManager()
public ServletContext getServletContext()
public ServletConfig getServletConfig()
getServletConfig
in interface Servlet
public java.lang.String getInitParameter(java.lang.String name)
public void service(ServletRequest req, ServletResponse res) throws ServletException, java.io.IOException
service
in interface Servlet
req
- request information. Normally servlets will cast this
to HttpServletRequest
res
- response information. Normally servlets will cast this
to HttpServletRequest
ServletException
java.io.IOException
public Page getPage(HttpServletRequest request, HttpServletResponse response) throws java.lang.Exception
request
- the servlet requestresponse
- the servlet responsejava.lang.Exception
public Page getPage(java.lang.String uri, java.lang.String pageURI, ServletConfig config) throws java.lang.Exception
java.lang.Exception
public void killPage(HttpServletRequest request, HttpServletResponse response, Page page)