tomp.ext.servlet
Class EXTServlet

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--tomp.ext.servlet.EXTServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public abstract class EXTServlet
extends javax.servlet.http.HttpServlet

Abstract class EXTServlet is an extension of the HttpServlet.
It acts as a proxy to the underlying ServletApplication. It initializes the application, dispatches the servlet requests (via service() method) and at the end, calls the destroy() metod.

See Also:
ServletApplication, Serialized Form

Constructor Summary
EXTServlet()
           
 
Method Summary
 void destroy()
          Method destroy() is defined in HttpServlet, here finalizes (via destroy() method) the underlying ServletApplication.
 void init(javax.servlet.ServletConfig config)
          Method init() is defined in HttpServlet, here initializes the underlying ServletApplication.
protected abstract  void initApplication(javax.servlet.http.HttpServlet servlet)
          Every concrete EXTServlet must implement this in order to have initialization routine that creates and initializes the underlying ServletApplication.
 void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
protected  void setApplication(ServletApplication a)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, 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

EXTServlet

public EXTServlet()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Method init() is defined in HttpServlet, here initializes the underlying ServletApplication.

Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class javax.servlet.GenericServlet
javax.servlet.ServletException

destroy

public void destroy()
Method destroy() is defined in HttpServlet, here finalizes (via destroy() method) the underlying ServletApplication.

Specified by:
destroy in interface javax.servlet.Servlet
Overrides:
destroy in class javax.servlet.GenericServlet

service

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

setApplication

protected void setApplication(ServletApplication a)

initApplication

protected abstract void initApplication(javax.servlet.http.HttpServlet servlet)
                                 throws EXTException
Every concrete EXTServlet must implement this in order to have initialization routine that creates and initializes the underlying ServletApplication.

Parameters:
servlet - a HttpServlet that might be useful when creating and initializing the underlying ServletApplication.
EXTException