de.pannenleiter.servlet
Class EngineBase

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--de.pannenleiter.servlet.EngineBase
Direct Known Subclasses:
Engine, Engine

public abstract class EngineBase
extends javax.servlet.http.HttpServlet
implements org.xml.sax.ErrorHandler

EngineBase -- the base class of a rmdms servlet

See Also:
Serialized Form

Field Summary
protected static org.xml.sax.AttributeList emptyAttributes
           
protected  int servedPages
           
protected  Store store
           
protected  long sumRuntime
           
 
Constructor Summary
EngineBase()
           
 
Method Summary
protected  void addPIPseudoAttributes(java.lang.String data, java.util.Hashtable attributes)
           
 void copyService(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void error(org.xml.sax.SAXParseException e)
           
 void fatalError(org.xml.sax.SAXParseException e)
           
protected  java.lang.String getLine(java.io.Reader r)
           
protected  java.util.Hashtable getStylesheet(java.io.Reader r, java.lang.String basename)
           
static void htmlError(javax.servlet.ServletResponse response, java.lang.Throwable t)
           
 void init(javax.servlet.ServletConfig config)
           
 void rawService(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, LogSink log, boolean readwrite)
           
 void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          This method is called by the servlet engine to handle the request.
protected  void showStatus(java.io.PrintWriter out, javax.servlet.http.HttpServletRequest request)
           
 void warning(org.xml.sax.SAXParseException e)
           
static void wmlError(javax.servlet.ServletResponse response, java.lang.Throwable t)
           
static void xmlError(javax.servlet.ServletResponse response, java.lang.Throwable t)
           
abstract  void xslService(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, LogSink trace, java.lang.String basename, java.lang.String stylesheet)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

emptyAttributes

protected static org.xml.sax.AttributeList emptyAttributes

servedPages

protected int servedPages

sumRuntime

protected long sumRuntime

store

protected Store store
Constructor Detail

EngineBase

public EngineBase()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Overrides:
init in class javax.servlet.GenericServlet

service

public void service(javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpServletResponse response)
             throws javax.servlet.ServletException,
                    java.io.IOException
This method is called by the servlet engine to handle the request.
Overrides:
service in class javax.servlet.http.HttpServlet

rawService

public void rawService(javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response,
                       LogSink log,
                       boolean readwrite)
                throws java.lang.Exception

xslService

public abstract void xslService(javax.servlet.http.HttpServletRequest request,
                                javax.servlet.http.HttpServletResponse response,
                                LogSink trace,
                                java.lang.String basename,
                                java.lang.String stylesheet)
                         throws java.lang.Exception

copyService

public void copyService(javax.servlet.http.HttpServletRequest request,
                        javax.servlet.http.HttpServletResponse response)
                 throws java.lang.Exception

warning

public void warning(org.xml.sax.SAXParseException e)
Specified by:
warning in interface org.xml.sax.ErrorHandler

error

public void error(org.xml.sax.SAXParseException e)
Specified by:
error in interface org.xml.sax.ErrorHandler

fatalError

public void fatalError(org.xml.sax.SAXParseException e)
                throws org.xml.sax.SAXException
Specified by:
fatalError in interface org.xml.sax.ErrorHandler

htmlError

public static void htmlError(javax.servlet.ServletResponse response,
                             java.lang.Throwable t)

xmlError

public static void xmlError(javax.servlet.ServletResponse response,
                            java.lang.Throwable t)

wmlError

public static void wmlError(javax.servlet.ServletResponse response,
                            java.lang.Throwable t)

showStatus

protected void showStatus(java.io.PrintWriter out,
                          javax.servlet.http.HttpServletRequest request)
                   throws java.io.IOException

getStylesheet

protected java.util.Hashtable getStylesheet(java.io.Reader r,
                                            java.lang.String basename)
                                     throws java.io.IOException

addPIPseudoAttributes

protected void addPIPseudoAttributes(java.lang.String data,
                                     java.util.Hashtable attributes)

getLine

protected java.lang.String getLine(java.io.Reader r)
                            throws java.io.IOException