com.xmlserv.main
Class XMLServ

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--com.xmlserv.main.XMLServ
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class XMLServ
extends javax.servlet.http.HttpServlet

The main class of this framework. This handles the client communication, calls Backend methods and processes XML output applying the appropriate stylesheet.
Much of the work is delegated to helper classes:

JAXP API is used for XSL Transformations.

Version:
$Id: XMLServ.java,v 1.36 2002/12/18 20:44:32 muecke Exp $
Author:
Wolfram Saringer
See Also:
BackendRepository, BackendHandle, SecurityManager, Serialized Form

Constructor Summary
XMLServ()
           
 
Method Summary
 void destroy()
          Free Resources.
 void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
 void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          doPost redirects to doGet, making both methods equivalent.
protected  javax.xml.transform.Source errorPage(java.lang.String msg)
           
 void init()
          Servlet initialization: Load and process config.xml, creating a BackendRepository.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, 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
 

Constructor Detail

XMLServ

public XMLServ()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Servlet initialization: Load and process config.xml, creating a BackendRepository.
Overrides:
init in class javax.servlet.GenericServlet

doPost

public void doPost(javax.servlet.http.HttpServletRequest req,
                   javax.servlet.http.HttpServletResponse res)
            throws javax.servlet.ServletException,
                   java.io.IOException
doPost redirects to doGet, making both methods equivalent.
Overrides:
doPost in class javax.servlet.http.HttpServlet

doGet

public void doGet(javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse res)
           throws javax.servlet.ServletException,
                  java.io.IOException
Overrides:
doGet in class javax.servlet.http.HttpServlet

destroy

public void destroy()
Free Resources.
Overrides:
destroy in class javax.servlet.GenericServlet

errorPage

protected javax.xml.transform.Source errorPage(java.lang.String msg)
                                        throws javax.servlet.ServletException,
                                               java.io.IOException