Tynamo™-TINI
v1.0.4

com.qindesign.servlet
Class LoaderServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.qindesign.servlet.LoaderServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class LoaderServlet
extends HttpServlet

Servlet that loads and services other servlets. Effectively, this provides a context.

When adding this servlet to the servlet configuration file, remember to append "/*" to the mapping. It ensures that any servlet loaded by this loader servlet will receive its "Path Info". Please consult the Servlet 2.2 specification for further details.

Version:
1.0.4
Author:
Shawn Silverman
See Also:
init(), Serialized Form

Constructor Summary
LoaderServlet()
           
 
Method Summary
protected  void doGet(HttpServletRequest req, HttpServletResponse resp)
          Process a GET request.
protected  void doPost(HttpServletRequest req, HttpServletResponse resp)
          Process a POST request.
 void init()
          Checks the "classpath" initialization parameter.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, 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

LoaderServlet

public LoaderServlet()
Method Detail

init

public void init()
          throws ServletException
Checks the "classpath" initialization parameter. This servlet will search this classpath for requested servlets.

Overrides:
init in class GenericServlet
Throws:
ServletException

doPost

protected void doPost(HttpServletRequest req,
                      HttpServletResponse resp)
               throws ServletException,
                      IOException
Process a POST request. This calls the doGet method.

Overrides:
doPost in class HttpServlet
Throws:
ServletException
IOException

doGet

protected void doGet(HttpServletRequest req,
                     HttpServletResponse resp)
              throws ServletException,
                     IOException
Process a GET request. Loads, services, and then destroys the requested servlet.

Overrides:
doGet in class HttpServlet
Throws:
ServletException
IOException

Tynamo™-TINI
v1.0.4

© 2001-2007 Shawn Silverman