RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMultiModuleWebAppServices.OnBeforeDispatch Event

Occurs before TMultiModuleWebAppServices passes an HTTP request onto the other components in the application for processing.

Pascal
property OnBeforeDispatch: THTTPMethodEvent;
C++
__property THTTPMethodEvent OnBeforeDispatch;

Write an OnBeforeDispatch event handler to initialize the response to an HTTP request or to handle any messages that the other components in the WebSnap application can't handle. If the event handler completely handles the request, filling out the response object so that it is ready to send, it should set the Handled parameter to true, thereby preventing this component from trying to locate a component in the WebSnap application that can handle the message.

Note: Although TMultiModuleWebAppServices introduces the OnBeforeDispatch event, it never calls the event handler. Descendant classes add the code to generate this event before dispatching a request message.
 

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