|
Daraja HTTP Framework 3.1.1-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. | |
| TdjWebFilterClass | GetClass () |
| Boolean | IsStarted () |
| Boolean | IsStopped () |
| SetContext (const IContext Context) | |
| Set the context. | |
| SetInitParameter (const string Key, const string Value) | |
| Set initialization parameter. | |
| SetStarted (const Boolean Value) | |
| SetStopped (const Boolean Value) | |
| Start () | |
| Starts the component. | |
| Stop () | |
| Stops the component. | |
Public Attributes | |
| TCriticalSection | CS |
| TdjWebFilterClass | FClass |
| IWebFilterConfig | FConfig |
| Boolean | FStopped |
| TdjWebFilter | FWebFilter |
| 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. |
References SetInitParameter().
Referenced by DoFilter(), and SetInitParameter().
| TdjWebFilterHolder::~TdjWebFilterHolder | ( | ) |
|
protectedinherited |
Raises an exception if the lifecycle is in "started" state.
|
protectedinherited |
Raises an exception if the lifecycle is in "stopped" state.
References TdjLifeCycle().
| 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 TdjWebFilterHolder().
| TdjWebFilterClass TdjWebFilterHolder::GetClass | ( | ) |
References WebFilterClass.
|
inherited |
Implements ILifeCycle.
References TdjLifeCycle().
Referenced by DoStart(), and TdjWebComponentHandler::InvokeService().
|
inherited |
Implements ILifeCycle.
References Create().
Referenced by DoStart().
| TdjWebFilterHolder::SetContext | ( | const IContext | Context | ) |
Set the context.
| Context | the Web Filter context |
| TdjWebFilterHolder::SetInitParameter | ( | const string | Key, |
| const string | Value ) |
Set initialization parameter.
| Key | init parameter name |
| Value | init parameter value |
References TdjWebFilterHolder().
Referenced by TdjWebFilterHolder().
|
inherited |
Referenced by DoStop().
|
inherited |
Referenced by DoStop().
|
inherited |
|
inherited |
Stops the component.
Implements ILifeCycle.
References Stopped.
Referenced by DoStart(), and TdjWebComponentHandler::InvokeService().
|
inherited |
Referenced by ~TdjLifeCycle().
| TdjWebFilterClass TdjWebFilterHolder::FClass |
| IWebFilterConfig TdjWebFilterHolder::FConfig |
|
inherited |
Referenced by ~TdjLifeCycle(), and DoStop().
| TdjWebFilter TdjWebFilterHolder::FWebFilter |
|
inherited |
|
inherited |
Referenced by TdjHandlerCollection::~TdjHandlerCollection(), and DoStop().
| TdjWebFilter TdjWebFilterHolder::WebFilter |
The instance of the filter.
| TdjWebFilterClass TdjWebFilterHolder::WebFilterClass |
The filter class.
Referenced by GetClass().