Unit BrookRouter

DescriptionUsesClasses, Interfaces, Objects and RecordsFunctions and ProceduresTypesConstantsVariables

Description

Brook framework, Router Classes

Copyright (C) 2014 Silvio Clecio

See the file LICENSE.txt, included in this distribution, for details about the copyright.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Uses

Overview

Classes, Interfaces, Objects and Records

Name Description
Class EBrookRoutes Handles exceptions for TBrookRoutes.
Class EBrookRouter Handles exceptions for TBrookRouter.
record TBrookRoute Defines a route item.
Class TBrookRoutes Defines a list of routes.
Class TBrookRouter Provides features for the route handling.

Types

TBrookRoutesClass = class of TBrookRoutes;
TBrookRouterClass = class of TBrookRouter;
PBrookRoute = ˆTBrookRoute;
TBrookMatchPatternEvent = procedure(ASender: TObject; APattern, APathInfo: string; out ARedirect: Boolean; out ANames, AValues: TBrookArrayOfString) of object;
PBrookMatchPatternEvent = ˆTBrookMatchPatternEvent;
TBrookRouteEvent = procedure(ASender: TObject; ARequest: TBrookRequest; AResponse: TBrookResponse) of object;
PBrookRouteEvent = ˆTBrookRouteEvent;
TBrookExecuteActionEvent = procedure(ASender: TObject; AAction: TBrookAction; ARequest: TBrookRequest; AResponse: TBrookResponse; ARoute: TBrookRoute; var AHandled: Boolean) of object;
PBrookExecuteActionEvent = ˆTBrookExecuteActionEvent;

Description

Types

TBrookRoutesClass = class of TBrookRoutes;

Is a metaclass for TBrookRoutes class.

TBrookRouterClass = class of TBrookRouter;

Is a metaclass for TBrookRouter class.

PBrookRoute = ˆTBrookRoute;

Defines a pointer to the route item.

TBrookMatchPatternEvent = procedure(ASender: TObject; APattern, APathInfo: string; out ARedirect: Boolean; out ANames, AValues: TBrookArrayOfString) of object;

Is a type to *MatchPattern event.

PBrookMatchPatternEvent = ˆTBrookMatchPatternEvent;

Defines a pointer to the match pattern event.

TBrookRouteEvent = procedure(ASender: TObject; ARequest: TBrookRequest; AResponse: TBrookResponse) of object;

Is a type to *Route event.

PBrookRouteEvent = ˆTBrookRouteEvent;

Defines a pointer to the route event.

TBrookExecuteActionEvent = procedure(ASender: TObject; AAction: TBrookAction; ARequest: TBrookRequest; AResponse: TBrookResponse; ARoute: TBrookRoute; var AHandled: Boolean) of object;

Is a type to *ExecuteAction event.

PBrookExecuteActionEvent = ˆTBrookExecuteActionEvent;

Defines a pointer to the execute action event.