RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomAdapterDispatcher.ImplHandleRequest Method

Provides the underlying implementation for the HandleRequest method.

Pascal
function ImplHandleRequest(Request: TWebRequest; Response: TWebResponse): Boolean; override;
C++
virtual __fastcall Boolean ImplHandleRequest(TWebRequest Request, TWebResponse Response);

The HandleRequest method calls ImplHandleRequest to process an http request message and obtain the response that should be sent back to the caller. (The HandleRequest method is called using the IWebRequestHandler interface.) 

ImplHandleRequest  

 

  1. Calls GetDispatchParams to parse the request and identify the adapter that should handle it. 

  2. If it finds an adapter, calls DoBeforeDispatchAdapterRequest to generate the OnBeforeDispatchAction and OnBeforeDispatchImage events. 

  3. If the event handlers do not handle the event, forwards the request to the adapter for processing. 

  4. Calls DoAfterDispatchAdapterRequest to generate the OnAfterDispatchAction and OnAfterDispatchImage events. 

  5. Calls DoAdapterRequestNotHandled to generate the OnActionRequestNotHandled and OnImageRequestNotHandled events if the request has not yet been handled.

 

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