HTTPApp.TAbstractWebPageModuleFactory
Contents |
Delphi Information
From HTTPApp.pas
TAbstractWebPageModuleFactory = class(TAbstractWebModuleFactory)
Unit: HTTPApp
Type: class
Inherited Class Members: HTTPApp.TAbstractWebPageModuleFactory Members
Class Constructors & Destructors: HTTPApp.TAbstractWebPageModuleFactory Constructors
C++ Information
From HTTPApp.hpp
TAbstractWebPageModuleFactory = class(TAbstractWebModuleFactory)
Unit: HTTPApp
Type: class
Inherited Class Members: HTTPApp.TAbstractWebPageModuleFactory Members
Class Constructors & Destructors: HTTPApp.TAbstractWebPageModuleFactory Constructors
Description
TAbstractWebPageModuleFactory is the base class for Web module factory objects whose generated Web modules create Web pages.
All WebSnap modules are registered with the WebSnap application using a factory object. In Delphi, the factory object is typically created in the initialization section of the module source file. The factory object is responsible for creating Web module instances. Applications can set flags for each factory object to indicate when it should create instances of its Web module and whether it can cache Web module instances for reuse with subsequent request messages.
TAbstractWebPageModuleFactory is the base class for all Web module factory objects that generate Web page modules. In addition to holding components that perform tasks for the WebSnap application, Web page modules can generate a Web page. The Web page is described by a Web page information object, which the Web page module factory makes available as its WebPageInfo property.
Do not create instances of TAbstractWebPageModuleFactory. Most of its methods are abstract or, in C++ terminology, pure virtual, meaning they have no implementation. Instead, create instances of a TAbstractWebPageModuleFactory descendant such as TWebPageModuleFactory or TWebAppPageModuleFactory.