Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | 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)
ulong 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 322 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 340 of file Servlet.d.

References init().

ServletConfig getConfig  )  [inline]
 

Return the configuration passed with init()

Definition at line 352 of file Servlet.d.

References config.

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

Handle a GET request

Definition at line 154 of file Servlet.d.

References MethodServlet::error().

Referenced by MethodServlet::get().

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

Handle a HEAD request

Definition at line 165 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 176 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 187 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 198 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 209 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 220 of file Servlet.d.

References MethodServlet::error().

Referenced by MethodServlet::service().

ulong getLastModified IServletRequest  request  )  [inline, inherited]
 

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

Definition at line 232 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 248 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 272 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 324 of file Servlet.d.

Referenced by getConfig().


The documentation for this class was generated from the following file:
Generated on Sat Dec 24 17:28:37 2005 for Mango by  doxygen 1.4.0