Class TRALServer
Unit
Declaration
type TRALServer = class(TRALComponent)
Description
Base class for HTTP Server components
Hierarchy
- TObject
- TPersistent
- TComponent
- TRALComponent
- TRALServer
Overview
Methods
![]() |
constructor Create(AOwner: TComponent); override; |
![]() |
destructor Destroy; override; |
![]() |
function CountSubModules: IntegerRAL; |
![]() |
function CreateRequest: TRALRequest; |
![]() |
function CreateResponse: TRALResponse; |
![]() |
function CreateRoute(const ARoute: StringRAL; AReplyProc: TRALOnReplyGen; const ADescription: StringRAL = ''): TRALRoute; overload; |
![]() |
function CreateRoute(const ARoute: StringRAL; AReplyProc: TRALOnReply; const ADescription: StringRAL = ''): TRALRoute; overload; |
![]() |
function SSLEnabled: boolean; |
![]() |
function CreateRALSSL: TRALSSL; virtual; |
![]() |
function GetDefaultSSL: TRALSSL; |
![]() |
function GetSubModule(AIndex: IntegerRAL): TRALModuleRoutes; |
![]() |
function IPv6IsImplemented: boolean; virtual; |
![]() |
function ValidateAuth(ARequest: TRALRequest; var AResponse: TRALResponse): boolean; |
![]() |
procedure ProcessCommands(ARequest: TRALRequest; AResponse: TRALResponse); |
![]() |
procedure Start; |
![]() |
procedure Stop; |
![]() |
procedure ValidateRequest(ARequest: TRALRequest; AResponse: TRALResponse); |
![]() |
procedure AddSubRoute(ASubRoute: TRALModuleRoutes); |
![]() |
procedure CheckCORS(AAllowOptions: boolean; AAllowMethods: StringRAL; ARequest: TRALRequest; AResponse: TRALResponse); |
![]() |
procedure DelSubRoute(ASubRoute: TRALModuleRoutes); |
![]() |
procedure Notification(AComponent: TComponent; Operation: TOperation); override; |
![]() |
procedure SetActive(const AValue: boolean); virtual; |
![]() |
procedure SetAuthentication(const AValue: TRALAuthServer); |
![]() |
procedure SetEngine(const AValue: StringRAL); |
![]() |
procedure SetPort(const AValue: IntegerRAL); virtual; |
![]() |
procedure SetServerStatus(AValue: TStringList); |
![]() |
procedure SetSessionTimeout(const AValue: IntegerRAL); virtual; |
Properties
![]() |
property Active: boolean read FActive write SetActive; |
![]() |
property Authentication: TRALAuthServer read FAuthentication write SetAuthentication; |
![]() |
property CompressType: TRALCompressType read FCompressType write FCompressType; |
![]() |
property CookieLife: integer read FCookieLife write FCookieLife; |
![]() |
property CORSOptions: TRALCORSOptions read FCORSOptions write FCORSOptions; |
![]() |
property CriptoOptions: TRALCriptoOptions read FCriptoOptions write FCriptoOptions; |
![]() |
property Engine: StringRAL read FEngine; |
![]() |
property IPConfig: TRALIPConfig read FIPConfig write FIPConfig; |
![]() |
property OnClientBlock: TRALOnClientBlock read FOnClientBlock write FOnClientBlock; |
![]() |
property OnRequest: TRALOnReply read FOnRequest write FOnRequest; |
![]() |
property OnResponse: TRALOnReply read FOnResponse write FOnResponse; |
![]() |
property OnServerError: TRALOnServerError read FOnServerError write FOnServerError; |
![]() |
property Port: IntegerRAL read FPort write SetPort; |
![]() |
property RaiseError: boolean read FRaiseError write FRaiseError default false; |
![]() |
property ResponsePages: TRALResponsePages read FResponsePages write FResponsePages; |
![]() |
property Routes: TRALRoutes read FRoutes write FRoutes; |
![]() |
property Security: TRALSecurity read FSecurity write FSecurity; |
![]() |
property ServerStatus: TStringList read FServerStatus write SetServerStatus; |
![]() |
property SessionTimeout: IntegerRAL read FSessionTimeout write SetSessionTimeout default 30000; |
![]() |
property ShowServerStatus: boolean read FShowServerStatus write FShowServerStatus; |
![]() |
property SubModule[AIndex:IntegerRAL]: TRALModuleRoutes read GetSubModule; |
Description
Methods
![]() |
constructor Create(AOwner: TComponent); override; |
![]() |
destructor Destroy; override; |
![]() |
function CountSubModules: IntegerRAL; |
![]() |
function CreateRequest: TRALRequest; |
|
Create handle request of server | |
![]() |
function CreateResponse: TRALResponse; |
|
Create handle response of server | |
![]() |
function CreateRoute(const ARoute: StringRAL; AReplyProc: TRALOnReplyGen; const ADescription: StringRAL = ''): TRALRoute; overload; |
![]() |
function CreateRoute(const ARoute: StringRAL; AReplyProc: TRALOnReply; const ADescription: StringRAL = ''): TRALRoute; overload; |
![]() |
function SSLEnabled: boolean; |
![]() |
function CreateRALSSL: TRALSSL; virtual; |
|
Used by inherited members to set SSL settings | |
![]() |
function GetDefaultSSL: TRALSSL; |
|
Used by inherited members to return the SSL definitions | |
![]() |
function GetSubModule(AIndex: IntegerRAL): TRALModuleRoutes; |
![]() |
function IPv6IsImplemented: boolean; virtual; |
|
Checks if the current server component allows IPv6 | |
![]() |
function ValidateAuth(ARequest: TRALRequest; var AResponse: TRALResponse): boolean; |
|
Function that will call Validate from the current authentication component | |
![]() |
procedure ProcessCommands(ARequest: TRALRequest; AResponse: TRALResponse); |
|
Core procedure of the server, every request will pass through here to be processed into response that will be answered to the client | |
![]() |
procedure Start; |
|
Shortcut to | |
![]() |
procedure Stop; |
|
Shortcut to | |
![]() |
procedure ValidateRequest(ARequest: TRALRequest; AResponse: TRALResponse); |
|
Validate requests headers before ProcessCommands | |
![]() |
procedure AddSubRoute(ASubRoute: TRALModuleRoutes); |
|
Adds a fixed subroute from other components into server routes | |
![]() |
procedure CheckCORS(AAllowOptions: boolean; AAllowMethods: StringRAL; ARequest: TRALRequest; AResponse: TRALResponse); |
|
Processes CORS headers | |
![]() |
procedure DelSubRoute(ASubRoute: TRALModuleRoutes); |
|
Removes a fixed subroute used by other components | |
![]() |
procedure Notification(AComponent: TComponent; Operation: TOperation); override; |
|
Internal function to properly dispose the component attached to the server | |
![]() |
procedure SetActive(const AValue: boolean); virtual; |
![]() |
procedure SetAuthentication(const AValue: TRALAuthServer); |
![]() |
procedure SetEngine(const AValue: StringRAL); |
![]() |
procedure SetPort(const AValue: IntegerRAL); virtual; |
![]() |
procedure SetServerStatus(AValue: TStringList); |
![]() |
procedure SetSessionTimeout(const AValue: IntegerRAL); virtual; |
Properties
![]() |
property Active: boolean read FActive write SetActive; |
![]() |
property Authentication: TRALAuthServer read FAuthentication write SetAuthentication; |
![]() |
property CompressType: TRALCompressType read FCompressType write FCompressType; |
|
Compression algorithm that will be used on responses to the client | |
![]() |
property CookieLife: integer read FCookieLife write FCookieLife; |
|
Determinates in seconds how long will the cookies be kept | |
![]() |
property CORSOptions: TRALCORSOptions read FCORSOptions write FCORSOptions; |
|
Determinates CORS configurations for server-server communication | |
![]() |
property CriptoOptions: TRALCriptoOptions read FCriptoOptions write FCriptoOptions; |
|
Options for P2P crypt security | |
![]() |
property Engine: StringRAL read FEngine; |
|
Read-only property to indicate | |
![]() |
property IPConfig: TRALIPConfig read FIPConfig write FIPConfig; |
|
Configuration params for IP listening | |
![]() |
property OnClientBlock: TRALOnClientBlock read FOnClientBlock write FOnClientBlock; |
|
Event fired whenever an incoming IP gets blocked by the server | |
![]() |
property OnRequest: TRALOnReply read FOnRequest write FOnRequest; |
|
Event fired whenever any request is received by the server | |
![]() |
property OnResponse: TRALOnReply read FOnResponse write FOnResponse; |
|
Event fired whenever any response is sent by the server | |
![]() |
property OnServerError: TRALOnServerError read FOnServerError write FOnServerError; |
|
Event fired whenever any error happens inside the server | |
![]() |
property Port: IntegerRAL read FPort write SetPort; |
|
| |
![]() |
property RaiseError: boolean read FRaiseError write FRaiseError default false; |
|
Whether the server will raise error to the application or not (exception raiseˆ), default value is false | |
![]() |
property ResponsePages: TRALResponsePages read FResponsePages write FResponsePages; |
![]() |
property Routes: TRALRoutes read FRoutes write FRoutes; |
|
Route configuration of the server, a.k.a endpoints | |
![]() |
property Security: TRALSecurity read FSecurity write FSecurity; |
|
| |
![]() |
property ServerStatus: TStringList read FServerStatus write SetServerStatus; |
|
Default text answered by the server without WebModule when requesting the route '/' | |
![]() |
property SessionTimeout: IntegerRAL read FSessionTimeout write SetSessionTimeout default 30000; |
|
Timeout (miliseconds) for WebModule to determinate max age of the session | |
![]() |
property ShowServerStatus: boolean read FShowServerStatus write FShowServerStatus; |
|
Boolean check to whether or not show the default text for route '/' | |
![]() |
property SubModule[AIndex:IntegerRAL]: TRALModuleRoutes read GetSubModule; |
|
Returns a | |
GitHub Repository
Generated by PasDoc 0.16.0.


