Sign in Join
FPDoc Onlineexperiment

TCustomWebAction class

In unit fpHTTP

Base class for web actions

Declaration

pascal
TCustomWebAction = class(TCollectionItem)

Inheritance

  1. TCustomWebAction
  2. TCollectionItem
  3. TPersistent
  4. TObject

Descends from it: TFPWebAction

Description

TCustomWebAction represents an individual web action that can handle specific HTTP requests. It associates a content producer or a simple event with request handling events. Web actions are selected by the TCustomHTTPModule module by checking the second path element in the HTTP URL:

{BaseURL}/module/action

Properties

NamepublishedName of the web action
ContentProducerpublishedContent producer for this action
DefaultpublishedIndicates if this is the default action
BeforeRequestpublishedEvent triggered before request processing
AfterResponsepublishedEvent triggered after response generation

Methods

SetContentProducerprotected
GetDisplayNameprotectedReturns the of the collectionitem.
SetDisplayNameprotectedWrite method for the property.
HandleRequestprotected
DoHandleRequestprotected
GetNamePathpublicReturns the action name path

Inherited

From TCollectionItem (10)

Changed Collection Create Destroy DisplayName GetOwner ID Index SetCollection SetIndex

From TPersistent (6)

Assign AssignTo DefineProperties FPOAttachObserver FPODetachObserver FPONotifyObservers

From TObject (40)

AfterConstruction BeforeDestruction 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 SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.