|
Daraja HTTP Framework 3.0.7-SNAPSHOT
HTTP server framework for Object Pascal
|
Interface for web components that process HTTP requests and generate responses. More...
Public Member Functions | |
| IWebComponentConfig | GetWebComponentConfig () |
| Returns a IWebComponentConfig object, which contains initialization parameters for this component. | |
| Init (const IWebComponentConfig Config) | |
| Called by the container on startup. | |
| Service (TdjServerContext Context, TdjRequest Request, TdjResponse Response) | |
| Handle a HTTP request. | |
Public Attributes | |
| IWebComponentConfig | Config |
| Component configuration property. | |
Interface for web components that process HTTP requests and generate responses.
| IWebComponentConfig IWebComponent::GetWebComponentConfig | ( | ) |
Returns a IWebComponentConfig object, which contains initialization parameters for this component.
| EWebComponentException | if the method is called before the component has been initialized. |
Implemented in TdjGenericWebComponent.
| IWebComponent::Init | ( | const IWebComponentConfig | Config | ) |
Called by the container on startup.
| Config | the configuration |
| EWebComponentException | if initialization failed |
Implemented in TdjGenericWebComponent.
| IWebComponent::Service | ( | TdjServerContext | Context, |
| TdjRequest | Request, | ||
| TdjResponse | Response ) |
Handle a HTTP request.
The status code of the response always should be set for a component that throws or sends an error.
| Context | HTTP server context |
| Request | HTTP request |
| Response | HTTP response |
| EWebComponentException | if an exception occurs that interferes with the component's normal operation |
Implemented in TdjGenericWebComponent, and TdjWebComponent.
References Config.
| IWebComponentConfig IWebComponent::Config |
Component configuration property.
Referenced by Service().