FastCgiQt::Responder Class Reference
[Core]

Abstract class for responding to HTTP requests. More...

Inheritance diagram for FastCgiQt::Responder:

FastCgiQt::ClientIOInterface FastCgiQt::ServiceMapper

Public Types

typedef Responder *(* Generator )(const Request &, QIODevice *, QIODevice *inputDevice, QObject *)
 A typedef for a pointer to a factory function for Responder objects.

Public Member Functions

virtual void respond ()=0
 Respond to a web request.
virtual ~Responder ()
 Clean up the responder.

Protected Member Functions

 Responder (const Request &request, QIODevice *socket, QIODevice *inputDevice, QObject *parent=NULL)
 Construct a responder.

Related Functions

(Note that these are not member functions.)

 RESPONDER(className)
 Convenience macro for creating constructor and factories of Responder subclasses.

Detailed Description

Abstract class for responding to HTTP requests.

All web applications will involve at least one subclass of this class.


Member Typedef Documentation

typedef Responder*(* FastCgiQt::Responder::Generator)(const Request &, QIODevice *, QIODevice *inputDevice, QObject *)

A typedef for a pointer to a factory function for Responder objects.

This function must have the signature:

 void myResponderGenerator(const Request&, QIODevice*, QIODevice*, QObject*);


Constructor & Destructor Documentation

FastCgiQt::Responder::~Responder (  )  [virtual]

Clean up the responder.

Among other things, this will flush the output stream.

FastCgiQt::Responder::Responder ( const Request request,
QIODevice *  socket,
QIODevice *  inputDevice,
QObject *  parent = NULL 
) [protected]

Construct a responder.

You shouldn't actually have to do anything with these parameters except pass them through to this constructor; especially, do not use the socket directly.

Parameters:
request contains information on the request.
socket is the socket being used for FastCGI in this request.
inputDevice is a streaming input device.
parent is a QObject* parent.


Friends And Related Function Documentation

RESPONDER ( className   )  [related]

Convenience macro for creating constructor and factories of Responder subclasses.

The generated constructor just calls the Responder constructor.

The generated factory function is called 'create', and a pointer to it is a FastCgiQt::Responder::Generator.


The documentation for this class was generated from the following files:

Generated on Sat Aug 22 19:44:56 2009 for FastCGI-Qt by  doxygen 1.5.7