Daraja HTTP Framework 3.0.7-SNAPSHOT
HTTP server framework for Object Pascal
Loading...
Searching...
No Matches
IContext Interface Reference

Interface for server contexts that provide access to configuration and resources. More...

Inheritance diagram for IContext:
TdjContext

Public Member Functions

IContextConfig GetContextConfig ()
 Get the context configuration.
string GetContextPath ()
 Get the context path.
string GetInitParameter (const string Key)
 Gets the value of an initialization parameter.
TdjStrings GetInitParameterNames ()
 Gets all initialization parameter names.
 Init (const IContextConfig Config)
 Initializes the context with the given configuration.
 Log (const string Msg)
 Logs a message to the configured logging system.

Detailed Description

Interface for server contexts that provide access to configuration and resources.

Member Function Documentation

◆ GetContextConfig()

IContextConfig IContext::GetContextConfig ( )

Get the context configuration.

Returns
the context configuration

Implemented in TdjContext.

◆ GetContextPath()

string IContext::GetContextPath ( )

Get the context path.

Returns
the context path.

Implemented in TdjContext.

◆ GetInitParameter()

string IContext::GetInitParameter ( const string Key)

Gets the value of an initialization parameter.

Parameters
KeyThe parameter name.
Returns
The parameter value or empty string if not found.

Implemented in TdjContext.

◆ GetInitParameterNames()

TdjStrings IContext::GetInitParameterNames ( )

Gets all initialization parameter names.

Returns
A list containing all parameter names.

Implemented in TdjContext.

◆ Init()

IContext::Init ( const IContextConfig Config)

Initializes the context with the given configuration.

Parameters
ConfigThe context configuration to use.

Implemented in TdjContext.

◆ Log()

IContext::Log ( const string Msg)

Logs a message to the configured logging system.

Parameters
MsgThe message to log.

Implemented in TdjContext.