|
Daraja HTTP Framework 3.0.7-SNAPSHOT
HTTP server framework for Object Pascal
|
Handles requests within a specific context path. More...
Public Member Functions | |
| TdjContext (const string ContextPath) | |
| Initializes a new context with the specified path. | |
Protected Member Functions | |
| Add (const string Key, const string Value) | |
| Adds a key-value pair to configuration. | |
| 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. | |
| SetContext (const IContext Context) | |
| Sets the context for this configuration. | |
Handles requests within a specific context path.
Manages initialization parameters and context configuration.
| TdjContext::TdjContext | ( | const string | ContextPath | ) |
Initializes a new context with the specified path.
| ContextPath | The path for this context. |
| EWebComponentException | If the context path contains invalid characters. |
|
protected |
Adds a key-value pair to configuration.
| Key | Parameter name |
| Value | Parameter value |
Implements IWriteableConfig.
|
protected |
|
protected |
|
protected |
Gets the value of an initialization parameter.
| Key | The parameter name. |
Implements IContext.
|
protected |
Gets all initialization parameter names.
Implements IContext.
|
protected |
Initializes the context with the given configuration.
| Config | The context configuration to use. |
Implements IContext.
|
protected |
Logs a message to the configured logging system.
| Msg | The message to log. |
Implements IContext.
|
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.