|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.GenericServlet javax.servlet.http.HttpServlet org.melati.servlet.JspServlet
public abstract class JspServlet
This is a TOY and does not represent the proper way to use Melati as Melati was designed with a template engine in mind. To use extend this class.
Constructor Summary | |
---|---|
JspServlet()
|
Method Summary | |
---|---|
protected void |
_jspDestroy()
|
void |
_jspInit()
Do nothing. |
abstract void |
_jspService(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method is overridden by the code generated from the .jsp file. |
void |
destroy()
|
protected MelatiConfig |
getMelatiConfig()
Override this to tailor your configuration. |
protected PoemContext |
getPoemContext()
Override this to supply a PoemContext with at least a database field filled. |
protected PoemContext |
getPoemContext(String logicalDatabase)
|
protected PoemContext |
getPoemContext(String logicalDatabase,
String pathInfo)
|
String |
getServletInfo()
|
void |
init(javax.servlet.ServletConfig config)
Initialise Melati. |
void |
jspDestroy()
|
void |
jspInit()
|
void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Run the generated code within a database session. |
Methods inherited from class javax.servlet.http.HttpServlet |
---|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service |
Methods inherited from class javax.servlet.GenericServlet |
---|
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.Servlet |
---|
getServletConfig, service |
Constructor Detail |
---|
public JspServlet()
Method Detail |
---|
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
config
- a ServletConfig
javax.servlet.ServletException
- is anything goes wrongprotected MelatiConfig getMelatiConfig()
public void jspInit()
jspInit
in interface javax.servlet.jsp.JspPage
JspPage.jspInit()
public void _jspInit()
public String getServletInfo()
getServletInfo
in interface javax.servlet.Servlet
getServletInfo
in class javax.servlet.GenericServlet
Servlet.getServletInfo()
public final void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
Servlet.destroy()
public void jspDestroy()
jspDestroy
in interface javax.servlet.jsp.JspPage
JspPage.jspDestroy()
protected void _jspDestroy()
public abstract void _jspService(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
_jspService
in interface javax.servlet.jsp.HttpJspPage
javax.servlet.ServletException
IOException
HttpJspPage._jspService(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
public final void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException
service
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
HttpServlet.service(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
protected PoemContext getPoemContext()
protected PoemContext getPoemContext() {
return getPoemContext("mydatabase");
}
protected PoemContext getPoemContext(String logicalDatabase)
protected PoemContext getPoemContext(String logicalDatabase, String pathInfo) throws PathInfoException
PathInfoException
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |