RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomWebAppComponents.ImplInitContext Method

Provides the underlying implementation for the InitContext method.

Pascal
procedure ImplInitContext(AWebModuleList: TAbstractWebModuleList; ARequest: TWebRequest; AResponse: TWebResponse); override;
C++
virtual __fastcall ImplInitContext(TAbstractWebModuleList AWebModuleList, TWebRequest ARequest, TWebResponse AResponse);

The InitContext method, which is called when the WebSnap application first receives a request, calls ImplInitContext to perform any initializations and to create the Web context for the new request message. 

ImplInitContext performs the following tasks: 

 

  1. If the DispatchActions property is set, instructs the Web dispatcher to initialize itself.  

  2. Calls the CreateContext method to create a Web context for the current request, supplying it with the values of the AWebModuleList, ARequest, and AResponse parameters. This Web context can then be accessed using the global WebContext function. 

  3. Calls the InitModules method to initialize all the Web modules that the AWebModuleList parameter indicates are currently instantiated. (These are the Web modules that are created for every request message) 

  4. Hooks up the InitModule method so that it can initialize any Web modules that are instantiated in the course of processing the current request.

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!