Web.HTTPApp.TWebDispatcher

From RAD Studio API Documentation
Jump to: navigation, search

Web.HTTPApp.TCustomWebDispatcherSystem.Classes.TDataModuleSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObjectTWebDispatcher

Delphi

TWebDispatcher = class(TCustomWebDispatcher)

C++

class PASCALIMPLEMENTATION TWebDispatcher : public TCustomWebDispatcher

Properties

Type Visibility Source Unit Parent
class public
Web.HTTPApp.pas
Web.HTTPApp.hpp
Web.HTTPApp Web.HTTPApp

Description

TWebDispatcher passes HTTP request messages on to the appropriate action items that assemble a response.

Use TWebDispatcher to convert an ordinary data module to a Web module. Add a TWebDispatcher object to an existing data module that contains other nonvisual components and business rules for the Web application. Then delete the automatically generated Web module from the Web application and replace it with the data module that now contains the Web dispatcher.

TWebDispatcher enables the Web server application to respond to HTTP request messages. Only one Web dispatcher can be added to an application. This is why the automatically generated Web module, which is a type of Web dispatcher, must be deleted from the Web application before the data module containing TWebDispatcher can be added.

The TWebDispatcher object manages a collection of action items which know how to respond to HTTP request messages. View, add, and delete the action items managed by the dispatcher using the Action editor which is opened by double-clicking on the TWebDispatcher icon.

TWebDispatcher publishes some of the properties and events introduced by TCustomWebDispatcher, but introduces no new properties, events, or methods of its own.

See Also