|
Daraja HTTP Framework 3.2.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. | |
| 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 | |
| CheckNotStarted () | |
| Raises an exception if the lifecycle is already in "started" state. | |
| CheckNotStopped () | |
| Raises an exception if the lifecycle is already 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 TdjWebFilterHolders::TdjWebFilterHolders(), and SetInitParameter().
| TdjWebFilterHolder::~TdjWebFilterHolder | ( | ) |
|
protectedinherited |
Raises an exception if the lifecycle is already in "started" state.
References Started, and Stopped.
Referenced by TdjWebFilterHolders::TdjWebFilterHolders().
|
protectedinherited |
Raises an exception if the lifecycle is already 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.
|
inherited |
Implements ILifeCycle.
References TdjLifeCycle().
Referenced by DoStop(), and TdjWebComponentHandler::InvokeService().
|
inherited |
Implements ILifeCycle.
References Stopped.
Referenced by DoStop().
| TdjWebFilterHolder::SetContext | ( | const IContext | Context | ) |
Set the context.
| Context | the Web Filter context |
Referenced by TdjWebFilterHolders::TdjWebFilterHolders().
| TdjWebFilterHolder::SetInitParameter | ( | const string | Key, |
| const string | Value ) |
Set initialization parameter.
| Key | init parameter name (case-sensitive) |
| Value | init parameter value |
| EWebComponentException | if the key is already set |
References TdjWebFilterHolder().
Referenced by TdjWebFilterHolder().
|
inherited |
|
inherited |
Stops the component.
Implements ILifeCycle.
References Started.
Referenced by DoStop(), and TdjWebComponentHandler::InvokeService().
|
inherited |
|
inherited |
Referenced by CheckNotStarted(), and Stop().
|
inherited |
Referenced by CheckNotStarted(), and IsStopped().
| TdjWebFilter TdjWebFilterHolder::WebFilter |
The instance of the filter.
| TdjWebFilterClass TdjWebFilterHolder::WebFilterClass |
The filter class.