RAD Studio VCL Reference
|
TAbstractWebPageInfo represents the attributes of a Web page module.
TAbstractWebPageInfo = class;
class TAbstractWebPageInfo;
HTTPApp
TAbstractWebPageInfo is the abstract base class for Web page information objects. It introduces a number of properties that describe the attributes of a Web page module, including
PageName, which is the logical name for the Web page the module generates.
IsPublished, which indicates whether the WebSnap application automatically displays the page in response to request messages where the pathinfo portion of the target URL matches PageName.
IsLoginRequired, which indicates whether the user must log in to access the Web page.
ViewAccess, which can be used to restrict access to the Web page.
PageTitle, which is the title that appears on the Web page.
PageFile, which identifies an associated HTML template that the Web page module uses to generate its Web page.
PageHREF, which identifies the HREF to use for references to the page that appear in hypertext links.
PageDescription, which describes the Web page.
Do not create instances of TAbstractWebPageInfo. It includes abstract or, in C++ terminology, pure virtual methods (methods that have no implementation) that must be overridden in a descendant class.
Web page information objects are used to set the attributes of a Web page module. An instance of a TAbstractWebPageInfo descendant, such as TWebPageInfo, is supplied to the constructor of the factory object that creates instances of the Web page module. Typically, the code to create this object and supply it to the Web page factory's constructor is generated by a Web page module wizard. You can change this generated code, which appears in the generated unit for the Web page module, to alter the properties of the Web page information object. For example, you may want to add a ViewAccess string to allow your application to limit access to the Web page.
In a WebSnap application, you can access the Web page information object of any Web page module by calling the FindPageInfo method of the application's global Web context.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|