Class TRALModuleRoutes

Unit

Declaration

type TRALModuleRoutes = class(TRALComponent)

Description

Attachment module to allow adding custom route modules for 3rd party components

Hierarchy

Overview

Methods

Public constructor Create(AOwner: TComponent); override;
Public destructor Destroy; override;
Public function CanAnswerRoute(ARequest: TRALRequest; AResponse: TRALResponse): TRALRoute; virtual;
Public function CreateRoute(const ARoute: StringRAL; AReplyProc: TRALOnReply; const ADescription: StringRAL = ''): TRALRoute; overload;
Public function CreateRoute(const ARoute: StringRAL; AReplyProc: TRALOnReplyGen; const ADescription: StringRAL = ''): TRALRoute; overload;
Public function GetListRoutes: TList; virtual;
Protected procedure Notification(AComponent: TComponent; Operation: TOperation); override;
Protected procedure SetDomain(const AValue: StringRAL); virtual;
Protected procedure SetServer(AValue: TRALServer); virtual;

Properties

Published property Domain: StringRAL read FDomain write SetDomain;
Published property OnBeforeAnswer: TRALOnReply read FOnBeforeAnswer write FOnBeforeAnswer;
Public property Routes: TRALRoutes read FRoutes write FRoutes;
Published property Server: TRALServer read FServer write SetServer;

Description

Methods

Public constructor Create(AOwner: TComponent); override;
 
Public destructor Destroy; override;
 
Public function CanAnswerRoute(ARequest: TRALRequest; AResponse: TRALResponse): TRALRoute; virtual;

Inherited method of RALServer

Public function CreateRoute(const ARoute: StringRAL; AReplyProc: TRALOnReply; const ADescription: StringRAL = ''): TRALRoute; overload;

Shortcut to create route on the server, similar to RALServer's CreateRoute

Public function CreateRoute(const ARoute: StringRAL; AReplyProc: TRALOnReplyGen; const ADescription: StringRAL = ''): TRALRoute; overload;
 
Public function GetListRoutes: TList; virtual;

Inherited method of RALServer

Protected procedure Notification(AComponent: TComponent; Operation: TOperation); override;
 
Protected procedure SetDomain(const AValue: StringRAL); virtual;

Defines the Domain prefix of all the routes of the instance of this class

Protected procedure SetServer(AValue: TRALServer); virtual;

Defines the handle of the RALServer in which will be registered the routes

Properties

Published property Domain: StringRAL read FDomain write SetDomain;
 
Published property OnBeforeAnswer: TRALOnReply read FOnBeforeAnswer write FOnBeforeAnswer;
 
Public property Routes: TRALRoutes read FRoutes write FRoutes;
 
Published property Server: TRALServer read FServer write SetServer;
 


GitHub Repository
Generated by PasDoc 0.16.0.