|
Daraja HTTP Framework 3.1.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 () |
| OnCommand (TIdContext AContext, TdjRequest ARequestInfo, TdjResponse AResponseInfo) | |
| SetStarted (const Boolean Value) | |
| SetStopped (const Boolean Value) | |
| Start () | |
| Starts the component. | |
| Stop () | |
| Stops the component. | |
Public Attributes | |
| TCriticalSection | CS |
| string | FHost |
| TdjHTTPServer | FHTTPServer |
| Integer | FPort |
| Boolean | FStopped |
| string | Host |
| The host address for the connector. | |
| string | HostAndPort |
| 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 |
References TdjHTTPConnector(), and TdjAbstractConnector::Handler.
Referenced by TdjHTTPConnector().
| TdjHTTPConnector::~TdjHTTPConnector | ( | ) |
Destructor.
References TdjAbstractConnector::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().
|
inherited |
Implements ILifeCycle.
References TdjLifeCycle().
Referenced by DoStart(), and TdjWebComponentHandler::InvokeService().
|
inherited |
Implements ILifeCycle.
References Create().
Referenced by DoStart().
| TdjHTTPConnector::OnCommand | ( | TIdContext | AContext, |
| TdjRequest | ARequestInfo, | ||
| TdjResponse | AResponseInfo ) |
References Create(), and TdjAbstractConnector::Handler.
|
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().
|
inherited |
| TdjHTTPServer TdjHTTPConnector::FHTTPServer |
|
inherited |
|
inherited |
Referenced by ~TdjLifeCycle(), and DoStop().
|
protectedinherited |
Handler for incoming requests.
Referenced by TdjHTTPConnector::TdjHTTPConnector(), ~TdjAbstractConnector(), TdjHTTPConnector::~TdjHTTPConnector(), and TdjHTTPConnector::OnCommand().
|
inherited |
The host address for the connector.
| string TdjHTTPConnector::HostAndPort |
| TdjHTTPServer TdjHTTPConnector::HTTPServer |
|
inherited |
The port number for the connector.
|
inherited |
Referenced by TdjHandlerCollection::~TdjHandlerCollection(), and DoStop().