RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMultiModuleWebAppServices.HandleRequest Method

Directs the processing of the current request message.

Pascal
function HandleRequest: Boolean;
C++
__fastcall Boolean HandleRequest();

When the WebSnap application receives a request message, it makes the following calls: 

 

  1. The InitContext method is called to generate a Web context for the request. 

  2. HandleRequest is called to generate a response to the request. 

  3. FinishContext is called to perform any final cleanup. 

HandleRequest simply calls the ImplHandleRequest method, which directs the processing of the request. In TMultiModuleWebAppServices, ImplHandleRequest simply declares the request as handled while doing no processing. Descendant classes override ImplHandleRequest to locate the components that should handle the request and forwarding the request to those components for processing. 

HandleRequest returns true if the request is handled and the response should be sent back to the caller (if it was not already sent). It returns false if the WebSnap application could not handle the request. 

 

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