TISAPIApplication encapsulates an ISAPI or NSAPI server application.
TISAPIApplication = class(TWebApplication);
class TISAPIApplication : public TWebApplication;
TISAPIApplication provides the fundamental behavior of an ISAPI or NSAPI server application. The HTTP server calls the methods of TISAPIApplication when it receives an HTTP request message. TISAPIApplication creates a thread to manage the request message, and a creates a new instance of the Web module for that thread, or reuses an old instance that was deactivated after a previous response was sent.
TISAPIApplication creates TISAPIRequest and TISAPIResponse objects to represent the request message and any response that should be sent in return, passes these to the dispatcher so that the response can be filled in, and sends the response if it was not already sent by a TWebActionItem.
Each ISAPI server project automatically declares an Application variable of type TISAPIApplication as the instance of the application. This declaration overrides the Application variable declared in the Forms unit if the ISAPIApp unit is declared last in the uses list of the project file. Every ISAPI server application must include the ISAPIApp unit.
To work with an Apache server, use the TApacheApplication object. To work with a CGI server, use the TCGIApplication object instead.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!