NAME

Wombat::Servlet::InvokerServlet - servlet that invokes other servlets


DESCRIPTION

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.


CONSTRUCTOR

new()
Create and return an instance, initializing fields to default values.


ACCESSOR METHODS

getWrapper()
Return the Wrapper that wraps this Servlet.

setWrapper($wrapper)
Set the Wrapper that wraps this Servlet.

Parameters:

$wrapper
the Wombat::Core::Wrapper that wraps this Servlet


PUBLIC METHODS

doDelete($request, $response)
Process a DELETE request for the specified resource.

Parameters:

$request
the Servlet::Http::HttpServletRequest object that contains the client request

$response
the Servlet::Http::HttpServletResponse object that contains the servlet response

Throws:

Servlet::ServletException
if the request cannot be handled

Servlet::Util::IOException
if an input or output error occurs

doGet($request, $response)
Process a GET request for the specified resource.

Parameters:

$request
the Servlet::Http::HttpServletRequest object that contains the client request

$response
the Servlet::Http::HttpServletResponse object that contains the servlet response

Throws:

Servlet::ServletException
if the request cannot be handled

Servlet::Util::IOException
if an input or output error occurs

doHead($request, $response)
Process a HEAD request for the specified resource.

Parameters:

$request
the Servlet::Http::HttpServletRequest object that contains the client request

$response
the Servlet::Http::HttpServletResponse object that contains the servlet response

Throws:

Servlet::ServletException
if the request cannot be handled

Servlet::Util::IOException
if an input or output error occurs

doPost($request, $response)
Process a POST request for the specified resoruce.

Parameters:

$request
the Servlet::Http::HttpServletRequest object that contains the client request

$response
the Servlet::Http::HttpServletResponse object that contains the servlet response

Throws:

Servlet::ServletException
if the request cannot be handled

Servlet::Util::IOException
if an input or output error occurs

doPut($request, $response)
Process a PUT request for the specified resource.

Parameters:

$request
the Servlet::Http::HttpServletRequest object that contains the client request

$response
the Servlet::Http::HttpServletResponse object that contains the servlet response

Throws:

Servlet::ServletException
if the request cannot be handled

Servlet::Util::IOException
if an input or output error occurs

init([$config])
Called by the servlet container to indicate to a servlet that the servlet is being placed into service.

This implementation stores the config object it receives from the servlet container for later use. When overriding this method, make sure to call

  $self->SUPER::init($config)

Parameters:

$config
the Servlet::ServletConfig object that contains configuration information for this servlet

Throws:

Servlet::ServletException
if an exception occurs that interrupts the servlet's normal operation


SEE ALSO


AUTHOR

Brian Moseley, bcm@maz.org