|
Daraja HTTP Framework 3.0.7-SNAPSHOT
HTTP server framework for Object Pascal
|
A generic holder class for managing instances of TdjWebFilter. More...
Public Member Functions | |
| TdjWebFilterHolder (TdjWebFilterClass WebFilterClass) | |
| Constructor for creating an instance of TdjWebFilterHolder. | |
| ~TdjWebFilterHolder () | |
| DoFilter (TdjServerContext Context, TdjRequest Request, TdjResponse Response, const IWebFilterChain Chain) | |
| Executes the filter logic for the given server context, request, and response. | |
| Boolean | IsStarted () |
| Boolean | IsStopped () |
| SetContext (const IContext Context) | |
| Set the context. | |
| SetInitParameter (const string Key, const string Value) | |
| Set initialization parameter. | |
| Start () | |
| Starts the component. | |
| Stop () | |
| Stops the component. | |
Public Attributes | |
| string | Name |
| Boolean | Started |
| Boolean | Stopped |
| TdjWebFilter | WebFilter |
| The instance of the filter. | |
| TdjWebFilterClass | WebFilterClass |
| The filter class. | |
Protected Member Functions | |
| CheckStarted () | |
| Raises an exception if the lifecycle is in "started" state. | |
| CheckStopped () | |
| Raises an exception if the lifecycle is in "stopped" state. | |
A generic holder class for managing instances of TdjWebFilter.
This class is a specialization of TdjGenericHolder, designed to hold and manage objects of type TdjWebFilter.
| TdjWebFilterHolder::TdjWebFilterHolder | ( | TdjWebFilterClass | WebFilterClass | ) |
Constructor for creating an instance of TdjWebFilterHolder.
| WebFilterClass | The class reference of type TdjWebFilterClass used to initialize the web filter holder. |
Referenced by SetInitParameter().
| TdjWebFilterHolder::~TdjWebFilterHolder | ( | ) |
|
protectedinherited |
Raises an exception if the lifecycle is in "started" state.
References TdjLifeCycle().
|
protectedinherited |
Raises an exception if the lifecycle is in "stopped" state.
References TdjLifeCycle(), and Started.
| TdjWebFilterHolder::DoFilter | ( | TdjServerContext | Context, |
| TdjRequest | Request, | ||
| TdjResponse | Response, | ||
| const IWebFilterChain | Chain ) |
Executes the filter logic for the given server context, request, and response.
| Context | The server context in which the filter is executed. |
| Request | The HTTP request being processed. |
| Response | The HTTP response to be sent back to the client. |
| Chain | The filter chain to pass control to the next filter in the chain. |
Implements IWebFilter.
References WebFilterClass.
|
inherited |
Implements ILifeCycle.
References Create().
Referenced by DoStart(), and TdjWebComponentHandler::FindHolder().
|
inherited |
| TdjWebFilterHolder::SetContext | ( | const IContext | Context | ) |
| TdjWebFilterHolder::SetInitParameter | ( | const string | Key, |
| const string | Value ) |
Set initialization parameter.
| Key | init parameter name |
| Value | init parameter value |
References TdjWebFilterHolder().
|
inherited |
|
inherited |
Stops the component.
Implements ILifeCycle.
References TdjLifeCycle().
Referenced by DoStart(), and TdjWebComponentHandler::InvokeService().
|
inherited |
|
inherited |
| TdjWebFilter TdjWebFilterHolder::WebFilter |
The instance of the filter.
| TdjWebFilterClass TdjWebFilterHolder::WebFilterClass |
The filter class.
Referenced by DoFilter(), and SetContext().