winstone.invoker
Class InvokerServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by winstone.invoker.InvokerServlet
All Implemented Interfaces:
java.io.Serializable, Servlet, ServletConfig

public class InvokerServlet
extends HttpServlet

If a URI matches a servlet class name, mount an instance of that servlet, and try to process the request using that servlet.

Version:
$Id: InvokerServlet.java,v 1.6 2006/03/24 17:24:24 rickknowles Exp $
Author:
Rick Knowles
See Also:
Serialized Form

Constructor Summary
InvokerServlet()
           
 
Method Summary
 void destroy()
          Destroy any mounted instances we might be holding, then destroy myself
protected  void doGet(HttpServletRequest req, HttpServletResponse rsp)
           
protected  void doPost(HttpServletRequest req, HttpServletResponse rsp)
           
protected  ServletConfiguration getInvokableInstance(java.lang.String servletName)
          Get an instance of the servlet configuration object
 void init(ServletConfig config)
          Set up a blank map of servlet configuration instances
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, 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

InvokerServlet

public InvokerServlet()
Method Detail

init

public void init(ServletConfig config)
          throws ServletException
Set up a blank map of servlet configuration instances

Specified by:
init in interface Servlet
Overrides:
init in class GenericServlet
Throws:
ServletException

destroy

public void destroy()
Destroy any mounted instances we might be holding, then destroy myself

Specified by:
destroy in interface Servlet
Overrides:
destroy in class GenericServlet

getInvokableInstance

protected ServletConfiguration getInvokableInstance(java.lang.String servletName)
Get an instance of the servlet configuration object


doGet

protected void doGet(HttpServletRequest req,
                     HttpServletResponse rsp)
              throws ServletException,
                     java.io.IOException
Overrides:
doGet in class HttpServlet
Throws:
ServletException
java.io.IOException

doPost

protected void doPost(HttpServletRequest req,
                      HttpServletResponse rsp)
               throws ServletException,
                      java.io.IOException
Overrides:
doPost in class HttpServlet
Throws:
ServletException
java.io.IOException


Copyright © 2013. All Rights Reserved.