C++ Web Framework  3.0
Public Member Functions | List of all members
RequestDispatcher Class Reference

The RequestDispatcher class can be used to dispatch a requisition to a page. More...

#include <requestdispatcher.h>

Public Member Functions

 RequestDispatcher (const QString &file)
 This constructor receives a file name.
 
 ~RequestDispatcher ()
 Virtual destructor.
 
void forward (CWF::Request &request, CWF::Response &response)
 This method will dispatch the page file specificated in path to the CSTLCompiler, the CSTLCompiler will compile the xhtml file and returns the result. After this, the RequestDispatcher will take the return and write it on the response. More...
 

Detailed Description

The RequestDispatcher class can be used to dispatch a requisition to a page.

Member Function Documentation

◆ forward()

CWF_BEGIN_NAMESPACE void RequestDispatcher::forward ( CWF::Request &  request,
CWF::Response &  response 
)

This method will dispatch the page file specificated in path to the CSTLCompiler, the CSTLCompiler will compile the xhtml file and returns the result. After this, the RequestDispatcher will take the return and write it on the response.

Parameters
CWF::Request&request : Used to process the response.
CWF::Response&response : Used to response.

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