|
Daraja HTTP Framework 3.2.1-SNAPSHOT
HTTP server framework for Object Pascal
|
A HandlerWrapper acts as a IHandler but delegates the handle method and life cycle events to a delegate. More...
Public Member Functions | |
| TdjHandlerWrapper () | |
| AddHandler (const IHandler Handler) | |
| Add a handler to the container. | |
| RemoveHandler (const IHandler Handler) | |
Public Attributes | |
| IHandler | Handler |
Protected Member Functions | |
| DoStart () | |
| Start the handler. | |
| DoStop () | |
| Stop the handler. | |
| TIdHTTPSession | GetSession (TdjServerContext Context, TdjRequest Request, TdjResponse Response, const Boolean Create) |
| Get a HTTP session. | |
| Handle (const string Target, TdjServerContext Context, TdjRequest Request, TdjResponse Response) | |
A HandlerWrapper acts as a IHandler but delegates the handle method and life cycle events to a delegate.
This is primarily used to implement the Decorator pattern.
| TdjHandlerWrapper::TdjHandlerWrapper | ( | ) |
Referenced by Handle().
| TdjHandlerWrapper::AddHandler | ( | const IHandler | Handler | ) |
Add a handler to the container.
This implementation of AddHandler calls SetHandler with the passed handler. If this HandlerWrapper had a previous wrapped handler, then it is passed to a call to AddHandler on the passed handler.
| Handler | the handler to be added |
Referenced by TdjWebComponentContextHandler::AddWebFilter(), TdjServer::GetConnector(), and GetSession().
|
protected |
|
protected |
Stop the handler.
|
protected |
Get a HTTP session.
References AddHandler(), and Handler.
|
protected |
References TdjHandlerWrapper().
| TdjHandlerWrapper::RemoveHandler | ( | const IHandler | Handler | ) |
| IHandler TdjHandlerWrapper::Handler |
Referenced by TdjServer::ConnectorCount(), DoStart(), and GetSession().