TCustomWebApplication class
Base class for web applications with integrated request handling
Declaration
TCustomWebApplication = class(TCustomApplication)Inheritance
- TCustomWebApplication
- TCustomApplication
- TComponent
- TPersistent
- TObject
Description
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.
Errors
May raise exceptions during web handler initialization or request processing.
See also
Properties
WebHandler | protected | |
HandleGetOnPost | public | Controls whether GET requests are handled by POST handlers |
RedirectOnError | public | Controls whether errors trigger HTTP redirects |
RedirectOnErrorURL | public | URL template for error redirects |
ApplicationURL | public | Base URL for the web application |
AllowDefaultModule | public | Controls whether requests without module names use default modules |
DefaultModuleName | public | Name of the default HTTP module |
ModuleVariable | public | Query parameter name for specifying HTTP module names |
Email | public | Administrator email address for error notifications |
Administrator | public | Administrator name for error pages |
EventLog | public | Event log instance for logging web application events |
PreferModuleName | public | Controls module name extraction preference |
LegacyRouting | public | Controls whether to use legacy request routing |
IncludeStackTraceInErrorPage | public |
Methods
DoRun | protected | |
CreateEventLog | protected | |
FreeEventLog | protected | |
InitializeWebHandler | protected | |
DoLog | protected | |
SetTitle | protected | |
Create | public | Creates and initializes a new web application instance |
Destroy | public | Destroys the web application and cleans up resources |
CreateForm | public | Creates a component instance with the web handler as owner |
Initialize | public | Initializes the web application with error handling enabled |
Terminate | public | Terminates the web application and web handler |
Events
OnGetModule | public | Event for custom module selection logic |
OnShowRequestException | public | Event for custom exception handling during request processing |
OnUnknownRequestEncoding | public | Event for handling unknown request content encodings |
Inherited
From TCustomApplication (36)
AbortRun CaseSensitiveLongOptions CaseSensitiveOptions CaseSensitiveShortOptions CheckOptions ConsoleApplication EnvironmentVariable EventLogFilter ExceptionExitCode ExeName FindOptionIndex GetConsoleApplication GetEnvironmentList GetNonOptions GetOptionAtIndex GetOptionValue GetOptionValues GetParamCount GetParams HandleException HasOption HelpFile Location Log OnException OptionChar ParamCount Params Run ShowException SingleInstance SingleInstanceClass SingleInstanceEnabled StopOnException Terminated Title
From TComponent (74)
_AddRef _Release BeforeDestruction CanObserve ChangeName ComObject ComponentCount ComponentIndex Components ComponentState ComponentStyle DefineProperties DesignInfo DestroyComponents Destroying ExecuteAction FindComponent FreeNotification FreeOnRelease GetChildOwner GetChildParent GetChildren GetDeltaStreams GetEnumerator GetIDsOfNames GetNamePath GetObservers GetOwner GetParentComponent GetTypeInfo GetTypeInfoCount HasParent iicrGetComponent InsertComponent Invoke IsImplementorOf Loaded Loading Name Notification ObserverAdded Observers OnGetDeltaStreams Owner PaletteCreated QueryInterface ReadDeltaState ReadDeltaStream ReadState ReferenceInterface RemoveComponent RemoveFreeNotification RemoveFreeNotifications SafeCallException SetAncestor SetChildOrder SetDesigning SetDesignInstance SetInline SetName SetParentComponent SetSubComponent Tag ToString TToStringNameMode UpdateAction Updated UpdateRegistry Updating ValidateContainer ValidateInsert ValidateRename VCLComObject WriteState
From TPersistent (5)
Assign AssignTo FPOAttachObserver FPODetachObserver FPONotifyObservers
From TObject (37)
AfterConstruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName StringMessageTable SystemHasExtendedRTTI UnitName
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
