Daraja HTTP Framework 3.2.1-SNAPSHOT
HTTP server framework for Object Pascal
Loading...
Searching...
No Matches
TdjAbstractConfig Class Reference

Generic configuration class for managing initialization parameters and context. More...

Inheritance diagram for TdjAbstractConfig:
IContextConfig TdjWebComponentConfig TdjWebFilterConfig

Public Member Functions

 TdjAbstractConfig ()
 Constructor.
 ~TdjAbstractConfig ()
 Destructor.
IContext GetContext ()
 Get the current context.

Protected Member Functions

 Add (const string Key, const string Value)
string GetInitParameter (const string Key)
 Gets an initialization parameter.
TdjStringArray GetInitParameterNames ()
string GetName ()
 SetContext (const IContext Context)
 SetName (const string AName)

Detailed Description

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.

Constructor & Destructor Documentation

◆ TdjAbstractConfig()

TdjAbstractConfig::TdjAbstractConfig ( )

Constructor.

Initializes the configuration object and allocates resources for parameters.

References TdjAbstractConfig().

Referenced by TdjAbstractConfig(), ~TdjAbstractConfig(), GetContext(), and GetName().

◆ ~TdjAbstractConfig()

TdjAbstractConfig::~TdjAbstractConfig ( )

Destructor.

Frees allocated resources and cleans up the configuration object.

References TdjAbstractConfig().

Member Function Documentation

◆ Add()

TdjAbstractConfig::Add ( const string Key,
const string Value )
protected

◆ GetContext()

IContext TdjAbstractConfig::GetContext ( )

Get the current context.

Returns
The context associated with this configuration.

References TdjAbstractConfig().

◆ GetInitParameter()

string TdjAbstractConfig::GetInitParameter ( const string Key)
protected

Gets an initialization parameter.

Parameters
KeyParameter name (case-sensitive)
Returns
Parameter value or empty string if not found

Implements IContextConfig.

◆ GetInitParameterNames()

TdjStringArray TdjAbstractConfig::GetInitParameterNames ( )
protected
Note
The order of the names is unspecified.
Returns
Names of all initialization parameters

Implements IContextConfig.

Referenced by Add().

◆ GetName()

string TdjAbstractConfig::GetName ( )
protected

References TdjAbstractConfig().

Referenced by Add().

◆ SetContext()

TdjAbstractConfig::SetContext ( const IContext Context)
protected

◆ SetName()

TdjAbstractConfig::SetName ( const string AName)
protected