Unit 'fpWeb' Package
[Overview][Resource strings][Types][Classes][Index] [#fcl]

TCustomFPWebModule

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Base class for web modules with action and template support

Declaration

Source position: fpweb.pp line 108

type TCustomFPWebModule = class(TSessionHTTPModule)

public

  constructor CreateNew(); override;

  

Creates a new web module instance

  destructor Destroy; override;

  

Destroys the web module instance

  procedure HandleRequest(); override;

  

Processes an incoming HTTP request

  property Actions: TFPWebActions; [rw]

  

Collection of web actions for this module

  property ActionVar: string; [rw]

  

Name of the request parameter used to identify actions

  property BeforeRequest: TRequestEvent; [rw]

  

Event called before request processing

  property OnRequest: TWebActionEvent; [rw]

  

Event called for request processing

  property AfterResponse: TResponseEvent; [rw]

  

Event called after response processing

  property OnGetAction: TGetActionEvent; [rw]

  

Event called to determine which action to execute

  property DefActionWhenUnknown: Boolean; [rw]

  

Whether to use the default action when no specific action is found

  property ModuleTemplate: TFPTemplate; [rw]

  

Template used for content generation

  property OnGetParam: TGetParamEvent; [rw]

  

Event called to resolve template parameters

  property OnTemplateContent: TGetParamEvent; [rw]

  

Event called for template content processing

  property Request: TRequest; [r]

  

The current HTTP request being processed

  property Response: TResponse; [r]

  

The current HTTP response being generated

end;

Inheritance

TCustomFPWebModule

  

Base class for web modules with action and template support

|

TSessionHTTPModule

  

HTTP module with session support

|

TCustomHTTPModule

  

Base class for HTTP modules

|

TDataModule

|

TComponent

|

TPersistent,IUnknown,IInterfaceComponentReference

|

TObject,IFPObserved

Description

TCustomFPWebModule extends TSessionHTTPModule with support for web actions, template processing, and advanced request handling. This class provides the foundation for building complex web applications with structured request routing and dynamic content generation.

The module manages a collection of web actions, template variables, and provides hooks for request preprocessing and response postprocessing.

See also

TFPWebModule

  

Complete web module with published properties

TFPWebActions

  

Collection of web actions with advanced functionality

TSessionHTTPModule


Documentation generated on: Jan 27 2026