|
Daraja HTTP Framework 3.0-MS1
HTTP server framework for Object Pascal
|
Context handler. More...
Inheritance diagram for TdjContextHandler:Public Member Functions | |
| TdjContextHandler (const string ContextPath) | |
| Create a ContextHandler. | |
| ~TdjContextHandler () | |
| Destructor. | |
| IContext | GetCurrentContext () |
| The internal IContext field. | |
| SetInitParameter (const string Key, const string Value) | |
| Set initialization parameter. | |
| DoStart () | |
| Start the handler. | |
| DoStop () | |
| Stop the handler. | |
| Handle (const string Target, TdjServerContext Context, TdjRequest Request, TdjResponse Response) | |
| Handle a HTTP request. | |
Public Member Functions inherited from TdjHandlerWrapper | |
| AddHandler (const IHandler Handler) | |
| Add a handler to the container. | |
| RemoveHandler (const IHandler Handler) | |
| Remove a handler from the container. | |
| DoStart () | |
| Start the handler. | |
| DoStop () | |
| Stop the handler. | |
| Handle (const string Target, TdjServerContext Context, TdjRequest Request, TdjResponse Response) | |
| Handle a HTTP request. | |
Public Member Functions inherited from TdjAbstractHandler | |
| TdjAbstractHandler () | |
| Constructor. | |
| DoStart () | |
| Start the handler. | |
| DoStop () | |
| Start the handler. | |
| Handle (const string Target, TdjServerContext Context, TdjRequest Request, TdjResponse Response) | |
| Handle a HTTP request. | |
Public Member Functions inherited from TdjLifeCycle | |
| Start () | |
| Start the handler. | |
| Stop () | |
| Stop the handler. | |
| Boolean | IsStarted () |
| Boolean | IsStopped () |
Public Attributes | |
| TStrings | ConnectorNames |
| string | ContextPath |
| IHandler | ErrorHandler |
Public Attributes inherited from TdjHandlerWrapper | |
| IHandler | Handler |
Public Attributes inherited from TdjLifeCycle | |
| Boolean | Started |
| True if the state is "started". | |
| Boolean | Stopped |
| True if the state is "stopped". | |
Protected Member Functions | |
| Boolean | ContextMatches (const string ConnectorName, const string Target) |
| Check if the Document matches this context. | |
| string | ToConnectorName (TdjServerContext Context) |
| Creates connector name in the form 'host:port'. | |
Protected Member Functions inherited from TdjHandlerWrapper | |
| TIdHTTPSession | GetSession (TdjServerContext Context, TdjRequest Request, TdjResponse Response, const Boolean Create) |
| Get a HTTP session. | |
Protected Member Functions inherited from TdjAbstractHandlerContainer | |
| AddHandler (const IHandler Handler) | |
| Add a handler. | |
| RemoveHandler (const IHandler Handler) | |
| Remove a handler. | |
Protected Member Functions inherited from TdjLifeCycle | |
| DoStart () | |
| Execute the custom start code. | |
| DoStop () | |
| Execute the custom stop code. | |
| CheckStarted () | |
| Raises an exception if the lifecycle is in "started" state. | |
| CheckStopped () | |
| Raises an exception if the lifecycle is in "stopped" state. | |
Context handler.
|
protected |
Check if the Document matches this context.
| ConnectorName | the connector name (like 'host:port' |
| Target | the target URL document |
Referenced by TdjWebComponentContextHandler::Handle().
| TdjContextHandler::Handle | ( | const string | Target, |
| TdjServerContext | Context, | ||
| TdjRequest | Request, | ||
| TdjResponse | Response ) |
Handle a HTTP request.
| Target | Request target |
| Context | HTTP server context |
| Request | HTTP request |
| Response | HTTP response |
| EWebComponentException | if an exception occurs that interferes with the component's normal operation |
| TdjContextHandler::SetInitParameter | ( | const string | Key, |
| const string | Value ) |
Set initialization parameter.
| Key | init parameter name |
| Value | init parameter value |
|
protected |
Creates connector name in the form 'host:port'.
Referenced by TdjWebComponentContextHandler::Handle().
| TStrings TdjContextHandler::ConnectorNames |
| string TdjContextHandler::ContextPath |
Referenced by TdjServer::Add(), TdjWebComponentContextHandler::DoHandle(), and TdjWebComponentContextHandler::TdjWebComponentContextHandler().
| IHandler TdjContextHandler::ErrorHandler |