|
Daraja HTTP Framework 3.2.1-SNAPSHOT
HTTP server framework for Object Pascal
|
A collection of handlers. More...
Public Member Functions | |
| IHandler () | |
| Create a TdjHandlerCollection. | |
| ~IHandler () | |
| Destructor. | |
| Handle (const string Target, TdjServerContext Context, TdjRequest Request, TdjResponse Response) | |
| Handles an HTTP request. | |
| boolean | IsStarted () |
| boolean | IsStopped () |
| Start () | |
| Starts the component. | |
| Stop () | |
| Stops the component. | |
Protected Member Functions | |
| AddHandler (const IHandler Handler) | |
| Handle (const string Target, TdjServerContext Context, TdjRequest Request, TdjResponse Response) | |
| RemoveHandler (const IHandler Handler) | |
Protected Attributes | |
| TdjHandlers | FHandlers |
| The handler collection. | |
A collection of handlers.
Interface for HTTP request handlers.
For each request, all handler are called, regardless of the response status or exceptions.
| IHandler::IHandler | ( | ) |
| IHandler::~IHandler | ( | ) |
Destructor.
References IHandler(), and FHandlers.
|
protected |
Implemented in IHandlerContainer.
|
protected |
Implemented in TdjAbstractHandler, TdjServerBase, and TdjWebComponentHandler.
| IHandler::Handle | ( | const string | Target, |
| TdjServerContext | Context, | ||
| TdjRequest | Request, | ||
| TdjResponse | Response ) |
Handles an HTTP request.
| Target | Target path or resource identifier |
| Context | Server context for this request |
| Request | HTTP request object |
| Response | HTTP response object to populate |
| EWebComponentException | if an exception occurs that interferes with the component's normal operation. |
Implemented in TdjAbstractHandler, TdjServerBase, and TdjWebComponentHandler.
|
inherited |
Implemented in TdjLifeCycle.
Referenced by TdjServer::ConnectorCount(), and Stop().
|
inherited |
Implemented in TdjLifeCycle.
|
protected |
Implemented in IHandlerContainer.
|
inherited |
|
inherited |
Stops the component.
Implemented in TdjLifeCycle.
References IsStarted().
Referenced by TdjServer::ConnectorCount().
|
protected |
The handler collection.
Referenced by IHandler(), and ~IHandler().