Class TBrookGAction

Unit

Declaration

type generic TBrookGAction<T> = class(TBrookAction)

Description

Provides features to handle HTTP requests and responses mapping URIs to object.

Hierarchy

Overview

Methods

Protected procedure FillEntity; virtual;
Protected function CreateEntity: T; virtual;
Protected procedure FreeEntity; virtual;
Public constructor Create; overload; override;
Public destructor Destroy; override;
Public procedure Request(ARequest: TBrookRequest; AResponse: TBrookResponse); override;

Properties

Public property Entity: T read FEntity write FEntity;

Description

Methods

Protected procedure FillEntity; virtual;
 
Protected function CreateEntity: T; virtual;
 
Protected procedure FreeEntity; virtual;
 
Public constructor Create; overload; override;

Creates an instance of a TBrookGAction class.

Public destructor Destroy; override;

Frees an instance of TBrookGAction class.

Public procedure Request(ARequest: TBrookRequest; AResponse: TBrookResponse); override;

Is triggered by a request of any HTTP method.

Properties

Public property Entity: T read FEntity write FEntity;

Maps URI to object.


Generated by PasDoc 0.15.0.