C++ Web Framework  3.0
Public Member Functions | List of all members
FilterChain Class Referencefinal

The FilterChain class is responsable to dispatch a requisition. This class was built to work with Filter. Always when a Filter makes all the necessary validations, it can dispatches the requisition to the FilterChain. NOTE: It is a final class, you can't derive from it. More...

#include <filterchain.h>

Public Member Functions

 FilterChain (Controller *controller, const Configuration &configuration)
 FilterChain. More...
 
void doFilter (CWF::Request &request, CWF::Response &response)
 This method dispaches a requisition to a Request or, if the requesition is for a file, it can reads and send the file through the Response. More...
 

Detailed Description

The FilterChain class is responsable to dispatch a requisition. This class was built to work with Filter. Always when a Filter makes all the necessary validations, it can dispatches the requisition to the FilterChain. NOTE: It is a final class, you can't derive from it.

Constructor & Destructor Documentation

◆ FilterChain()

CWF_BEGIN_NAMESPACE FilterChain::FilterChain ( Controller controller,
const Configuration configuration 
)

FilterChain.

Parameters
controller

Member Function Documentation

◆ doFilter()

void FilterChain::doFilter ( CWF::Request &  request,
CWF::Response &  response 
)

This method dispaches a requisition to a Request or, if the requesition is for a file, it can reads and send the file through the Response.

Parameters
request: This is a reference to the Request.
response: This is a reference to the Response.

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