[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Base class for web applications with integrated request handling
Source position: custweb.pp line 112
type TCustomWebApplication = class(TCustomApplication) |
||
public |
||
constructor Create(); override; |
|
Creates and initializes a new web application instance |
destructor Destroy; override; |
|
Destroys the web application and cleans up resources |
procedure CreateForm(); |
|
Creates a component instance with the web handler as owner |
procedure Initialize; override; |
|
Initializes the web application with error handling enabled |
procedure Terminate; override; |
|
Terminates the web application and web handler |
property HandleGetOnPost: Boolean; [rw] |
|
Controls whether GET requests are handled by POST handlers |
property RedirectOnError: Boolean; [rw] |
|
Controls whether errors trigger HTTP redirects |
property RedirectOnErrorURL: string; [rw] |
|
URL template for error redirects |
property ApplicationURL: string; [rw] |
|
Base URL for the web application |
property AllowDefaultModule: Boolean; [rw] |
|
Controls whether requests without module names use default modules |
property DefaultModuleName: string; [rw] |
|
Name of the default HTTP module |
property ModuleVariable: string; [rw] |
|
Query parameter name for specifying HTTP module names |
property OnGetModule: TGetModuleEvent; [rw] |
|
Event for custom module selection logic |
property Email: string; [rw] |
|
Administrator email address for error notifications |
property Administrator: string; [rw] |
|
Administrator name for error pages |
property OnShowRequestException: TOnShowRequestException; [rw] |
|
Event for custom exception handling during request processing |
property OnUnknownRequestEncoding: TOnUnknownEncodingEvent; [rw] |
|
Event for handling unknown request content encodings |
|
Event log instance for logging web application events |
|
property PreferModuleName: Boolean; [rw] |
|
Controls module name extraction preference |
property LegacyRouting: Boolean; [rw] |
|
Controls whether to use legacy request routing |
end; |
|
Base class for web applications with integrated request handling |
|
| | | ||
|
Ancestor class for TApplication classes. |
|
| | | ||
| | | ||
| | | ||
TCustomWebApplication extends TCustomApplication to provide web-specific functionality. It integrates a TWebHandler instance for processing HTTP requests and provides properties for configuring web application behavior.
This class serves as the foundation for all web application implementations including CGI, FastCGI, and other HTTP hosting environments. It handles application lifecycle, event logging, and web handler management.
May raise exceptions during web handler initialization or request processing.
|
Base class for handling HTTP requests in web applications |