org.apache.catalina.servlets

Class InvokerServlet

public final class InvokerServlet extends HttpServlet implements ContainerServlet

Deprecated: Servlets should be explicitly mapped in web.xml

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: 717908 $ $Date: 2008-11-15 19:30:48 +0100 (Sat, 15 Nov 2008) $

Author: Craig R. McClanahan

Method Summary
voiddestroy()
Finalize this servlet.
voiddoGet(HttpServletRequest request, HttpServletResponse response)
Process a GET request for the specified resource.
voiddoHead(HttpServletRequest request, HttpServletResponse response)
Process a HEAD request for the specified resource.
voiddoPost(HttpServletRequest request, HttpServletResponse response)
Process a POST request for the specified resource.
WrappergetWrapper()
Return the Wrapper with which we are associated.
voidinit()
Initialize this servlet.
voidserveRequest(HttpServletRequest request, HttpServletResponse response)
Serve the specified request, creating the corresponding response.
voidsetWrapper(Wrapper wrapper)
Set the Wrapper with which we are associated.

Method Detail

destroy

public void destroy()
Finalize this servlet.

doGet

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

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

Throws: IOException if an input/output error occurs ServletException if a servlet-specified error occurs

doHead

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

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

Throws: IOException if an input/output error occurs ServletException if a servlet-specified error occurs

doPost

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

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

Throws: IOException if an input/output error occurs ServletException if a servlet-specified error occurs

getWrapper

public Wrapper getWrapper()
Return the Wrapper with which we are associated.

init

public void init()
Initialize this servlet.

serveRequest

public void serveRequest(HttpServletRequest request, HttpServletResponse response)
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

Throws: IOException if an input/output error occurs ServletException if a servlet-specified error occurs

setWrapper

public void setWrapper(Wrapper wrapper)
Set the Wrapper with which we are associated.

Parameters: wrapper The new wrapper

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.