org.paneris.melati.site
Class SiteServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.melati.servlet.ConfigServlet
org.melati.servlet.PoemServlet
org.melati.servlet.TemplateServlet
org.paneris.melati.site.SiteServlet
- All Implemented Interfaces:
- Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- Direct Known Subclasses:
- Display
public abstract class SiteServlet
- extends org.melati.servlet.TemplateServlet
- Author:
- timp
- See Also:
- Serialized Form
|
Field Summary |
static boolean |
DEBUG
Turn on placement of debugging info into context |
| Fields inherited from class org.melati.servlet.TemplateServlet |
templateEngine |
| Fields inherited from class org.melati.servlet.ConfigServlet |
melatiConfig, sysAdminEmail, sysAdminName |
| Methods inherited from class org.melati.servlet.TemplateServlet |
addExtension, doPoemRequest, error, init, prePoemSession |
| Methods inherited from class org.melati.servlet.PoemServlet |
_handleException, destroy, getSysAdminEmail, getSysAdminName, handleException, poemContextWithLDB |
| Methods inherited from class org.melati.servlet.ConfigServlet |
doGet, doPost, httpStatusCode, melatiConfig, setSysAdminEmail, setSysAdminName, writeConnectionPendingException, writeError |
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEBUG
public static final boolean DEBUG
- Turn on placement of debugging info into context
- See Also:
- Constant Field Values
SiteServlet
public SiteServlet()
doConfiguredRequest
protected void doConfiguredRequest(org.melati.Melati melati)
throws javax.servlet.ServletException,
IOException
-
- Overrides:
doConfiguredRequest in class org.melati.servlet.PoemServlet
- Throws:
javax.servlet.ServletException
IOException- See Also:
PoemServlet.doConfiguredRequest(org.melati.Melati)
fileAt
protected boolean fileAt(String filename)
doTemplateRequest
protected String doTemplateRequest(org.melati.Melati melati,
org.melati.template.ServletTemplateContext context)
throws Exception
- Concrete method for
TemplateServlet.
- Specified by:
doTemplateRequest in class org.melati.servlet.TemplateServlet
- Parameters:
melati - context -
- Returns:
- Template name
- Throws:
Exception
reallyDoTemplateRequest
protected abstract String reallyDoTemplateRequest(org.melati.Melati melati,
org.melati.template.ServletTemplateContext templateContext)
throws Exception
- Override this method to build up output in individual servlets.
- Returns:
- Template name without path or extension
- Throws:
Exception
getSetting
protected String getSetting(org.melati.Melati melati,
String settingName)
poemContext
protected org.melati.PoemContext poemContext(org.melati.Melati melati)
throws org.melati.servlet.PathInfoException
- Hardcode the db, rather than using Poem's URL specified LDB.
- Overrides:
poemContext in class org.melati.servlet.PoemServlet
- Throws:
org.melati.servlet.PathInfoException- See Also:
org.melati.servlet.ConfigServlet#melatiContext(org.melati.Melati)
getDB_NAME
public String getDB_NAME()
- Returns:
- Returns the dB_NAME.
getSTATIC_ROOT
public String getSTATIC_ROOT()
- Returns:
- the root
Copyright © 1997-2012 PanEris. All Rights Reserved.