|
Daraja HTTP Framework 3.1.1-SNAPSHOT
HTTP server framework for Object Pascal
|
Interface for HTTP connectors. More...
Public Member Functions | |
| TdjAbstractConnector (const IHandler Handler) | |
| Constructor. | |
| ~TdjAbstractConnector () | |
| Destructor. | |
| Boolean | IsStarted () |
| Boolean | IsStopped () |
| SetStarted (const Boolean Value) | |
| SetStopped (const Boolean Value) | |
| Start () | |
| Starts the component. | |
| Stop () | |
| Stops the component. | |
Public Attributes | |
| TCriticalSection | CS |
| string | FHost |
| Integer | FPort |
| Boolean | FStopped |
| string | Host |
| The host address for the connector. | |
| Integer | Port |
| The port number for the connector. | |
| Boolean | Started |
| Boolean | Stopped |
Protected Member Functions | |
| CheckStarted () | |
| Raises an exception if the lifecycle is in "started" state. | |
| CheckStopped () | |
| Raises an exception if the lifecycle is in "stopped" state. | |
| DoStart () | |
| Start the connector. | |
| DoStop () | |
| Stop the connector. | |
Protected Attributes | |
| IHandler | Handler |
| Handler for incoming requests. | |
Interface for HTTP connectors.
Abstract connector class for handling incoming requests. This class provides the basic structure for connectors, including properties for host and port, and methods for starting and stopping the connector.
| TdjAbstractConnector::TdjAbstractConnector | ( | const IHandler | Handler | ) |
Constructor.
Initializes the connector with the specified request handler.
| Handler | The request handler. The connector will call the "Handle" method for incoming requests. |
| AssertionError | if the handler is not assigned. |
References TdjAbstractConnector().
Referenced by TdjAbstractConnector().
| TdjAbstractConnector::~TdjAbstractConnector | ( | ) |
Destructor.
Cleans up resources and ensures the connector is stopped before destruction.
References Handler.
|
protectedinherited |
Raises an exception if the lifecycle is in "started" state.
|
protectedinherited |
Raises an exception if the lifecycle is in "stopped" state.
References TdjLifeCycle().
|
protected |
Start the connector.
This method is called to initialize and start the connector's operations.
|
protected |
Stop the connector.
This method is called to terminate the connector's operations.
|
inherited |
Implements ILifeCycle.
References TdjLifeCycle().
Referenced by DoStart(), and TdjWebComponentHandler::InvokeService().
|
inherited |
Implements ILifeCycle.
References Create().
Referenced by DoStart().
|
inherited |
Referenced by DoStop().
|
inherited |
Referenced by DoStop().
|
inherited |
|
inherited |
Stops the component.
Implements ILifeCycle.
References Stopped.
Referenced by DoStart(), and TdjWebComponentHandler::InvokeService().
|
inherited |
Referenced by ~TdjLifeCycle().
| string TdjAbstractConnector::FHost |
| Integer TdjAbstractConnector::FPort |
|
inherited |
Referenced by ~TdjLifeCycle(), and DoStop().
|
protected |
Handler for incoming requests.
Referenced by TdjHTTPConnector::TdjHTTPConnector(), ~TdjAbstractConnector(), TdjHTTPConnector::~TdjHTTPConnector(), and TdjHTTPConnector::OnCommand().
| string TdjAbstractConnector::Host |
The host address for the connector.
| Integer TdjAbstractConnector::Port |
The port number for the connector.
|
inherited |
Referenced by TdjHandlerCollection::~TdjHandlerCollection(), and DoStop().