Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

CompatibleServlet Class Reference

Inheritance diagram for CompatibleServlet:

MethodServlet List of all members.

Public Member Functions

void init ()
void init (ServletConfig config)
ServletConfig getConfig ()

Private Member Functions

void doGet (IServletRequest request, IServletResponse response)
void doHead (IServletRequest request, IServletResponse response)
void doPost (IServletRequest request, IServletResponse response)
void doDelete (IServletRequest request, IServletResponse response)
void doPut (IServletRequest request, IServletResponse response)
void doOptions (IServletRequest request, IServletResponse response)
void doTrace (IServletRequest request, IServletResponse response)
long getLastModified (IServletRequest request)
void get (IServletRequest request, IServletResponse response)
void service (IServletRequest request, IServletResponse response)

Private Attributes

ServletConfig config

Detailed Description

This class is intended to be compatible with a Java GenericServlet. Note that the ServletContext is available from the ServletRequest class, so this error-prone approach of accessing context via the configuration is rendered totally redundant.

Definition at line 319 of file Servlet.d.


Member Function Documentation

void init  ) 
 

Servlet must implement the init() method

Referenced by init().

void init ServletConfig  config  )  [inline]
 

Optional init() with ServletConfig passed to it.

Reimplemented from Servlet.

Definition at line 337 of file Servlet.d.

References init().

ServletConfig getConfig  )  [inline]
 

Return the configuration passed with init()

Definition at line 349 of file Servlet.d.

References config.

void doGet IServletRequest  request,
IServletResponse  response
[inline, inherited]
 

Handle a GET request

Definition at line 151 of file Servlet.d.

References MethodServlet::error().

Referenced by MethodServlet::get(), and testServletEngine().

void doHead IServletRequest  request,
IServletResponse  response
[inline, inherited]
 

Handle a HEAD request

Definition at line 162 of file Servlet.d.

References MethodServlet::error().

Referenced by MethodServlet::service().

void doPost IServletRequest  request,
IServletResponse  response
[inline, inherited]
 

Handle a POST request

Definition at line 173 of file Servlet.d.

References MethodServlet::error().

Referenced by MethodServlet::service().

void doDelete IServletRequest  request,
IServletResponse  response
[inline, inherited]
 

Handle a DELETE request

Definition at line 184 of file Servlet.d.

References MethodServlet::error().

Referenced by MethodServlet::service().

void doPut IServletRequest  request,
IServletResponse  response
[inline, inherited]
 

Handle a PUT request

Definition at line 195 of file Servlet.d.

References MethodServlet::error().

Referenced by MethodServlet::service().

void doOptions IServletRequest  request,
IServletResponse  response
[inline, inherited]
 

Handle an OPTIONS request

Definition at line 206 of file Servlet.d.

References MethodServlet::error().

Referenced by MethodServlet::service().

void doTrace IServletRequest  request,
IServletResponse  response
[inline, inherited]
 

Handle a TRACE request

Definition at line 217 of file Servlet.d.

References MethodServlet::error().

Referenced by MethodServlet::service().

long getLastModified IServletRequest  request  )  [inline, inherited]
 

overridable implementation of getLastModified() returns -1 to say it doesn't know.

Definition at line 229 of file Servlet.d.

Referenced by MethodServlet::get().

void get IServletRequest  request,
IServletResponse  response
[inline, inherited]
 

Preamble for GET requests that tries to figure out if we can simply return a NotModified status to the UA.

Servlets supporting such notions should override the getLastModified() method above, and have it do the appropriate thing.

Definition at line 245 of file Servlet.d.

References HttpMutableHeaders::addDate(), MethodServlet::doGet(), HttpHeaders::getDate(), IServletResponse::getHeaders(), IServletRequest::getHeaders(), MethodServlet::getLastModified(), and IServletResponse::setStatus().

Referenced by MethodServlet::service().

void service IServletRequest  request,
IServletResponse  response
[inline, inherited]
 

Service implementation for method specific isolation.

Reimplemented from Servlet.

Definition at line 269 of file Servlet.d.

References MethodServlet::doDelete(), MethodServlet::doHead(), MethodServlet::doOptions(), MethodServlet::doPost(), MethodServlet::doPut(), MethodServlet::doTrace(), MethodServlet::get(), IServletRequest::getMethod(), and IServletResponse::sendError().


Member Data Documentation

ServletConfig config [private]
 

Definition at line 321 of file Servlet.d.

Referenced by getConfig().


The documentation for this class was generated from the following file:
Generated on Sun Nov 7 19:07:01 2004 for Mango by doxygen 1.3.6