RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomWebAppComponents Class

TCustomWebAppComponents manages the components that provide a WebSnap application's functionality.

Pascal
TCustomWebAppComponents = class(TMultiModuleWebAppServices, IGetWebAppComponents, IGetLocateFileService);
C++
class TCustomWebAppComponents : public TMultiModuleWebAppServices, public IGetWebAppComponents, public IGetLocateFileService;

WebDisp

Use TCustomWebAppComponents as a base class for the component that centralizes access to the main WebSnap components. It keeps track of the current request and response objects, maintains a list of the available Web modules, and locates the appropriate components to handle incoming request messages. TCustomWebAppComponents introduces properties that provide access to the components that perform many common tasks in a WebSnap application. These properties include: 

PageDispatcher, which locates the Web page modules to process incoming request messages. 

AdapterDispatcher, which encodes calls to adapter actions and fields, and which handles HTML form submissions and requests for dynamic images by calling adapter actions and fields. 

Sessions, which manages the sessions for each caller. 

ApplicationAdapter, which implements the fields and actions of the Application variable in server-side scripts. 

EndUserAdapter, which implements the fields and actions of the EndUser variable in server-side scripts. 

UserListService, which maintains a list of end users and their passwords and access privileges. 

LocateFileService, which controls access to the templates and server-side script include files that are used while processing requests. 

DispatchActions, which maintains a list of action items that can respond to request messages. 

The components these properties reference are optional. The WebSnap Application wizard automatically creates components and fill in these properties for any components that you select. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!