Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.eireneh.bible.view.servlet
Class BaseServlet  view BaseServlet download BaseServlet.java

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended bycom.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.


Field Summary
protected static com.eireneh.util.Logger log
          The log stream
 
Fields inherited from class javax.servlet.http.HttpServlet
 
Fields inherited from class javax.servlet.GenericServlet
 
Constructor Summary
BaseServlet()
           
 
Method Summary
private  void debug(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, com.eireneh.bible.control.State state, java.io.PrintWriter out)
          Debug output to the web page
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Respond to a GET request
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Respond to a POST request
abstract  void generateData(com.eireneh.bible.control.State state, org.w3c.dom.Node node, javax.servlet.http.HttpServletRequest request)
          Enter elements into an XML Document that can be transformed into an HTML document using XSL
static com.eireneh.config.Config getConfig()
          Get the Config class to set up up
 java.lang.String getServletInfo()
          Some basic info about what is going on
 void init(javax.servlet.ServletConfig config)
          Create a Bible to read references from
 void logAccess(javax.servlet.http.HttpServletRequest request)
          Log an access
 void logError(javax.servlet.http.HttpServletRequest request, java.lang.Throwable ex)
          Log an error
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, 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
 

Field Detail

log

protected static com.eireneh.util.Logger log
The log stream

Constructor Detail

BaseServlet

public BaseServlet()
Method Detail

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