org.apache.catalina.servlets

Class InvokerServlet

Implemented Interfaces:
ContainerServlet

public final class InvokerServlet
extends HttpServlet
implements ContainerServlet

The default servlet-invoking servlet for most web applications, used to serve requests to servlets that have not been registered in the web application deployment descriptor.

Version:
$Revision: 1.6 $ $Date: 2004/02/27 14:58:46 $

Author:
Craig R. McClanahan

Method Summary

void
destroy()
Finalize this servlet.
void
doGet(HttpServletRequest request, HttpServletResponse response)
Process a GET request for the specified resource.
void
doHead(HttpServletRequest request, HttpServletResponse response)
Process a HEAD request for the specified resource.
void
doPost(HttpServletRequest request, HttpServletResponse response)
Process a POST request for the specified resource.
Wrapper
getWrapper()
Return the Wrapper with which we are associated.
void
init()
Initialize this servlet.
void
serveRequest(HttpServletRequest request, HttpServletResponse response)
Serve the specified request, creating the corresponding response.
void
setWrapper(Wrapper wrapper)
Set the Wrapper with which we are associated.

Method Details

destroy

public void destroy()
Finalize this servlet.


doGet

public void doGet(HttpServletRequest request,
                  HttpServletResponse response)
            throws IOException,
                   ServletException
Process a GET request for the specified resource.

Parameters:
request - The servlet request we are processing
response - The servlet response we are creating


doHead

public void doHead(HttpServletRequest request,
                   HttpServletResponse response)
            throws IOException,
                   ServletException
Process a HEAD request for the specified resource.

Parameters:
request - The servlet request we are processing
response - The servlet response we are creating


doPost

public void doPost(HttpServletRequest request,
                   HttpServletResponse response)
            throws IOException,
                   ServletException
Process a POST request for the specified resource.

Parameters:
request - The servlet request we are processing
response - The servlet response we are creating


getWrapper

public Wrapper getWrapper()
Return the Wrapper with which we are associated.
Specified by:
getWrapper in interface ContainerServlet


init

public void init()
            throws ServletException
Initialize this servlet.


serveRequest

public void serveRequest(HttpServletRequest request,
                         HttpServletResponse response)
            throws IOException,
                   ServletException
Serve the specified request, creating the corresponding response. After the first time a particular servlet class is requested, it will be served directly (like any registered servlet) because it will have been registered and mapped in our associated Context.

Parameters:
request - The servlet request we are processing
response - The servlet response we are creating


setWrapper

public void setWrapper(Wrapper wrapper)
Set the Wrapper with which we are associated.
Specified by:
setWrapper in interface ContainerServlet

Parameters:
wrapper - The new wrapper


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.