java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.eireneh.bible.view.servlet.BaseServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- Direct Known Subclasses:
- Config1, Config2, Page, Source, Web
- public abstract class BaseServlet
- extends javax.servlet.http.HttpServlet
The base servlet class that makes it easier for other servets and
promotes the use of XML.
Distribution Licence:
Project B is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public License,
version 2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
The License is available on the internet
here, by writing to
Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA, Or locally at the Licence link below.
The copyright to this program is held by it's authors.
|
| Fields inherited from class javax.servlet.http.HttpServlet |
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static com.eireneh.util.Logger log
- The log stream
BaseServlet
public BaseServlet()
getConfig
public static com.eireneh.config.Config getConfig()
- Get the Config class to set up up
init
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException,
javax.servlet.UnavailableException
- Create a Bible to read references from
getServletInfo
public java.lang.String getServletInfo()
- Some basic info about what is going on
generateData
public abstract void generateData(com.eireneh.bible.control.State state,
org.w3c.dom.Node node,
javax.servlet.http.HttpServletRequest request)
throws java.lang.Exception
- Enter elements into an XML Document that can be transformed into
an HTML document using XSL
doGet
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
- Respond to a GET request
doPost
public void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
- Respond to a POST request
debug
private void debug(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
com.eireneh.bible.control.State state,
java.io.PrintWriter out)
throws java.io.IOException
- Debug output to the web page
logAccess
public void logAccess(javax.servlet.http.HttpServletRequest request)
throws java.io.IOException
- Log an access
logError
public void logError(javax.servlet.http.HttpServletRequest request,
java.lang.Throwable ex)
throws java.io.IOException
- Log an error