Class TBrookMiddleware

Unit

Declaration

type TBrookMiddleware = class(TBrookComponent)

Description

Intermediates two classes through a TBrookExecuteActionEvent event.

Hierarchy

Overview

Methods

Protected procedure DoExecute(ASender: TObject; AAction: TBrookAction; ARequest: TBrookRequest; AResponse: TBrookResponse; const ANames, AValues: TBrookArrayOfString; ARoute: TBrookRoute; var AHandled: Boolean); virtual;
Public constructor Create(ABoundEvent: PBrookExecuteActionEvent); overload; virtual;
Public procedure Execute(ASender: TObject; AAction: TBrookAction; ARoute: TBrookRoute); virtual;
Public procedure BindExecution(AEvent: PBrookExecuteActionEvent);

Properties

Public property OnExecute: TBrookMiddlewareExecuteEvent read FOnExecute write FOnExecute;

Description

Methods

Protected procedure DoExecute(ASender: TObject; AAction: TBrookAction; ARequest: TBrookRequest; AResponse: TBrookResponse; const ANames, AValues: TBrookArrayOfString; ARoute: TBrookRoute; var AHandled: Boolean); virtual;
 
Public constructor Create(ABoundEvent: PBrookExecuteActionEvent); overload; virtual;

Creates an instance of a TBrookMiddleware class.

Public procedure Execute(ASender: TObject; AAction: TBrookAction; ARoute: TBrookRoute); virtual;

Is triggered when the DoExecute method bound in this class is executed.

Public procedure BindExecution(AEvent: PBrookExecuteActionEvent);

Bindes a TBrookExecuteActionEvent event to this class keeping the implementation of a previously declared event.

Properties

Public property OnExecute: TBrookMiddlewareExecuteEvent read FOnExecute write FOnExecute;

Is triggered when the Execute method bound in this class is executed.


Generated by PasDoc 0.15.0.