RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
WebDisp.TDispatchActionHandledEvent Type

TDispatchActionHandledEvent is the type for event handlers that can handle requests to execute an adapter action.

Pascal
TDispatchActionHandledEvent = procedure (Sender: TObject; Action: TObject; Params: TStrings; var Handled: Boolean) of object;
C++
(Sender: TObject; Action: TObject; Params: TStrings; var Handled: Boolean) ( TDispatchActionHandledEvent)();

TDispatchActionHandledEvent is the type for event handlers of an adapter dispatcher that can handle requests to execute an adapter action. If the event handler executes the requested action, it can then prevent the default handling that would otherwise occur. 

Sender is the adapter dispatcher component that received the HTTP request message. 

Action is the object that would ordinarily execute the action. If the dispatcher could not find an object to execute the action, this parameter is nil (Delphi) or NULL (C++). 

Params lists the parameters for the action, in 'Name=Value' format. The '__id' parameter gives the name of the action to execute. If the current request is not a request to execute an action, Params is nil (Delphi) or NULL (C++). 

Handled returns an indication of how the adapter dispatcher should proceed after the event handler exits. If the event handler sets Handled to true, the dispatcher assumes that the event handler has taken care of the request. If the event handler leaves Handled set to false, the dispatcher continues with its normal processing of the request message. 

 

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