|
Daraja HTTP Framework 3.0.7-SNAPSHOT
HTTP server framework for Object Pascal
|
HTTP connector. More...
Public Member Functions | |
| TdjHTTPConnector (const IHandler Handler) | |
| Create a HTTP connector. | |
| ~TdjHTTPConnector () | |
| Destructor. | |
| Boolean | IsStarted () |
| Boolean | IsStopped () |
| Start () | |
| Starts the component. | |
| Stop () | |
| Stops the component. | |
Public Attributes | |
| string | Host |
| The host address for the connector. | |
| TdjHTTPServer | HTTPServer |
| 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. | |
Protected Attributes | |
| IHandler | Handler |
| Handler for incoming requests. | |
HTTP connector.
Instances of this class wrap a TdjHTTPServer component.
| TdjHTTPConnector::TdjHTTPConnector | ( | const IHandler | Handler | ) |
Create a HTTP connector.
The handler is a required argument. The connector will call the "Handle" method for incoming requests.
| Handler | the request handler |
| TdjHTTPConnector::~TdjHTTPConnector | ( | ) |
Destructor.
|
protectedinherited |
Raises an exception if the lifecycle is in "started" state.
References TdjLifeCycle().
|
protectedinherited |
Raises an exception if the lifecycle is in "stopped" state.
References TdjLifeCycle(), and Started.
|
inherited |
Implements ILifeCycle.
References Create().
Referenced by DoStart(), and TdjWebComponentHandler::FindHolder().
|
inherited |
|
inherited |
|
inherited |
Stops the component.
Implements ILifeCycle.
References TdjLifeCycle().
Referenced by DoStart(), and TdjWebComponentHandler::InvokeService().
|
protectedinherited |
Handler for incoming requests.
Referenced by TdjAbstractConnector().
|
inherited |
The host address for the connector.
| TdjHTTPServer TdjHTTPConnector::HTTPServer |
|
inherited |
The port number for the connector.
|
inherited |