com.xmlserv.app.documentstore
Class ShowDocument

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

public class ShowDocument
extends javax.servlet.http.HttpServlet

A Servlet to present a XML document stored in the backend DB. Unfinished and not scheduled for completion.

Version:
$Id: ShowDocument.java,v 1.3 2002/04/19 18:14:54 muecke Exp $
Author:
Wolfram Saringer
See Also:
Serialized Form

Constructor Summary
ShowDocument()
           
 
Method Summary
 void destroy()
          Free ressources.
 void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Main processing method.
 void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Redirect to doGet().
 void init()
          Initialize.
 
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

ShowDocument

public ShowDocument()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Initialize. This creates the ConnectionPool.
Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException - In case the ComnnectionPool cannot be created.

doPost

public void doPost(javax.servlet.http.HttpServletRequest req,
                   javax.servlet.http.HttpServletResponse res)
            throws javax.servlet.ServletException,
                   java.io.IOException
Redirect to doGet().
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
Main processing method.
Overrides:
doGet in class javax.servlet.http.HttpServlet
Parameters:
req - The client request.
res - The Response object.
Throws:
javax.servlet.ServletException - Any processing error.
java.io.IOException - I/O error.

destroy

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