|
Daraja HTTP Framework 3.2.1-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 | |
| CheckNotStarted () | |
| Raises an exception if the lifecycle is already in "started" state. | |
| CheckNotStopped () | |
| Raises an exception if the lifecycle is already 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 |
References TdjHTTPConnector(), and TdjAbstractConnector::Handler.
Referenced by TdjHTTPConnector().
| TdjHTTPConnector::~TdjHTTPConnector | ( | ) |
Destructor.
References TdjAbstractConnector::Handler.
|
protectedinherited |
Raises an exception if the lifecycle is already in "started" state.
References Started, and Stopped.
Referenced by TdjWebFilterHolders::TdjWebFilterHolders().
|
protectedinherited |
Raises an exception if the lifecycle is already in "stopped" state.
References TdjLifeCycle().
|
inherited |
Implements ILifeCycle.
References TdjLifeCycle().
Referenced by DoStop(), and TdjWebComponentHandler::InvokeService().
|
inherited |
Implements ILifeCycle.
References Stopped.
Referenced by DoStop().
|
inherited |
|
inherited |
Stops the component.
Implements ILifeCycle.
References Started.
Referenced by DoStop(), and TdjWebComponentHandler::InvokeService().
|
protectedinherited |
Handler for incoming requests.
Referenced by TdjHTTPConnector::TdjHTTPConnector(), and TdjHTTPConnector::~TdjHTTPConnector().
|
inherited |
The host address for the connector.
| TdjHTTPServer TdjHTTPConnector::HTTPServer |
|
inherited |
The port number for the connector.
|
inherited |
Referenced by CheckNotStarted(), and Stop().
|
inherited |
Referenced by CheckNotStarted(), and IsStopped().