|
Daraja HTTP Framework 3.0.7-SNAPSHOT
HTTP server framework for Object Pascal
|
Generic configuration class for managing initialization parameters and context. More...
Public Member Functions | |
| TdjAbstractConfig () | |
| Constructor. | |
| ~TdjAbstractConfig () | |
| Destructor. | |
| IContext | GetContext () |
| Get the current context. | |
Protected Member Functions | |
| Add (const string Key, const string Value) | |
| Adds a key-value pair to configuration. | |
| string | GetInitParameter (const string Key) |
| Gets an initialization parameter. | |
| TdjStrings | GetInitParameterNames () |
| SetContext (const IContext Context) | |
| Sets the context for this configuration. | |
Generic configuration class for managing initialization parameters and context.
This class implements the IWriteableConfig interface and provides methods to add parameters, retrieve them, and manage the application context.
| TdjAbstractConfig::TdjAbstractConfig | ( | ) |
Constructor.
Initializes the configuration object and allocates resources for parameters.
References TdjAbstractConfig().
Referenced by TdjAbstractConfig(), and GetContext().
| TdjAbstractConfig::~TdjAbstractConfig | ( | ) |
Destructor.
Frees allocated resources and cleans up the configuration object.
|
protected |
Adds a key-value pair to configuration.
| Key | Parameter name |
| Value | Parameter value |
Implements IWriteableConfig.
| IContext TdjAbstractConfig::GetContext | ( | ) |
Get the current context.
References TdjAbstractConfig().
|
protected |
Gets an initialization parameter.
| Key | Parameter name |
Implements IContextConfig.
|
protected |
Implements IContextConfig.
|
protected |
Sets the context for this configuration.
| Context | Context to set |
| EWebComponentException | if the context is nil or if the context is already set and differs from the new context. |
Implements IWriteableConfig.