|
Daraja HTTP Framework 3.0.7-SNAPSHOT
HTTP server framework for Object Pascal
|
A generic web filter class implementing the IWebFilter interface. More...
Public Member Functions | |
| TdjGenericWebFilter () | |
| Constructor. | |
| ~TdjGenericWebFilter () | |
| Destructor. | |
| DestroyFilter () | |
| Called when filter is being removed from service. | |
| DoFilter (TdjServerContext Context, TdjRequest Request, TdjResponse Response, const IWebFilterChain Chain) | |
| The DoFilter method of the Filter is called by the container each time a request/response pair is passed through the chain due to a client request for a resource at the end of the chain. | |
| IWebFilterConfig | GetWebFilterConfig () |
| Returns the configuration for this filter. | |
| Init () | |
| A convenience method which can be overridden so that there is no need to call inherited Init(config). | |
| Init (const IWebFilterConfig Config) | |
| Called by the container on startup. | |
Public Attributes | |
| IWebFilterConfig | Config |
A generic web filter class implementing the IWebFilter interface.
This class provides functionality to filter web requests or responses as part of the Daraja framework.
| TdjGenericWebFilter::TdjGenericWebFilter | ( | ) |
Constructor.
References TdjGenericWebFilter().
Referenced by TdjGenericWebFilter(), and ~TdjGenericWebFilter().
| TdjGenericWebFilter::~TdjGenericWebFilter | ( | ) |
Destructor.
References TdjGenericWebFilter().
| TdjGenericWebFilter::DestroyFilter | ( | ) |
Called when filter is being removed from service.
Implements IWebFilter.
| TdjGenericWebFilter::DoFilter | ( | TdjServerContext | Context, |
| TdjRequest | Request, | ||
| TdjResponse | Response, | ||
| const IWebFilterChain | Chain ) |
The DoFilter method of the Filter is called by the container each time a request/response pair is passed through the chain due to a client request for a resource at the end of the chain.
| Context | The server context for this request |
| Request | The HTTP request being processed |
| Response | The HTTP response being generated |
| Chain | The filter chain to pass the request/response to |
Implements IWebFilter.
| IWebFilterConfig TdjGenericWebFilter::GetWebFilterConfig | ( | ) |
Returns the configuration for this filter.
| EWebComponentException | if the filter is not initialized |
| TdjGenericWebFilter::Init | ( | ) |
A convenience method which can be overridden so that there is no need to call inherited Init(config).
| TdjGenericWebFilter::Init | ( | const IWebFilterConfig | Config | ) |
Called by the container on startup.
| Config | the configuration |
| EWebComponentException | if initialization failed |
Implements IWebFilter.
| IWebFilterConfig TdjGenericWebFilter::Config |