RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomWebAppComponents.ImplHandleRequest Method

Provides the underlying implementation for the HandleRequest method.

Pascal
function ImplHandleRequest: Boolean; override;
C++
virtual __fastcall Boolean ImplHandleRequest();

The HandleRequest method calls ImplHandleRequest to handle the current HTTP request message.  

ImpleHandleRequest 

1.Generates an OnBeforeDispatch event. 

2.If the OnBeforeDispatch event handler does not handle the request, checks the PageDispatcher, AdapterDispatcher, and DispatchActions properties to find a dispatcher that can handle the request. If it finds one, the dispatcher forwards the request to the appropriate components for handling. 

3.If the request was handled by the OnBeforeDispatch event or by one of the dispatchers, and if the response was not already sent to the caller, generates an OnAfterDispatch event. 

ImplHandleRequest 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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!