|
Daraja HTTP Framework 3.2.1-SNAPSHOT
HTTP server framework for Object Pascal
|
Context handler. More...
Public Member Functions | |
| TdjContextHandler (const string ContextPath) | |
| Create a ContextHandler. | |
| ~TdjContextHandler () | |
| Destructor. | |
| AddHandler (const IHandler Handler) | |
| Add a handler to the container. | |
| IContext | GetCurrentContext () |
| The internal IContext field. | |
| RemoveHandler (const IHandler Handler) | |
| SetInitParameter (const string Key, const string Value) | |
| Set initialization parameter. | |
Public Attributes | |
| TStrings | ConnectorNames |
| string | ContextPath |
| IHandler | ErrorHandler |
| IHandler | Handler |
Protected Member Functions | |
| Boolean | ContextMatches (const string ConnectorName, const string Target) |
| Check if the Document matches this context. | |
| 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) | |
| string | ToConnectorName (TdjServerContext Context) |
| Creates connector name in the form 'host:port'. | |
Context handler.
| TdjContextHandler::TdjContextHandler | ( | const string | ContextPath | ) |
Create a ContextHandler.
| TdjContextHandler::~TdjContextHandler | ( | ) |
Destructor.
|
inherited |
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 |
Check if the Document matches this context.
| ConnectorName | the connector name (like 'host:port' |
| Target | the target URL document |
|
protected |
Start the handler.
|
protected |
Stop the handler.
|
protectedinherited |
Get a HTTP session.
References AddHandler(), and Handler.
|
protected |
|
inherited |
| TdjContextHandler::SetInitParameter | ( | const string | Key, |
| const string | Value ) |
Set initialization parameter.
| Key | init parameter name (case-sensitive) |
| Value | init parameter value |
| EWebComponentException | if the key is already set |
|
protected |
Creates connector name in the form 'host:port'.
| TStrings TdjContextHandler::ConnectorNames |
| string TdjContextHandler::ContextPath |
Referenced by TdjWebComponentContextHandler::Handle().
| IHandler TdjContextHandler::ErrorHandler |
|
inherited |
Referenced by TdjServer::ConnectorCount(), DoStart(), and GetSession().